0

I have a hosted feature service with a related table. The layer in the feature service needs to be updated every month or so. However, the data in the related table needs to remain unchanged. Is there a pythonic way to update the layer without altering the related data? I looked at creating an .sd file with Python but I don't anticipate much success based on what testing I've done. Would deleting the layer's contents and updating through the REST be feasible when I'm dealing with +70 thousand spatial objects?

Vince
20.5k16 gold badges49 silver badges65 bronze badges
asked Jun 29, 2017 at 18:15
1

1 Answer 1

1

If I understand the question correctly, you'll need to create a separate .mxd file with nothing more than the feature you'd like to update in it. Then, from that new .mxd file, publish a feature service. After that initial push, use this python script called update-hosted-feature-service to overwrite the hosted feature service as you schedule it to run.

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
answered Jun 29, 2017 at 19:54
1
  • If I'm understanding the script correctly, it would update the entire feature service, which I don't want to do. I only want to update a part of the feature service, the individual layer, while leaving the table unchanged. Commented Jun 30, 2017 at 12:29

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.