Select to view content in your preferred language

GP tool to populate point shapes from X/Y number fields in existing FC

453
3
10-31-2024 04:38 AM
Status: Open
Labels (1)
Bud
by
Esteemed Contributor

ArcGIS Pro 2.9.5; Oracle 18c 10.7.1 EGDB

I have a point FC that has UTM X/Y number fields populated, but the shape field is null.

I want to use a geoprocessing tool to batch-populate the shape field using the X/Y coordinates. I want to do this with a single OOTB tool, not a custom script, model, or exported FC.

3 Comments
AlfredBaldenweck

Couldn't you just use XY to Point? It'd give you a copy of the original file, but it should work. (Although actually idk if XY to Point takes UTM)

Bud
by

@AlfredBaldenweck 

It looks like XY Table to Point can produce a UTM FC.

I suppose that might work as a last resort. But, as you said, it produces a copy of the original FC.

How could the new FC's shape be used to update the existing features in the original FC? I don't want to delete and replace the rows, I want to update them.
Maybe the new Upsert functionality in 3.1 could be used to update the features in the original FC: GP tool to batch-replace geometries from one FC to another (via related IDs). But I think that would only work if there was a user-defined unique ID other than the ObjectID to join on (the original FC's ObjectID won't be preserved in the new FC). Not all FCs have a user-defined unique ID column. Sure, I could add a new field in the original FC and use the Field Calculator to populate it with unique values such as the ObjectID (static). But that seems unnecessarily cumbersome.

Idea: GP Tools — Include original ObjectID field in output FC