Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I understand that elevation can be added as an optional third value in Coordinates (lat, long, elev) in a geojson file, but I can't find a way to actually do that from a gpx file. I've used ogr2ogr to convert gpx to geojson. I've also loaded the gpx file into QGIS and saved as a geojson file, but neither method brings in elevation when I do this to the gpx tracks. It will bring in elevation as a Property if I convert the points, but I need a line. Ultimately, I want to diplay these lines in Leaflet and build elevation profiles for them. Is there any easy way to do this other than parsing out the gpx files and building my own geojson files?

share|improve this question
    
The map shows a flat view, seen from the top, so how will elevation change the line? –  flup May 17 '13 at 23:38
    
mortimermaps.appspot.com/wtp3/wtp3.htm you can import gps .gpx and export to kml including elevation information. "Where is the path?" (wpt) version 3 is geared up for UK areas and touch screen devices now. –  Mapperz May 19 '13 at 19:20
    
Then use: harrywood.co.uk/maps/examples/leaflet/kml.view.html as an excellent start for KML in leaflet –  Mapperz May 19 '13 at 19:21
    
@flup The map will look the same, but I want to build elevation profiles for the lines to display elsewhere on the page –  Jim May 23 '13 at 21:26
add comment

migrated from stackoverflow.com May 19 '13 at 18:50

This question came from our site for professional and enthusiast programmers.

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.