|
POST
|
There isn't an option for that currently. You could do some QString manipulation and split at the space, remove the last character of each resulting string, and add a - if S or W
... View more
10-29-2019
11:49 AM
|
1
|
1
|
1099
|
|
POST
|
I don't see a file attached. Can you retry please? This sample code should be able to be modified to reference the path to your .shp - arcgis-runtime-samples-qt/ArcGISRuntimeSDKQt_CppSamples/Layers/FeatureLayerShapefile at master · Esri/arcgis-runtime-sam…
... View more
10-23-2019
07:43 AM
|
0
|
0
|
744
|
|
POST
|
QDockWidget seems like an issue we need to fix in the API. We still need to investigate more but are currently unaware of any workaround.
... View more
10-15-2019
03:02 PM
|
0
|
0
|
1889
|
|
POST
|
We don't have API to support this at the moment. Not sure if there is a workaround of some sort. Could you change opacity with a slider instead?
... View more
10-10-2019
07:23 AM
|
0
|
1
|
940
|
|
POST
|
When you create a QML object directly and want to assign the properties dynamically, you have to explicitly set the properties as key-value pairs. In the declarative QML code, you don't need to explicitly set the property name, because it makes use of something called "default properties" in QML. I rewrote your function and was able to get it working: function addKMLLayer() {
var newKmlIcon = ArcGISRuntimeEnvironment.createObject("KmlIcon", {
url: dataPath + "1944.jpg"
});
var newEnvelope = ArcGISRuntimeEnvironment.createObject("Envelope", {
xMin: -123.066227926904,
yMin: 44.04736963555683,
xMax: -123.0796942287304,
yMax: 44.03878298600624,
spatialReference: SpatialReference.createWgs84()
});
var newKmlGroundOverlay = ArcGISRuntimeEnvironment.createObject("KmlGroundOverlay", {icon: newKmlIcon, geometry: newEnvelope });
var newKMLDataset = ArcGISRuntimeEnvironment.createObject("KmlDataset", {initRootNode: newKmlGroundOverlay});
var newKMLLayer = ArcGISRuntimeEnvironment.createObject("KmlLayer", {dataset: newKMLDataset});
map.operationalLayers.append(newKMLLayer)
}
... View more
10-08-2019
08:18 AM
|
2
|
1
|
1273
|
|
POST
|
Hi Selim- If you open your app bundle (right click and select to show content), do you see an "Esri/ArcGISRuntime/" folder? Open up one of the sample viewers and compare it. If memory serves me correct, Qt's macdeployqt tool didn't copy third party plugins into your app bundle, even if you specify the `-qmldir` argument. As a workaround, we would just copy the files into the app bundle manually. For example, something along the lines of the following should get you on the right track: $HOME/Qt5.12.0/5.12.0/clang_64/bin/macdeployqt ArcGISQt_QMLSamples.app -appstore-compliant -executable=ArcGISQt_QMLSamples.app/Contents/MacOS/ArcGISQt_QMLSamples -qmldir=../../../qt/sdk/samples
cp -p libEsriCommonQt.dylib ArcGISQt_QMLSamples.app/Contents/Frameworks/
cp -p libruntimecore.dylib ArcGISQt_QMLSamples.app/Contents/Frameworks/
cp -p ${SRC_DIR}/ArcGISRuntimePlugin.qmltypes ArcGISQt_QMLSamples.app/Contents/Resources/qml/Esri/ArcGISRuntime/
cp -p ${SRC_DIR}/libArcGISRuntimePlugin.dylib ArcGISQt_QMLSamples.app/Contents/Resources/qml/Esri/ArcGISRuntime/
cp -p ${SRC_DIR}/qmldir ArcGISQt_QMLSamples.app/Contents/Resources/qml/Esri/ArcGISRuntime/
... View more
10-07-2019
01:08 PM
|
1
|
2
|
1529
|
|
POST
|
I changed the sample out from sceneview to mapview and that worked. It should work 2d and 3d. MapView {
id: sceneView
anchors.fill: parent
Map {
BasemapImagery {}
// Create a KML Layer
KmlLayer {
id: kmlLayer
// Create a KML Dataset
KmlDataset {
// Create a Ground Overlay by assigning an icon and geometry
KmlGroundOverlay {
id: groundOverlay
rotation: -3.046024799346924
KmlIcon {
url: "https://upload.wikimedia.org/wikipedia/commons/thumb/0/0b/Qt_logo_2016.svg/1200px-Qt_logo_2016.svg.png"
}
Envelope {
id: env
xMin: -123.066227926904
yMin: 44.04736963555683
xMax: -123.0796942287304
yMax: 44.03878298600624
SpatialReference {
wkid: 4326
}
}
}
}
// set viewpoint to the ground overlay
onLoadStatusChanged: {
if (loadStatus !== Enums.LoadStatusLoaded)
return;
const vp = ArcGISRuntimeEnvironment.createObject("ViewpointCenter", {
center: env.center,
targetScale: 10000
});
sceneView.setViewpoint(vp);
}
}
}
}
... View more
10-02-2019
11:53 AM
|
1
|
1
|
4138
|
|
POST
|
Are you pointing the KmlIcon URL to a valid image? I tried pointing it to the below online URL and it worked well: SceneView {
id: sceneView
anchors.fill: parent
Scene {
BasemapImagery {}
// Create a KML Layer
KmlLayer {
id: kmlLayer
// Create a KML Dataset
KmlDataset {
// Create a Ground Overlay by assigning an icon and geometry
KmlGroundOverlay {
id: groundOverlay
rotation: -3.046024799346924
KmlIcon {
url: "https://upload.wikimedia.org/wikipedia/commons/thumb/0/0b/Qt_logo_2016.svg/1200px-Qt_logo_2016.svg.png"
}
Envelope {
id: env
xMin: -123.066227926904
yMin: 44.04736963555683
xMax: -123.0796942287304
yMax: 44.03878298600624
SpatialReference {
wkid: 4326
}
}
}
}
// set viewpoint to the ground overlay
onLoadStatusChanged: {
if (loadStatus !== Enums.LoadStatusLoaded)
return;
const camera = ArcGISRuntimeEnvironment.createObject("Camera", {
location: env.center,
distance: 1250,
heading: 45,
pitch: 60,
roll: 0
});
sceneView.setViewpointCamera(camera);
}
}
}
}
... View more
10-02-2019
11:10 AM
|
0
|
0
|
4138
|
|
POST
|
Perhaps you can try out a KML Ground Overlay. This allows you to take an image and display it at a specified location - Here is an example in our develop branch (100.7), but the same code will work for 100.6 arcgis-runtime-samples-qt/ArcGISRuntimeSDKQt_QMLSamples/EditData/EditKmlGroundOverlay at v.next · Esri/arcgis-runtime-sa… In the example, a historic photo jpg is overlaid on a location at a specified envelope, and it continues to draw correctly as you zoom
... View more
10-01-2019
02:02 PM
|
0
|
0
|
4138
|
|
POST
|
Is your feature a Polygon? If so, PictureFillSymbol might be your solution - PictureFillSymbol QML Type | ArcGIS for Developers
... View more
10-01-2019
10:56 AM
|
0
|
1
|
4138
|
|
POST
|
Thanks Jeremy. I was testing with 100.6 and couldn't repro with the updated code, but can with 100.5. Is 100.6 an option? Even if it is just to validate that the issue is indeed fixed with 100.6? I tried to find a workaround for 100.5 but haven't been able to come up with anything yet.
... View more
09-26-2019
08:30 AM
|
0
|
1
|
2403
|
|
POST
|
Hmm, that's strange. Can you upload your updated project so I can re-test please?
... View more
09-25-2019
01:24 PM
|
0
|
3
|
2403
|
|
POST
|
Hi Jeremy- I think I know what is going on here. Can you try switching out your onIdentifyLayerStatusChanged signal handler to this and see if it works? onIdentifyLayerStatusChanged: {
if (identifyLayerStatus === Enums.TaskStatusCompleted) {
featureLayer.clearSelection();
for (var i = 0; i < identifyLayerResult.geoElements.length; i++) {
selectedFeatures.push(identifyLayerResult.geoElements[i]);
}
featureLayer.selectFeatures(selectedFeatures);
}
} I think your direct assigning of `selectedFeatures = identifyLayerResult.geoElements;` is the problem. This is now assigning selectedFeatures to the list of GeoElements, but nothing is specifically holding on a reference to the GeoElements in that list, so they go out of scope and get garbage collected after a random amount of time. On Windows, for me it was between 15-20 seconds. Whenever things randomly stop working, garbage collection is a likely culprit. I ran the below code to force garbage collection, and reliably, the selectedfeatures.length is 0. onMousePositionChanged: {
if (selectedFeatures.length > 0) {
mouse.accepted = true;
// force garbage collection
gc();
for (var i = 0; i < selectedFeatures.length; i++) {
selectedFeatures[i].geometry = mouse.mapPoint;
}
if (featureLayer.featureTable.updateFeaturesStatus !== Enums.TaskStatusInProgress) {
featureLayer.featureTable.updateFeatures(selectedFeatures);
}
} else {
// this prints out right away
console.log("no features in selectedFeatures list");
mouse.accepted = false;
}
} If you can confirm that this matches with your findings, then please proceed with changing your code to directly store references to the Feature(s) you want. One way to do that is how I have it in the first snippet.
... View more
09-25-2019
01:00 PM
|
0
|
5
|
2403
|
|
POST
|
Couple of things to try: 1) After you create the Feature and add it to the table, call refresh() on the Feature - Feature QML Type | ArcGIS for Developers 2) If you want to clear out your edits before you've applied, you could call undoLocalEdits() - ServiceFeatureTable QML Type | ArcGIS for Developers
... View more
09-23-2019
01:18 PM
|
0
|
0
|
1312
|
|
POST
|
The order changes because JSON preserves order whereas the underlying data type in GeoprocessingParameters.input does not (QVariantMap). However, I don't believe the order should matter - to my knowledge, the REST request that comes in assigns the inputs via name and not index. I think something else must be going on here and the order is a red herring.
... View more
09-23-2019
01:04 PM
|
0
|
1
|
1550
|
| 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 |
a month ago
|