DISCUSSION TAKEN FROM MAGIP LISTSERV
On Behalf Of Daigle, Bill
Sent: Monday, August 09, 2010 10:16 AM
To: MAGIP DISCUSSION LIST
Subject: RE:[magip] Polyline feature class to GPX conversion
Hi Mike,
I haven’t had to do this yet, but I can certainly see the need somewhere down the road. It should relatively simple via python. ESRI recently posted a blog and associated python scripts(10 and 9.3.1) for converting gpx files to feature classes.
http://blogs.esri.com/Dev/blogs/geoprocessing/archive/2010/05/07/Handling-XML-with-Python-in-ArcGIS.aspx
http://resources.arcgis.com/gallery/file/geoprocessing/details?entryID=73DDDDC4-1422-2418-7F82-92D8B8ED294B
It doesn’t look like it would be too hard to reverse engineer the script to produce gpx files from a polyline. Here is a python example for creating xml with python: http://www.postneo.com/projects/pyxml/. The tough part would certainly be accounting for the gpx schema: http://www.topografix.com/gpx/1/1/
Good luck! Bill
Bill Daigle
Montana Fish, Wildlife & Parks
Strategic Planning and Data Services
Fisheries Information Specialist
1420 East 6th Ave
PO Box 200701
Helena, MT 59620-0701
bdaigle@mt.gov
Phone: 406-444-3737
On Behalf Of Michael Sweet
Sent: Monday, August 09, 2010 9:20 AM
To: MAGIP DISCUSSION LIST
Subject: [magip] Polyline feature class to GPX conversion
Hello fellow GISers – I’ve been looking at various options to automate the production of valid GPX format GPS files from an ArcGIS feature class for national wilderness boundaries. I’ve received good assistance from a few folks in other states who have had a similar need in the past, but realized that I neglected to ask my fellow Montanans. If you already have a successful automated routine for this conversion then I would be interested in hearing about your approach. Please feel free to contact me directly.
Unfortunately, the FME/ESRI interoperability extension reads, but does not write GPX. That would be too easy.
Thanks in advance,
Mike.
---------------------
Michael D. Sweet
Research and Information Systems Specialist (GIS)
Quantitative Services Group and Montana Climate Office
College of Forestry and Conservation
The University of Montana
Montana Forest and Conservation Experiment Station
32 Campus Drive
Missoula, Montana 59812-0576
Land: 406.243.5265
Email: michael.sweet@umontana.edu
Fax: 406.243.4845