Calculate US National Grid coordinates for a point feature class

3021
3
05-17-2012 06:36 AM
GlennKammerer
New Contributor II
Does anybody have a script that can calculate the US National Grid coordinate value for all points in a feature class? Apparently there is some functionality for the US National Grid built into ArcMap 10, but I have yet to run across any tools, menus, wizards or toolboxes that have anything to do with this.

Any help or suggestions greatly appreciated.
Tags (2)
0 Kudos
3 Replies
AndrewChapkowski
Esri Regular Contributor
You can use this script: http://code.google.com/p/opcon/source/browse/trunk/lib/CoordConverter.py to get the coordinates into MGRS or USNG coordinates (they are the same thing).

Sample use:
>>>    import CoordConvertor
>>>    ct = CoordConvertor.CoordTranslator()
>>>    print ct.AsMGRS([36.279707,-77.266846],4,False)
18S TF 96401735


Couple this module with the arcpy.UpdateCursor() you can then insert each value into your column.

You can also try to follow the instruction found here: http://blogs.esri.com/esri/arcgis/2011/01/05/converting-and-displaying-coordinates-in-arcgis-10/

Hope this helps.
GlennKammerer
New Contributor II
Thanks!! Will try this post haste!
0 Kudos
RichardButgereit
Occasional Contributor

See the EditorTracker add-in here -- FloridaDisaster.org - US National Grid 


Add X,Y, and USNG fields to your feature class, and at every add/update, coordinates are calculated. 

0 Kudos