Select to view content in your preferred language

Calculate Geometry in Model Builder

35897
20
08-19-2011 01:43 PM
CaseyBentz
Frequent Contributor
I am looking for an easy method, similar to how you do it in ArcMap, to calculate geometry for two fields.  I want to add the lat and long to a point feature class that I have.  The coordinate system of the point feature class is not in geographic coordinates.  Any ideas.

Casey
0 Kudos
20 Replies
RichardFairhurst
MVP Honored Contributor
Does anyone know if line mid-points  (not centroid) can be programmatically calculated outside of the Calculate Geometry tool in the attribute table?  I need mid XY values calculated as part of a model builder process. 

Any ideas would be great....thanks!


I believe you could use the geometry of the line from the shape field with the positionAlongLine (value, {use_percentage}) operation at the .5 position with the percentage option set as True.  This would return a point from which you could get X and Y coordinates.
0 Kudos