Hi,
I have a hosted online feature service containing a polygon layer with just a circle. Now I have a more complicated geometry (more circles) and want to replace the original geometry with the new geometry without touching any of the attributes. How do I achieve that with python api?
You can edit a feature's geometry using the same edit_features() workflow as you would for editing its attributes, except you are updating its SHAPE property, instead of one or more of the fields in the attribute property. Some helpful resources for editing features and how polygon geometries are specified are:
Thank you for the help!
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.