Select to view content in your preferred language

Detect geometry change

849
2
Jump to solution
11-30-2012 02:43 AM
Dag_MartinRomslo
Emerging Contributor
What is the preferred way to detect a geometry change? To me it seems that a layer's OnFeatureGeometryChanged() is called when a geometry changes, but also if there only has been changes in attribute values in an edit form. I need to isolate real geometry changes.
Tags (3)
0 Kudos
1 Solution

Accepted Solutions
GarethWalters
Deactivated User
Hi Dag,

If you are using AXF data you will notice that the AXF_STATUS column in you data will actually show the difference between attributes and geometry updates.

http://help.arcgis.com/en/arcpadstudio/10.0/help/index.html#//01q000000060000000

However using shapefiles you are limited to the event yo mentioned. you could blend a couple of ideas I suppose, like looking to see which tool is active and make some assumptions. Or you could read the vertices into memory before editing and do a check at the end.

I hope this helps. Let me know how you get on.

Cheers,

Gareth

View solution in original post

0 Kudos
2 Replies
GarethWalters
Deactivated User
Hi Dag,

If you are using AXF data you will notice that the AXF_STATUS column in you data will actually show the difference between attributes and geometry updates.

http://help.arcgis.com/en/arcpadstudio/10.0/help/index.html#//01q000000060000000

However using shapefiles you are limited to the event yo mentioned. you could blend a couple of ideas I suppose, like looking to see which tool is active and make some assumptions. Or you could read the vertices into memory before editing and do a check at the end.

I hope this helps. Let me know how you get on.

Cheers,

Gareth
0 Kudos
Dag_MartinRomslo
Emerging Contributor
Thank you Gareth.
Since I'm using shapes, my solution to this was to create a function to detect geometry changes by looking on the active tools.
0 Kudos