POST
|
NIM100346 wont be addressed NIM099522 open ENH-000085269 open
... View more
10-30-2015
06:52 AM
|
0
|
0
|
1067
|
POST
|
Actually, here is a very important use case that does not involve globalIDs: Imagine that the parent layer in a hosted service contains points of addresses. These addresses originate from a non-spatial business system within your organization. As expected the system generates unique integers for each address. Meanwhile, the ArcGIS child layer exists to track visits to addresses with Collector. Certain fields contain information you would like to bring back to your business system. By using an integer field (AddressID) for the relationship, the transfering and synchronizing with the external database is simpler. Where as trying to force globalIDs into your bussiness system would just complicate the workflow. One caveat is that you may want to prevent null values for the related field in the parent layer. That is unless the workflow allows users to create orphaned features in the child layer.
... View more
10-16-2015
11:30 PM
|
1
|
0
|
5414
|
POST
|
FeatureLayer.applyEdits() always erroring on update when it actually worked see Ben Fousek 's this.applyEdits(null, [feature], null, function (a, u, d) { console.log(u[0]); }, function (error) { console.log(error); });
... View more
09-28-2015
10:51 PM
|
0
|
0
|
431
|
POST
|
Do you use the rest to get around the feature return limit? Yes I use it to sync 70k+ features with a business system. The ArcREST code checks max feature count, breaks up large queries into chunks, and then combines them before returning the result. Traceback (most recent call last): File "<module1>", line 21, in <module> File "C:\Python27\ArcGIS10.2\lib\site-packages\arcrest\agol\layer.py", line 740, in query return FeatureSet.fromJSON(json.dumps(results)) File "C:\Python27\ArcGIS10.2\lib\site-packages\arcrest\common\general.py", line 590, in fromJSON for feat in jd['features']: KeyError: 'features' Its tough to say without seeing the featurelayer.query() line, but try # Set Geoprocessing environments Scratch_gdb = r'C:\Python\scratch.gdb' arcpy.env.scratchWorkspace = Scratch_gdb arcpy.env.workspace = Scratch_gdb print fl.query(where="1=1",out_fields='*',returnGeometry=False, returnfeatureclass=True, out_fc='tempfc') That may help narrow in on the issue. Also is there any docs on any of this... All i can find is the comments in the code replicaName - string of replica name layers - layer id # as comma seperated string keep_replica - if the replica does not have returnAsFeatureClass set to true, the feature service creates a permanent copy of the replica. If this is just a pull, then erase the replica in order to prevent build up of replicas. layerQueries - In addition to the layers and geometry parameters, the layerQueries parameter can be used to further define what is replicated. This parameter allows you to set properties on a per layer or per table basis. Only the properties for the layers and tables that you want changed from the default are required. Example: layerQueries = {"0":{"queryOption": "useFilter", "useGeometry": true, "where": "requires_inspection = Yes"}} geometryFilter - Geospatial filter applied to the replica to parse down data output. returnAttachments - If true, attachments are added to the replica and returned in the response. Otherwise, attachments are not included. returnAttachmentDatabyURL - If true, a reference to a URL will be provided for each attachment returned from createReplica. Otherwise, attachments are embedded in the response. returnAsFeatureClass - If a local copy is desired, set this parameter to True, else the service will return information on how to download the json file. out_path - Path where the FGDB will be saved. Only used with returnAsFeatureClass is True. This is the only documentation currently.
... View more
09-28-2015
07:17 AM
|
0
|
0
|
446
|
POST
|
If you're primary purpose is to export to fgdb, you could bypass ArcMap altogether with ArcREST Esri/ArcREST · GitHub . This ArcREST/create_replica_fs.py will get you a a local backup of the data (no bidirectional option yet). If you want to keep the data in one location, you can follow ArcREST/query_agol_layer.py to query features since the last backup. The in-memory featureset can then be incorporated with the existing local data via arcpy cursors for fgdb or the pyodbc library for sql databases. It is also possible to programmatically build 2 way synchronization with arcpy and arcrest. Then you can use windows task scheduler to sync your local version every 15 minutes. Hope this helps, Davin
... View more
09-17-2015
10:13 PM
|
0
|
2
|
446
|
POST
|
I have not seen this behavior but would love to be able to do this with a local html file. My android users currently click an image in the popup that links to file://mnt/sdcard/CollectorCalculator/index.html#field1={field1}&field2={field2}. The local url simply runs a lookup table so the user can copy field3 back into collector. If I could actually get the html to load in collector, it would save numerous steps hopping in and out of collector. Bert Havekes, could you please type out the syntax for your link so I can try and reproduce on a local file? Thanks.
... View more
09-07-2015
12:05 AM
|
0
|
3
|
799
|