|
POST
|
Think I have it...just syntax... what are the \ used in his example Feature layer definition expression | ArcGIS for Developers How can I make a LIKE statement onClicked: { Points.definitionExpression = "created_user = 'Law'"
}
... View more
12-26-2019
11:28 AM
|
0
|
4
|
1852
|
|
POST
|
Im trying this but not sure because I am using a local geodatabase and think my syntax might be incorrect It removes all of the records when I click the button and then turns them all on BUT its removing them all and I know there are a couple different values in the created_user field. thoughts? Button {
text: "Apply Expression"
enabled: gdb.loadStatus === Enums.LoadStatusLoaded
onClicked: {
Points.definitionExpression = "created_user = \'ESRI_Anonymous\'"
}
}
Button {
text: "Reset"
enabled: gdb.loadStatus === Enums.LoadStatusLoaded
onClicked: {
Points.definitionExpression = "";
}
}
... View more
12-26-2019
11:21 AM
|
0
|
5
|
1852
|
|
POST
|
I have a local .geodatabase on my mobile device. I can read it fine. I am now attempting to set a where clause or filter that allows the user to click a button and filter / ONLY show data that is there based on the Created_User field Can I just set a WHERE clause in the Geodatabase or do I nee to do something else... I would like to be able to click the button to just show that specific persons from the field and then click the button again and go back to ALL data. Thoughts? FeatureLayer {
id: Points
visible: false
featureTable: gdb.geodatabaseFeatureTablesByTableName["Hunting"]
// create the geodatabase
Geodatabase {
id: gdb
path: Path
onErrorChanged: errorMessage = error.message;
}
onErrorChanged: errorMessage = error.message;
}
... View more
12-26-2019
11:04 AM
|
0
|
6
|
1920
|
|
POST
|
got it.... QuickReportApp.qml property string userCredentialsName: "" On click of the Continue button I set this Public Variable in the UserCredentialsView.qml Button {
id: continueButton
width: ((parent.width / 2) - 2 * displayScaleFactor)
text: qsTr("Continue")
onClicked: {
// continue with the username and password
if (challenge)
challenge.continueWithUsernamePassword(usernameTextField.text, passwordTextField.text);
rootUser.visible = false;
app.userCredentialsName = usernameTextField.text;
}
}
... View more
12-23-2019
10:47 AM
|
0
|
0
|
1115
|
|
POST
|
Working in the Quick report Template I can see how they are creating variables in the QuickReportApp.qml These variables are set and reference through the application with app.somevariablename App { id: app What I am trying to do is sort of the opposite. I am trying to set a variable inside UserCredentialsView.qml file and update the value back in the QuickReportApp.qml Thus creating a GLOBAL variable that I can reference from Anywhere in my app. My confusion is that all the Authentication qml files have the same ID so I can figure out how to call them individually So this is why I am thinking of pushing the value back to the QuickReportApp.qml somehow... I might be going about this wrong. Anyone have better idea on how to create a global id that can be referenced by ANY qml file and that gets populated withing the UsercredentialsView.qml?????
... View more
12-23-2019
07:26 AM
|
0
|
1
|
1161
|
|
POST
|
OK thanks...I will look into that... Does that have logic to download additional features if you want to sync any new data? Where it just downloads the new features that were added since the last pull?
... View more
12-20-2019
02:10 PM
|
0
|
0
|
969
|
|
POST
|
I am looking at the example and having a hard time trying to figure out how to replace the hospital locations defined in the facilitiesOverlay, with features that I would have in a RestEndpoint. Say my hospitals were in a RestEndPoint.... GraphicsOverlay {
id: facilitiesOverlay I think this would have to be manipulated as well? function createFacilities() {
featureLayerFishing.featureTable.forEach(function(graphic) {
//featureLayerFishing.graphics.forEach(function(graphic) {
var facility = ArcGISRuntimeEnvironment.createObject("Facility", {geometry: featureLayerFishing.geometry});
facilities.push(facility);
});
}
I should be able to place the FeatureLayer in the map as such correct? I tried to modify the createFacilities function above but did no justice as I am not sure how to approach this... Any thoughts? Map {
BasemapStreets {}
initialViewpoint: ViewpointCenter {
Point {
x: -13041154
y: 3858170
spatialReference: SpatialReference { wkid: 3857 }
}
targetScale: 1e5
}
FeatureLayer {
id: featureLayerFishing
ServiceFeatureTable {
id: featureTable0
url: "https://vvv.vvv.vvv.gov/arcgis/rest/services/Projects/vvv/FeatureServer/2"
}
}
onLoadStatusChanged: {
createFacilities();
task.load();
}
}
... View more
12-20-2019
12:45 PM
|
0
|
2
|
721
|
|
POST
|
I am trying to retrieve data from a Service so I can take my application offline. I have this working to some degree but confused on a few things. Right now I am using the populateFromService Method to get my data and display it in the map. ServiceFeatureTable QML Type | ArcGIS for Developers This supposedly creates a local database and stores the data there????? * I can view the datasets in my map * I can select and return data from those locations SO everything is great there...... Problems / Issues: If I leave the page and then come back to it the data is gone. This requires me to sync back up with the data. The problem is that if I am off grid I cannot do this. Questions: Where is this geodatabase being created? Is it being deleted once I leave the page? Is there a way to store it somewhere else? Can I update the data in this database by re-syncing at another time? Are there other options for reading and syncing the data from a service into 3 different feature classes/Tables? Wants: I would like this to be a permanent geodatabase on the users phone that gets updated via a button. Is there a different import/sync procedure that is more permanent? Currently I am doing this: FeatureLayer {
id: featureLayerBoating
ServiceFeatureTable {
id: featureTable0
url: "https://vvvv.vvvv.vvvv.gov/arcgis/rest/services/Projects/vvvv/FeatureServer/2"
featureRequestMode: Enums.FeatureRequestModeManualCache
onPopulateFromServiceStatusChanged: {
if (populateFromServiceStatus === Enums.TaskStatusCompleted) {
if (!populateFromServiceResult.iterator.hasNext) {
return;
}
var count = populateFromServiceResult.iterator.features.length;
console.log("Retrieved %1 features".arg(count));
}
}
}
}
QueryParameters {
id: params
whereClause: "1 = 1"
}
// SNIP
onClicked:{
if (checked == true){
featureTable0.populateFromService(params, true, ["*"]);
}else if (checked == false){
console.log("false");
}else{
console.log("error");
}
}
// SNIP
... View more
12-20-2019
11:35 AM
|
0
|
2
|
1056
|
|
POST
|
I was almost there....ahahhahaahah one stupid \ Have a great weekend
... View more
12-20-2019
10:27 AM
|
0
|
0
|
1779
|
|
POST
|
Yea thats what I was referencing....looked everywhere...every place I looked and found something it was \n no where did i see if referenced with two \\ as your example \\n But that seems to have worked... // NO
"expression":"$feature.Owner1 + '\n' + $feature.MapNumber"
// YES
"expression":"$feature.Owner1 + '\\n' + $feature.MapNumber"
... View more
12-20-2019
07:43 AM
|
0
|
2
|
1779
|
|
POST
|
Something like the vbNewLine used in ArcMap Label expressions????? Tried this but no go "expression":"$feature.Owner1 + '\n' + $feature.MapNumber"
... View more
12-19-2019
11:56 AM
|
0
|
0
|
1779
|
|
POST
|
Anyone know if and how I can create the Label expression that puts the values on 2 lines? "expression":"$feature.Owner1 + ' GO TO NEXT LINE ' + $feature.MapNumber "
LabelDefinition {
json: {
"labelExpressionInfo":{
"expression":"$feature.Owner1 + ' ' + $feature.MapNumber "
},
// SNIP
} // END OF LAYER DEFINITION
... View more
12-19-2019
11:55 AM
|
0
|
5
|
1838
|
|
POST
|
Yea this one is puzzlin me... As you can see from the two wexamples below I am pointing to the same mmpk file on the storage card. file:///storage/82FF-66AD/Android/data/com.xxxx.background.data/QuickReport/backgrounddatammpk.mmpk On the RefineLocationPage.qml page from the Quick report Template I am pushing the path to my Storage Card RefineLocationPage.qml file
MobileMapPackage {
id: mmpk
path: app.mmpkManager.fileUrl1
onLoadStatusChanged: {
if (loadStatus === Enums.LoadStatusLoaded) {
mapView.map = mmpk.maps[0];
isOfflineMap = true;
if(refineLocationPage.currentExt){
mapView.setViewpointGeometry(refineLocationPage.currentExt);
}
}
}
}
MmpkManger.qml file to GET the propoer path/url to the file
property string subFolder: "QuickReport"
property string itemName1: "backgrounddatammpk.mmpk"
property url fileUrl1: [fileFolder1.url, itemName1].join("/")
FileFolder{
id: fileFolder1
readonly property url storageBasePath: "file://" + "/storage/82FF-66AD/Android/data/" + "com.xxxx.background.data"
property url storagePath: subFolder && subFolder>"" ? storageBasePath + "/" + subFolder : storageBasePath
url: storagePath
} On my second page I am simply displaying the mmpk file as an ArcGISTiledLayer as such The reason I have it set up this way is that I have a button that allows the user to click through a few basemaps. ListModel {
id: tpkList
ListElement { text: "Second TPK Basemap"; map: "file:///storage/82FF-66AD/Android/data/com.xxxx.background.data/QuickReport/backgrounddatammpk.mmpk" }
ListElement { text: "Second TPK Basemap"; map: "file:///storage/82FF-66AD/Android/data/com.xxxx.background.data/QuickReport/District_23.mmpk" }
ListElement { text: "Second TPK Basemap"; map: "file:///storage/82FF-66AD/Android/data/com.xxxx.background.data/QuickReport/Richmond.tpk" }
ListElement { text: "Second TPK Basemap"; map: "file:///storage/82FF-66AD/Android/data/com.xxxx.background.data/QuickReport/District41_100Ft_Contours.mmpk" }
}
Basemap {
id: basemap
}
Component.onCompleted: {
var tpkPath = tpkList.get(0).map
var tpkBasemap = ArcGISRuntimeEnvironment.createObject("ArcGISTiledLayer", {url: tpkPath});
basemap.baseLayers.clear();
basemap.baseLayers.append(tpkBasemap);
}
... View more
12-19-2019
05:53 AM
|
0
|
0
|
980
|
|
POST
|
I created a mmpk as follows...this has been all through testing... 1. created a TPK with aerials 2. I then took the tpk and added contour lines and created the mmpk... When I use the Quick Report template and point the offline button to this mmpk it draw the aerials and contour lines fine...everything looks great. But I have a separate page that I am trying to show this mmpk file on and ONLY the aerials show up...the contours are not showing....I imagine only the first index in the mmpk is drawing? NO idea here. I am trying to show this .mmpk in a few different ways but neither shows the contour lines....is there something that I am missing. In the Quick report template there is code for a MobileMapPackage { but not in my second page. NOTE that I have a few mmpk files and 2 tpk files that I want the user to be able to display. Right now just trying to get the mmpk file to draw correctly with the contours. ListModel {
id: tpkList
ListElement { text: "Second TPK Basemap"; map: "file:///storage/82FF-66AD/Android/data/QuickReport/backgrounddatammpk.mmpk" }
ListElement { text: "Second TPK Basemap"; map: "file:///storage/82FF-66AD/Android/data/QuickReport/District_23.mmpk" }
ListElement { text: "Second TPK Basemap"; map: "file:///storage/82FF-66AD/Android/data/QuickReport/sd.tpk" }
ListElement { text: "Second TPK Basemap"; map: "file:///storage/82FF-66AD/Android/data/QuickReport/District41_100Ft_Contours.mmpk" }
}
Basemap {
id: basemap
}
// OR
Basemap {
id: basemap
ArcGISTiledLayer {
url: tpkList.get(3).map
}
}
// OR
Basemap {
id: basemap
MobileMapPackage {
path: tpkList.get(3).map
}
}
... View more
12-18-2019
08:26 AM
|
0
|
2
|
1106
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-20-2018 11:09 AM | |
| 1 | 09-10-2018 06:26 AM | |
| 1 | 09-15-2022 11:02 AM | |
| 1 | 05-21-2021 07:35 AM | |
| 1 | 08-09-2022 12:39 PM |
| Online Status |
Offline
|
| Date Last Visited |
09-19-2022
09:23 PM
|