Multiple Coordinates in a single field to shape

281
1
11-09-2023 11:29 AM
Labels (2)
KoushikSrinath
New Contributor

I have multiple coordinates in one field which represent a geofence or a polygon of influence. How do I plot these points ? XY to Point allows just one. The image below shoes the coordinates represented as lat/long. Is there a way I can automate this or is there a particular tool?Screenshot 2023-11-09 142748.png

1 Reply
BobBooth1
Esri Contributor

You can create and add geometries to a feature class in Python using an Insert Cursor:

https://pro.arcgis.com/en/pro-app/latest/arcpy/data-access/insertcursor-class.htm

See the last code example, at the bottom of the page, for how to do this for polylines.

See also:

https://www.e-education.psu.edu/geog485/node/323

Or, if you reformat your data a bit, you might use this tool:

https://pro.arcgis.com/en/pro-app/latest/tool-reference/defense/coordinate-table-to-polygon.htm