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 point feature class. The geodatabase domains will also be created, if they do not already exist, and associated with specific 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 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 specific 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

Parameters

LabelExplanationData Type
Input Features

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

Feature Layer

Derived Output

LabelExplanationData Type
Updated Features

The updated features.

Feature Layer

arcpy.management.AddGPSMetadataFields(in_point_features)
NameExplanationData Type
in_point_features

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

Feature Layer

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

Related topics