Add GPS Metadata Fields (Data Management)

Summary

Adds GNSS fields to a feature class in a geodatabase.

Usage

  • The following fields will be added to the 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

Parameters

LabelExplanationData Type
Input Point Features

The input point feature class to be updated.

Feature Layer

Derived Output

LabelExplanationData Type
Updated Point Features

The updated point features.

Feature Layer

arcpy.management.AddGPSMetadataFields(in_point_features)
NameExplanationData Type
in_point_features

The input point feature class to be updated.

Feature Layer

Derived Output

NameExplanationData Type
updated_point_features

The updated point features.

Feature Layer

Code sample

AddGPSMetadataFields example (Python window)

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

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

Environments

Licensing information

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

Related topics