Convert Coordinate Notation (Data Management Tools)
Summary
Converts coordinate notations contained in one or two fields from one notation format to another.
Usage
The coordinate system of the values stored in the X Field (Longitude) and Y Field (Latitude) values is specified with the Input Coordinate System parameter. The default is GCS_WGS_1984 unless the input table is a feature class, in which case the default is the coordinate system of the input features.
The following formats are supported:
Decimal degrees (DD)
Degrees decimal minutes (DDM)
Degrees-minutes-seconds (DMS)
Global Area Reference System (GARS)
World Geographic Reference System (GEOREF and GEOREF 16)
Universal Transverse Mercator (UTM)
United States National Grid (USNG and USNG 16)
Military Grid Reference System (MGRS and MGRS 16)
For the Input Coordinate Format parameter options DD 1, DDM 1, and DMS 1, the latitude and longitude values must represent a location that is concatenated together and stored in a single field.
For the DD 2, DDM 2, and DMS 2 options, the latitude and longitude values are represented by two separate fields.
For the DD numeric option, the latitude and longitude values are stored in two separate fields of type double.
For the Gars, Georef, Georef 16, UTM zones, UTM bands, USNG, USNG 16, MGRS and MGRS 16 options, the values are single-string coordinate formats, meaning only one field contains the coordinate.
For the Input Coordinate Format and Output Coordinate Format parameters, the MGRS 16 (example: 11SLT7858811533670379), USNG 16, and Georef 16 options have higher precision (16 digits) than the equivalent MGRS (example: 11SLT78588115), USNG, and Georef options (8 digits).
All fields from the input table, including the
OIDfield and the input format fields, will be transferred to the output point feature class. TheOIDfield values can be used to differentiate valid notations that are converted when the Exclude records with invalid notation parameter is checked.Output field names will be matched to the name of the output coordinate notation. For example, if the output format is MGRS, the new output field name will be
MGRS.If a field with the same name as the input field already exists in the output, the name of the copied field will be appended with a unique number.
Uncheck the Exclude records with invalid notation parameter to retain information regarding all input records. The Check Geometry tool can be used to identify records with invalid notations.
If there are records with invalid notations, the tool messages will include the path of the log file that contains IDs of all invalid records.
The Add XY Coordinates tool can be used to add two fields—
POINT_XandPOINT_Y—to the output point feature class. These fields contain the coordinates of a point in the unit of the coordinate system of the feature class.The tool can convert numeric notations DD, DMS, and DDM to other output formats, as long as the input values of DD, DMS, and DDM formats do not contain a letter character.
Parameters
| Label | Explanation | Data type |
|---|---|---|
|
Input Table |
The input table or text file. Point features are also valid. |
Table View |
|
Output Feature Class |
The output point feature class. The attribute table will contain all fields of the input table along with the fields containing converted values in the output format. |
Feature Class |
|
X Field (Longitude) |
A field from the input table containing the longitude value. For the Input Coordinate Format parameter's DD 2, DD numeric, DDM 2, and DMS 2 options, this is the longitude field. For the DD 1, DDM 1, and DMS 1 options, this field contains both latitude and longitude values in a single string. For the Gars, Georef, Georef 16, UTM zones, UTM bands, USNG, USNG 16, MGRS, and MGRS 16 options, this field contains an alphanumeric notation in a single text field. |
Field |
|
Y Field (Latitude) |
A field from the input table containing the latitude value. For the Input Coordinate Format parameter's DD 2, DD numeric, DDM 2, and DMS 2 options, this is the latitude field. This parameter is inactive when one of the single-string formats is chosen. |
Field |
|
Input Coordinate Format |
Specifies the coordinate format of the input fields. DD, DDM, DMS, and UTM are also valid keywords; they can be used by typing in (on the dialog box) or passing the value in scripting. However, keywords with an underscore and a qualifier tell more about the field values.
|
String |
|
Output Coordinate Format |
Specifies the coordinate format to which the input notations will be converted. DD, DDM, DMS, and UTM are also valid keywords; they can be used by typing in (on the dialog box) or passing the value in scripting. However, keywords with an underscore and a qualifier tell more about the field values.
|
String |
|
ID (Optional) |
This parameter is no longer used, as all fields are transferred to output table. |
Field |
|
Output Coordinate System (Optional) |
The spatial reference of the output feature class. The default is GCS_WGS_1984. The tool projects the output to the spatial reference specified. If the input and output coordinate systems are in a different datum, a default transformation will be used based on the coordinate systems of the input and the output and the extent of the data. |
Spatial Reference |
|
Input Coordinate System (Optional) |
The spatial reference of the input data. If the input spatial reference cannot be obtained from the input table, a default of GCS_WGS_1984 will be used. |
Coordinate System |
|
Exclude records with invalid notation (Optional) |
Specifies whether to exclude records with invalid notation.
|
Boolean |
Environments
Scratch Workspace, Current Workspace, Output Coordinate System, Geographic Transformations, XY Tolerance
Licensing information
- Basic: Yes
- Standard: Yes
- Advanced: Yes