I am create feature layers in Pro but when I open the attribute table, there are no XY coordinates for either the polygon or line features I have created. Is there a way to have the coordinates automatically generate into the attribute table during the feature creation? Here are a few things I have already tried...
- Use the Create Feature Class geoprocessing tool, then
- Use the Create Feature geoprocessing tool
This does not automatically add the XY coordinates to the attribute table even though I did assign the same coordinate system as the basemap.
-------------------
- Use the Feature Vertices to Point geoprocessing tool, then
- Add XY coordinates geoprocessing tool, then
- Use Table to Excel geoprocessing tool
This can only be done with one layer at a time and would create a lot of extra layers. A problem because there will be lots of layers which would create a lot of different Excel files in which I would have to then put them into a single Excel file. I was wondering if there was a simpler way to get XY coordinates for all layers into a single attribute table.
------------------
I also found a python script but it did not work because all of the feature layers need to be shapefiles. I tried to create shapefiles in the Create Feature Class but it will not accept the .shp extension in the name.