|
POST
|
You could use the WebTiledLayer as described in the Notes section of the Description - WebTiledLayer Class | ArcGIS for Developers Note: This layer requires a string as opposed to a URL, which is the required data format for most other layers. Use "http://" to reference an online layer and use the file path to a local tile cache when working with an offline layer (do not add the "file:///" prefix). For example, use "C:/dataPath/{level}/{column}/{row}.png" and not "file:///C:/dataPath/{level}/{column}/{row}.png"
... View more
03-11-2019
09:45 AM
|
0
|
0
|
710
|
|
POST
|
I'd try the below workflow instead. It is preferable to create the Map using one of the constructors other than the default. For example, create it from a Basemap object, which will give it a valid spatial reference. However, you may run into issues if your RasterLayer and TPK are in different spatial references. RasterLayer can project on the fly to a new spatial reference, but TPK cannot void TestRastre::componentComplete()
{
QQuickItem::componentComplete();
//girishy Create raster
Raster * raster = new Raster( "INDIA_841.tif", this);
// girishy create raster layer
RasterLayer *rasterLayer = new RasterLayer(raster, this);
// find QML MapView component
m_mapView = findChild<MapQuickView*>("mapView");
// Create Map from Basemap
auto basemap = new Basemap(rasterLayer, this);
m_map = new Map(basemap, this);
// Set map to map view
m_mapView->setMap(m_map);
// create TPK
QString datapath="Hyderabad.tpk";
QString name="test";
//girishy Create tiled layer
TileCache * tiledCache = new TileCache(datapath, this);
// girishy create tiled layer
ArcGISTiledLayer *tiledLayer = new ArcGISTiledLayer(tiledCache, this);
tiledLayer->setName(name);
m_map->operationalLayers()->append(tiledLayer);
}
... View more
03-11-2019
08:19 AM
|
0
|
2
|
2580
|
|
POST
|
Do you have some code you can share that reproduces the issue?
... View more
03-08-2019
10:21 AM
|
0
|
4
|
2580
|
|
POST
|
Here is some code to do this - arcgis-runtime-samples-qt/FeatureLayer_Geodatabase.qml at master · Esri/arcgis-runtime-samples-qt · GitHub Essentially you need to: - Create a Geodatabase object via the path to the local file - Geodatabase QML Type | ArcGIS for Developers - Iterate through the list of GeodatabaseFeatureTable objects - Geodatabase QML Type | ArcGIS for Developers - For each feature table, create a Feature Layer by setting the featureTable property - FeatureLayer QML Type | ArcGIS for Developers - Add the FeatureLayers to the Map's operational layer list model
... View more
03-08-2019
10:11 AM
|
0
|
2
|
1204
|
|
POST
|
Once you have a Map/MapView, you will use identifyLayer or identifyLayers to get features back, and then you can call selectFeature on the FeatureLayer. Here is a sample that shows this arcgis-runtime-samples-qt/FeatureLayer_Selection.qml at master · Esri/arcgis-runtime-samples-qt · GitHub use identifyLayer if you want to search for clicked features within a specific layer, and identifyLayers if you want to search for clicked features in any layer in the mapview doc - GeoView QML Type | ArcGIS for Developers
... View more
03-01-2019
01:06 PM
|
0
|
1
|
1060
|
|
POST
|
You'll probably end up needing to use the GeometryEngine::nearestVertex function - GeometryEngine Class | ArcGIS for Developers How you get there will be the question, because this function takes in a geometry and a point, and finds the nearest vertex of the input geometry to the input point. Since you are working across multiple layers, you might need to get creative about how you find the top candidates to run this geometry operation against. For example, perhaps at certain intervals (or on map extent changed) you queryFeatures against the feature table to get the current features that are in the current map extent, then store those geometries in some data structure, and run through the nearestVertex method on all the geometries. Tough to say what the best way to optimize this would be. We hit performance issues while trying to create a high performance geofencing feature in our DSA app, so we built a quad tree to act as a spatial index of sorts dynamic-situational-awareness-qt/GeometryQuadtree.cpp at 27f95374c2caa96e6574e6952b55c07bf1f3d012 · Esri/dynamic-situati… . Not sure how far you will need to take this all to get the performance to what you need it to be.
... View more
02-26-2019
12:29 PM
|
0
|
0
|
1137
|
|
POST
|
Hi Mauricio, Most things in the SDK do not require a GUI and should work in a console app. However, we don't have a template app or anything to get you started. Synchronous calls like using our GeometryEngine should be fairly straight forward, but you will have to be a bit more clever with asynchronous methods, as you'll need an event loop. Sorry I don't have any examples, but this should be possible.
... View more
02-25-2019
06:54 AM
|
0
|
0
|
995
|
|
POST
|
If you need to get all fields, you will need to query the service. I've just noticed that we have an issue in our doc for ServiceFeatureTable that is missing this info, so I will work on getting this added. What you will need to call is: ServiceFeatureTable::queryFeaturesWithFieldOptions(QueryParameters parameters, Enums.QueryFeatureFields queryFeatureFields) For QueryFeatureFields, use Enums.QueryFeatureFieldsLoadAll - Enums.QueryFeatureFields enumeration | ArcGIS for Developers In the case of this sample specifically, you could do the following workflow: - mouseClick -> perform identifyLayer - once you get the feature back, call queryFeaturesWithFieldOptions using the unique ObjectID and the LoadAll enum - Connect to ServiceFeatureTable::onQueryFeaturesStatusChanged and wait for it to complete - Once complete, access all the fields, and call FeatureLayer::selectFeature with the supplied Feature object
... View more
02-20-2019
11:56 AM
|
1
|
1
|
1244
|
|
POST
|
Unfortunately we don't have any samples, as many of the editing samples were created before we had the PopupManager/View. I hope we can get to this soon!
... View more
02-20-2019
06:48 AM
|
0
|
0
|
4449
|
|
POST
|
Hi Pam, Unfortunately, the View itself does not yet support Editing. The PopupManager does support editing and should help in any view implementation, as it does some things like keep track of state, provide editable list models for attributes, etc. Editing support in the View is still in the road map, we just don't have a date for it yet.
... View more
02-19-2019
07:25 AM
|
0
|
2
|
4449
|
|
POST
|
How often are you needing to do this? If it's multiple times per second, I'm not sure how to work around it. But if it is less frequent, you could wait and check the layer view state and draw state - the fact that it is done loading just means all resources have been fetched, but it doesn't necessarily mean anything has finished rendering. You can use draw status and layer view state for that: arcgis-runtime-samples-qt/ArcGISRuntimeSDKQt_QMLSamples/Maps/DisplayDrawingStatus at master · Esri/arcgis-runtime-sample… arcgis-runtime-samples-qt/ArcGISRuntimeSDKQt_QMLSamples/Maps/DisplayLayerViewDrawStatus at master · Esri/arcgis-runtime-…
... View more
02-15-2019
08:14 AM
|
2
|
1
|
3088
|
|
POST
|
Once a Layer has reached the loaded state, it can't be reloaded. Rather, you will need to create a new instance. Please see the Loadable doc under "Retry loading" - Loadable pattern for asynchronous resources—ArcGIS Runtime SDK for Qt | ArcGIS for Developers "The main use case for this method is if the loadable failed to load previously, for example, due to network outage or service interruption. It is not meant to refresh the metadata for an already loaded resource which should instead be accomplished by creating a new instance of the loadable resource." So maybe when you want to "reload", instead you could remove the existing layer and stick the code to recreate your custom layer in some factory method that keeps generating a new one.
... View more
02-15-2019
06:45 AM
|
0
|
3
|
3088
|
|
POST
|
Hi Paul, We don't have a simple way to switch this in the API. You'd need to override everything and handle it yourself.
... View more
02-13-2019
07:49 AM
|
1
|
0
|
2310
|
|
POST
|
Unfortunately, I don't believe there is any way for you to turn off the caching. Are you wanting no caching to ever happen, or just not between sessions?
... View more
02-13-2019
07:47 AM
|
1
|
5
|
3088
|
|
POST
|
Can you share any details on what you are doing when you see a slow down or a deadlock?
... View more
02-13-2019
07:46 AM
|
0
|
0
|
1559
|
| Title | Kudos | Posted |
|---|---|---|
| 3 | 05-27-2026 09:52 AM | |
| 1 | 11-24-2025 10:45 AM | |
| 1 | 07-30-2025 08:26 AM | |
| 1 | 05-15-2025 07:35 AM | |
| 2 | 11-26-2024 01:27 PM |
| Online Status |
Offline
|
| Date Last Visited |
06-17-2026
07:54 AM
|