Skip to content

Latest commit

 

History

History
69 lines (43 loc) · 6.53 KB

add_update_gnss_fields_python_api.md

File metadata and controls

69 lines (43 loc) · 6.53 KB

Add GNSS Metadata Fields

A Python script and corresponding toolbox to automatically add and update GNSS attributes to feature services.

Supported in ArcGIS Pro 2.0+

This script/tool attempts to add the following fields to a Point Feature Class:

Attribute Field Alias Field Name Field Type Domain Notes
Position source type 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 Receiver Name ESRIGNSS_RECEIVER String(50)
Latitude Latitude ESRIGNSS_LATITUDE double
Longitude Longitude ESRIGNSS_LONGITUDE double
Altitude Altitude ESRIGNSS_ALTITUDE double
Horizontal accuracy Horizontal Accuracy (m) ESRIGNSS_H_RMS double
Vertical accuracy Vertical Accuracy (m) ESRIGNSS_V_RMS double
Fix time Fix Time ESRIGNSS_FIXDATETIME Date UTC
Fix type 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 Correction Age ESRIGNSS_CORRECTIONAGE double
Station ID Station ID ESRIGNSS_STATIONID Short
Number of satellites Number of Satellites ESRIGNSS_NUMSATS Short ESRI_NUM_SATS_DOMAIN Range 0-99
PDOP PDOP ESRIGNSS_PDOP double
HDOP HDOP ESRIGNSS_HDOP double
VDOP VDOP ESRIGNSS_VDOP double
Direction of travel Direction of travel (°) ESRIGNSS_DIRECTION double
Speed Speed (km/h) ESRIGNSS_SPEED double
Compass reading Compass reading (°) ESRISNSR_AZIMUTH double
Average horizontal accuracy Average Horizontal Accuracy (m) ESRIGNSS_AVG_H_RMS double
Average vertical accuracy Average Vertical Accuracy (m) ESRIGNSS_AVG_V_RMS double
Number of positions averageed Averaged Positions ESRIGNSS_AVG_POSITIONS Long
Standard deviation Standard Deviation (m) ESRIGNSS_H_STDDEV double

Intructions to run from Pro.

image

  • See tool metadata in Pro for detailed instructions about parameters.

Intructions to run the script.

  1. Install ArcGIS API for Python using Conda (https://developers.arcgis.com/python/guide/install-and-set-up/).
  2. Once installed start command prompt (with adminstrator rights).
  3. Navigate to the directory where Anaconda was installed and check if Python was installed successfully.

image

  1. Exit out of Python's interactive shell.

  2. Script usage help. Information on required and optional parameters can be obatined via -h flag

image

  1. Run the script with the required arguments

image

  1. Running the script from within ArcGIS Pro python environment

image