|
POST
|
Andy- Please see the Migrating Existing Apps section in the 10.2.6 release notes - Release notes for ArcGIS Runtime SDK 10.2.6 for Qt—ArcGIS Runtime SDK for Qt | ArcGIS for Developers You need to install a different Qt Kit with 10.2.6, as we build our libraries using ANGLE instead of OpenGL. You will also need to add a few lines to the main cpp and the .pro file (the specifics are in the release notes). Hope this helps! -Luke
... View more
06-22-2015
02:02 PM
|
0
|
5
|
3161
|
|
POST
|
Cool, glad you figured it out. You're correct, it does not automatically inherit the spatial reference once it is added to the GL. -Luke
... View more
06-19-2015
09:14 AM
|
0
|
0
|
1600
|
|
POST
|
Rainer- Give this code a try- import QtQuick 2.3
import ArcGIS.Extras 1.0
import ArcGIS.Runtime 10.26
Rectangle {
id: rootRectangle
property bool graphicSelected: false
property int graphicID
property double scaleFactor: System.displayScaleFactor
Map {
id: mainMap
anchors.fill: parent
wrapAroundEnabled: true
focus: true
grid {
visible: true
gridType: Enums.GridTypeMgrs
labelVisible: true
}
// Create the initial graphics through JSON
onStatusChanged: {
if (status === Enums.MapStatusReady) {
var graphic1 = {
geometry: {
spatialReference: {latestWkid: 3857,wkid:102100},
x: 16130193.189065285,
y: -3807126.3427607343
},
symbol: {
type: "esriSMS",
size: 20,
style: "esriSMSX",
color: "blue"
}
};
graphicsLayer.addGraphic(graphic1);
}
}
onMouseClicked: {
if (graphicSelected) {
graphicsLayer.graphic(graphicID).moveTo(mouse.mapPoint);
graphicsLayer.unselectGraphic(graphicID);
graphicSelected = false;
} else {
var tolerance = Qt.platform.os === "ios" || Qt.platform.os === "android" ? 4 : 1;
graphicsLayer.findGraphic(mouse.x, mouse.y, tolerance * scaleFactor);
}
}
ArcGISTiledMapServiceLayer {
url: "http://services.arcgisonline.com/arcgis/rest/services/World_Topo_Map/MapServer"
}
GraphicsLayer {
id: graphicsLayer
renderingMode: Enums.RenderingModeStatic
onFindGraphicsComplete: {
for (var i = 0; i < graphicIDs.length; i++) {
var graphicId = graphicIDs;
graphicID = graphicIDs;
if (!isGraphicSelected(graphicId)) {
selectGraphic(graphicId);
var selGraphic = graphicsLayer.graphic(graphicId);
console.log("Point Coordinates (102100):", JSON.stringify(selGraphic.geometry.json))
console.log("MGRS Coordinate", selGraphic.geometry.toMgrs(Enums.MgrsConversionModeAutomatic, 10, false, false))
graphicSelected = true;
} else {
unselectGraphic(graphicId);
graphicSelected = false;
}
}
}
}
}
}
... View more
06-18-2015
03:43 PM
|
2
|
3
|
1600
|
|
POST
|
Michael- Try commenting out your set client id in the main.cpp. This is setting it up to run as a basic app, but Local Server requires a standard license. You will need to apply a standard license once you are ready to deploy, but in the meantime, you can just not set client id or license in main.cpp, and it will run in developer mode. Developer mode will allow you to run local server. Thanks, Luke
... View more
06-18-2015
10:59 AM
|
0
|
3
|
3491
|
|
POST
|
Hey Michael- Could you please upload the whole project (including header and pro) to make it a bit easier to build quickly/debug? Thanks! Luke
... View more
06-17-2015
10:58 AM
|
0
|
5
|
3491
|
|
POST
|
Michael- Can you please attach your code to this thread? Thanks, Luke
... View more
06-17-2015
09:41 AM
|
0
|
7
|
3491
|
|
POST
|
Hey Alex- The QML API wasn't originally architected in a way to let you do this, so it is a technical limitation as of now. The C++ objects and QML objects are in fact not actually the same objects under the hood. We are looking at supporting this in the future, but for now, you will need to use the Runtime API in either C++ or QML. Thanks, Luke
... View more
06-12-2015
09:35 AM
|
1
|
1
|
1411
|
|
POST
|
Interesting, the geodatabase creates some temp files when it is opened, so I wonder if there are some permissions related issues that keep this from working.
... View more
06-09-2015
05:05 PM
|
0
|
0
|
1970
|
|
POST
|
Hmm, one other thing to try is to add /mnt to the front of it ("/mnt/storage/extSdCard..."). From googling Qt android external storage, I see others sometimes needing to include /mnt in the path. -Luke
... View more
06-08-2015
10:09 AM
|
0
|
0
|
1970
|
|
POST
|
Prem- Can you please send some code + the service you are using to reproduce? We have not seen this error before. Thanks, Luke
... View more
06-08-2015
09:18 AM
|
0
|
1
|
1459
|
|
POST
|
System.userHomeFolder is cross platform, so you can use it on iOS and Android. By default on Android, this will return /sdcard as the user home path. See here - Deploy local offline data with your app—ArcGIS Runtime SDK for Qt | ArcGIS for Developers I have found that if you have an actual external sdcard beyond what is shipped with the device, the actual name of the drive can change depending on the device (i.e. is not consistent between different Android devices). There isn't a generic function that will always return the external storage card path or anything, but you can go into whatever file explorer you have on your Android device and typically see the path there. You could then use Qt.platform.os to determine if it is Android and use that path, or something like that.
... View more
06-08-2015
09:16 AM
|
0
|
2
|
1970
|
|
POST
|
Matt- It should contain the list of registered offline geodatabases with the feature service. Check out the sample service for an example - http://sampleserver6.arcgisonline.com/arcgis/rest/services/Sync/WildfireSync/FeatureServer/replicas When you sync your edits, it will check to make sure what you are trying to sync is registered with the service, otherwise will likely throw an error saying it can't find the replica GUID. Not sure why you aren't seeing anything on your service - maybe your apps are unregistering through the sync task? -Luke
... View more
06-02-2015
05:37 PM
|
0
|
1
|
1670
|
|
POST
|
This was a bug with the identity manager. It will be fixed in the 10.2.6 release of the SDK, which will be out shortly. The workaround is to directly set the user credentials on the service table instead of using the identity manager.
... View more
06-01-2015
01:28 PM
|
0
|
0
|
4903
|
|
POST
|
Prem- Are you using 10.2.5 final? EnableLabels should work on FeatureLayer. I ran a test with a geodatabase I have, and it works just fine. This did not work in some instances for the beta. For group layers, what are you wanting to do? Is something not working? Publishing RuntimeContent is often the same as publishing a FeatureService, so any sort of analyzer errors you get when publishing a feature service should also show in publishing RTC, and things that work for a FS should work with RTC. Thanks, Luke
... View more
05-27-2015
01:14 PM
|
0
|
1
|
1173
|
|
POST
|
Ok, good to know. We are looking into C++ support for a future release, but are not there yet. Thanks, Luke
... View more
05-26-2015
01:16 PM
|
1
|
0
|
1904
|
| 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 |
3 weeks ago
|