Convert Coordinate Notation (Data Management)

Summary

Converts a table containing point coordinate fields to a point feature class. The input table's coordinate fields can be in a variety of notations, such as GARS, UTM, and MGRS. The output point feature class also contains point coordinate fields in a coordinate notation of your choosing.

Usage

Syntax

ConvertCoordinateNotation_management (in_table, out_featureclass, x_field, y_field, input_coordinate_format, output_coordinate_format, {id_field}, {spatial_reference})
ParameterExplanationData Type
in_table

Table containing the coordinate field(s) to convert.

Table View
out_featureclass

Output feature class of points. The attribute table will contain a field of the converted coordinates.

Feature Class
x_field

X coordinate field name in the Input Table. For DD and DDM this is the longitude field. For DMS, GARS, GEOREF, UTM, USNG, and MGRS, this is the only field as these are single-string coordinate types.

Field
y_field

Y coordinate field name in the input table. For DD and DDM this is the latitude field. This parameter is disabled for DMS, GARS, GEOREF, UTM, USNG, and MGRS.

Field
input_coordinate_format

Coordinate format of the input fields. The default is DD.

  • DDDecimal degrees
  • DDMDecimal minutes
  • DMSDegrees-minutes-seconds
  • GARSGlobal Area Reference System
  • GEOREFWorld Geographic Reference System
  • UTMUniversal Transverse Mercator
  • USNGUnited States National Grid
  • MGRSMilitary Grid Reference System
String
output_coordinate_format

Format of the output coordinates in the output point feature class. The default is DD.

  • DDDecimal degrees in the format: DDD.dddd
  • DDMDecimal minutes in the format: DDD MM.mmmm
  • DMSDegrees-minutes-seconds in the format: DDD MM SS.ssss
  • GARSGlobal Area Reference System
  • GEOREFWorld Geographic Reference System
  • UTMUniversal Transverse Mercator
  • USNGUnited States National Grid
  • MGRSMilitary Grid Reference System
String
id_field
(Optional)

ID field from the input table. This may be used to join the output features back to the input table.

Field
spatial_reference
(Optional)

Spatial reference of the input coordinates. The default is GCS_WGS_1984.

Spatial Reference

Code Sample

ConvertCoordinateNotation example 1 (stand-alone script)

Basic ConvertCoordinateNotation usage with one input field.

#Imports
import arcpy

#Locals
in_tab = r"c:\workspace\inmed.gdb\loc_mgrs"
out_pts = r"c:\workspace\inmed.gdb\loc_final"

#Convert Coordinate Notation with MGRS as input field.
arcpy.ConvertCoordinateNotation_management(in_tab,out_pts,"m10d","#","MGRS","DD")
ConvertCoordinateNotation example 2 (stand-alone script)

Basic ConvertCoordinateNotation usage with two input fields.

#Imports
import arcpy

#Locals
in_tab = r"c:\workspace\mtf.gdb\rit_up_DD"
out_pts = r"c:\workspace\mtf.gdb\ritLOC"

#Convert Coordinate Notation with DD as input fields.
arcpy.ConvertCoordinateNotation_management(in_tab,out_pts,"LON","LAT","DD","GARS")

Environments

This tool does not use any geoprocessing environments

Related Topics

Licensing Information

ArcView: Yes
ArcEditor: Yes
ArcInfo: Yes

10/27/2014