Features to GPX

Titleā€ƒ Features to GPX

Summary

Convert a Shapefile or Geodatabase Feature Class to a GPX (GPS) file.


Usage

The tool takes both points and line feature classes as input.

Line features will be turned into Tracks (TRKS)

Point features will be turned into WayPoints (WPT)

Note: GPX uses the WGS84 projection. If the input data is not in WGS84, the conversion to GPX will reproject the data. If a transformation is required the best match possible is used. For complete reprojection control you should run the Project tool, converting your data into WGS84 and choosing the transformation correct for your situation.

Note: Features with the following fields will be used in creating output GPX. Output from the GPX to Features tool creates features with these fields.

  • Name

  • Descript

  • Type

  • Elevation

  • DateTimeS (original string DateTime field)

Point features with the field "Type" and a value of "TRKPT" will be turned into Tracks (TRKS)


Syntax

Parameter Explanation
Input_Features

Input features to convert into a GPX file.PointsMultipointsPolylines

Output_GPX (Optional)

Output GPX file (must use .gpx extension)

Zero_dates__support_Garmin_Basecamp_ (Optional)

If selected, "0" dates, that is Jan-1-1970 will be used for null or no dates. The Garmin Basecamp software requires a date value inside the GPX file to load it. If your data has a DateTimeS field, you should probably not use this option.

Pretty_output (Optional)

Format the output GPX file in a readable format. This does not change how software or hardware devices use the GPX. This function add whitespace which makes reading the file easier when viewing the native text.

Code Samples

Tags

gps, gpx, features, mobile, xml, phone

Credits

Esri. khibma@esri.com Contributors: Matt Wilkie (https://github.com/maphew/arcgiscom_tools/blob/master/Features_to_GPX/FeaturesToGPX.py)


Use limitations