Add GPS Metadata Fields (Data Management)

Summary

Adds GNSS fields to a feature class in a geodatabase.

Usage

    Caution:

    This tool modifies the input data. See Tools that modify or update the input data for more information and strategies to avoid undesired data changes.

  • The following fields will be added to an input polyline or polygon feature class. The geodatabase domains will also be created, if they do not already exist, and associated with the appropriate fields.

    Field aliasField nameData typeDomain

    Average horizontal accuracy (m)

    ESRIGNSS_AVG_H_RMS

    Double

    Average vertical accuracy (m)

    ESRIGNSS_AVG_V_RMS

    Double

    Worst horizontal accuracy (m)

    ESRIGNSS_WORST_H_RMS

    Double

    Worst vertical accuracy (m)

    ESRIGNSS_WORST_V_RMS

    Double

    Worst fix type

    ESRIGNSS_WORST_FIXTYPE

    Short

    ESRI_FIX_TYPE_DOMAIN

    • 0—Fix not valid
    • 1—GPS
    • 2—Differential GPS
    • 4—RTK Fixed
    • 5—RTK Float

    Number of manual locations

    ESRIGNSS_MANUAL_LOCATIONS

    Long

  • The following fields will be added to an input point feature class. The geodatabase domains will also be created, if they do not already exist, and associated with the appropriate fields.

    Field aliasField nameField typeDomain

    Position source type

    ESRIGNSS_POSITIONSOURCETYPE

    Short

    ESRI_POSITIONSOURCETYPE_DOMAIN

    • 0—Unknown
    • 1—User defined
    • 2—Integrated (System) Location Provider
    • 3—External GNSS Receiver
    • 4—Network Location Provider

    Receiver Name

    ESRIGNSS_RECEIVER

    String (50)

    Latitude

    ESRIGNSS_LATITUDE

    Double

    Longitude

    ESRIGNSS_LONGITUDE

    Double

    Altitude

    ESRIGNSS_ALTITUDE

    Double

    Horizontal Accuracy (m)

    ESRIGNSS_H_RMS

    Double

    Vertical Accuracy (m)

    ESRIGNSS_V_RMS

    Double

    Fix Time

    ESRIGNSS_FIXDATETIME

    Date

    Fix Type

    ESRIGNSS_FIXTYPE

    Short

    ESRI_FIX_TYPE_DOMAIN

    • 0—Fix not valid
    • 1—GPS
    • 2—Differential GPS
    • 4—RTK Fixed
    • 5—RTK Float

    Correction Age

    ESRIGNSS_CORRECTIONAGE

    Double

    Station ID

    ESRIGNSS_STATIONID

    Short

    Number of Satellites

    ESRIGNSS_NUMSATS

    Short

    ESRI_NUM_SATS_DOMAIN

    Range: 0-99

    PDOP

    ESRIGNSS_PDOP

    Double

    HDOP

    ESRIGNSS_HDOP

    Double

    VDOP

    ESRIGNSS_VDOP

    Double

    Direction of travel (°)

    ESRIGNSS_DIRECTION

    Double

    Speed (km/h)

    ESRIGNSS_SPEED

    Double

    Compass reading (°)

    ESRISNSR_AZIMUTH

    Double

    Average Horizontal Accuracy (m)

    ESRIGNSS_AVG_H_RMS

    Double

    Average Vertical Accuracy (m)

    ESRIGNSS_AVG_V_RMS

    Double

    Averaged Positions

    ESRIGNSS_AVG_POSITIONS

    Long

    Standard Deviation (m)

    ESRIGNSS_H_STDDEV

    Double

  • The following fields will also be added to an input point feature class when the Include offset metadata fields parameter is checked.

    Field aliasField nameData typeDomain

    Offset method

    ESRISNSR_OFFSET_METHOD

    String

    ESRI_OFFSET_METHOD_DOMAIN

    • Azimuth-Azimuth
    • Distance-Angle
    • Distance-Azimuth
    • Distance-Distance
    • Azimuth-Azimuth-Backsight
    • Distance-Azimuth-Backsight
    • Distance-Distance-Backsight
    • User-Defined

    Rangefinder name

    ESRISNSR_OFFSET_DEVICE

    String

    GNSS Antenna height (m)

    ESRIGNSS_ANTENNA_HEIGHT

    Double

    Rangefinder height (m)

    ESRISNSR_OFFSET_LASER_HEIGHT

    Double

    Laser target height (m)

    ESRISNSR_OFFSET_LASER_TARGET_HT

    Double

    Magnetic declination (°)

    ESRISNSR_OFFSET_MAG_DEC

    Double

    CP1 Latitude

    ESRIGNSS_CP1_LATITUDE

    Double

    CP1 Longitude

    ESRIGNSS_CP1_LONGITUDE

    Double

    CP1 Ellipsoidal height (m)

    ESRIGNSS_CP1_ALTITUDE

    Double

    CP1 Horizontal accuracy (m)

    ESRIGNSS_CP1_H_RMS

    Double

    CP1 Vertical accuracy (m)

    ESRIGNSS_CP1_V_RMS

    Double

    CP1 Fix time

    ESRIGNSS_CP1_FIXDATETIME

    Date

    CP1 Fix type

    ESRIGNSS_CP1_FIXTYPE

    Short

    ESRI_FIX_TYPE_DOMAIN

    • 0—Fix not valid
    • 1—GPS
    • 2—Differential GPS
    • 4—RTK Fixed
    • 5—RTK Float

    CP1 Correction age

    ESRIGNSS_CP1_CORR_AGE

    Double

    CP1 Station ID

    ESRIGNSS_CP1_STATIONID

    Short

    CP1 Number of satellites

    ESRIGNSS_CP1_NUMSATS

    Double

    CP1 PDOP

    ESRIGNSS_CP1_PDOP

    Double

    CP1 HDOP

    ESRIGNSS_CP1_HDOP

    Double

    CP1 VDOP

    ESRIGNSS_CP1_VDOP

    Double

    CP1 Average horizontal accuracy (m)

    ESRIGNSS_CP1_AVG_H_RMS

    Double

    CP1 Average vertical accuracy (m)

    ESRIGNSS_CP1_AVG_V_RMS

    Double

    CP1 Averaged positions

    ESRIGNSS_CP1_AVG_POSITIONS

    Short

    CP1 Standard deviation (m)

    ESRIGNSS_CP1_H_STDDEV

    Double

    CP1 Laser slope distance (m)

    ESRISNSR_CP1_SLOPE_DIST

    Double

    CP1 Laser inclination (°)

    ESRISNSR_CP1_INCLINATION

    Double

    CP1 Laser azimuth (°)

    ESRISNSR_CP1_AZIMUTH

    Double

    CP2 Latitude

    ESRIGNSS_CP2_LATITUDE

    Double

    CP2 Longitude

    ESRIGNSS_CP2_LONGITUDE

    Double

    CP2 Ellipsoidal height (m)

    ESRIGNSS_CP2_ALTITUDE

    Double

    CP2 Horizontal accuracy (m)

    ESRIGNSS_CP2_H_RMS

    Double

    CP2 Vertical accuracy (m)

    ESRIGNSS_CP2_V_RMS

    Double

    CP2 Fix time

    ESRIGNSS_CP2_FIXDATETIME

    Date

    CP2 Fix type

    ESRIGNSS_CP2_FIXTYPE

    Short

    CP2 Correction age

    ESRIGNSS_CP2_CORR_AGE

    Double

    CP2 Station ID

    ESRIGNSS_CP2_STATIONID

    Short

    CP2 Number of satellites

    ESRIGNSS_CP2_NUMSATS

    Double

    CP2 PDOP

    ESRIGNSS_CP2_PDOP

    Double

    CP2 HDOP

    ESRIGNSS_CP2_HDOP

    Double

    CP2 VDOP

    ESRIGNSS_CP2_VDOP

    Double

    CP2 Average horizontal accuracy (m)

    ESRIGNSS_CP2_AVG_H_RMS

    Double

    CP2 Average vertical accuracy (m)

    ESRIGNSS_CP2_AVG_V_RMS

    Double

    CP2 Averaged positions

    ESRIGNSS_CP2_AVG_POSITIONS

    Short

    CP2 Standard deviation (m)

    ESRIGNSS_CP2_H_STDDEV

    Double

    CP2 Laser slope distance (m)

    ESRISNSR_CP2_SLOPE_DIST

    Double

    CP2 Laser inclination (°)

    ESRISNSR_CP2_INCLINATION

    Double

    CP2 Laser azimuth (°)

    ESRISNSR_CP2_AZIMUTH

    Double

Parameters

LabelExplanationData Type
Input Features

The input feature class that will be updated. The input can be a point, polyline, or polygon feature class.

Feature Layer
Include offset metadata fields
(Optional)

Specifies whether offset metadata fields will be added to the input feature class. This parameter is only applicable to point feature classes.

  • Checked—Offset metadata fields will be added to the input feature class.
  • Unchecked—Offset metadata fields will not be added to the input feature class.

Boolean

Derived Output

LabelExplanationData Type
Updated Features

The updated features.

Feature Layer

arcpy.management.AddGPSMetadataFields(in_point_features, {include_offset_fields})
NameExplanationData Type
in_point_features

The input feature class that will be updated. The input can be a point, polyline, or polygon feature class.

Feature Layer
include_offset_fields
(Optional)

Specifies whether offset metadata fields will be added to the input feature class. This parameter is only applicable to point feature classes.

  • INCLUDE_OFFSET_FIELDSOffset metadata fields will be added to the input feature class.
  • EXCLUDE_OFFSET_FIELDSOffset metadata fields will not be added to the input feature class. This is the default.
Boolean

Derived Output

NameExplanationData Type
updated_point_features

The updated features.

Feature Layer

Code sample

AddGPSMetadataFields example (Python window)

The following Python window script demonstrates how to use the AddGPSMetadataFields function.

import arcpy
arcpy.management.AddGPSMetadataFields(r'c:\data\fgdb.gdb\my_gps_tracks')

Environments

Licensing information

  • Basic: Yes
  • Standard: Yes
  • Advanced: Yes

Related topics