Esri / overwrite-hosted-features

The Transportation 511 Script is used to keep the contents of a Feature Collection up to date. Please see
http://links.esri.com/stategovernment/help/transportation511
Apache License 2.0
7 stars 5 forks source link

Maintain original service projection? #20

Open jreadee opened 5 years ago

jreadee commented 5 years ago

Should this script retain the original service projection? It doesn't seem to. I ran the script against a hosted feature layer with required Projection (NZTM(2193)). The zipped FGDB is in the same projection. After running the tool the features are successfully added to the service but the projection of each of the service layers is updated to (WebMerc(102100)). I checked over the script but couldn't see a projection reference. Can anyone help with this? Thanks.

chris-fox commented 5 years ago

@jreadee, I have resolved this in the develop branch in the repo. Could you download the script from the develop branch and give it a try? The change will now maintain the original spatial reference defined in the service when updated.

https://github.com/Esri/overwrite-hosted-features/tree/develop