field calculation of centroid of a polygon for degree min sec

908
2
11-04-2010 10:09 AM
BiswajitSaha
New Contributor
is there any class or function belongs to field calculation of centroid of a polygon to degree min sec  in arcpy?
0 Kudos
2 Replies
TimothyHandley
New Contributor
It takes several steps, but you could do this:
  - Use Feature to Point to create a set of points for the centroids of your polygons
  - Use Project to put this point feature class into a geographic coordinate system.
  - Use Add XY Coordinates to get long and lat for the centroids. I think these will be in decimal degrees.
  - Do a little math to convert the decimal portions of the lat/long into minutes and seconds.
0 Kudos
KimOllivier
Occasional Contributor III
You can directly calculate DMS using the calculate geometry interactive tool on a table in ArcMap.

The trick is to create a TEXT field to calculate into and you will be given more output format options.

Doesn't work for a script, I know.
0 Kudos