Open jreadee opened 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
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.