-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GPX with elevation data #306
Comments
I've been checking the code of the GPX generation, and it doesn't seem to be possible to obtain the elevation parameter along with the GPX (although it's allowed in the standard as far as I know). I was checking the Installation wiki ( https://github.com/waymarkedtrails/waymarked-trails-site/wiki/Installation ) and at the bottom it appears information to include the elevation information. I have installed the requirements:
And then I have added in my Right after this, I dropped my DB (which was running) and run the following commands to re-import the data, along with the elevation data:
Everything went OK except the import (./makedb.py hiking import), where I got some errors:
So basically I'm stuck here. If I try to get the info of a relation, I obtain the same data I obtained before. E.g.: http://localhost:8080/api/details/relation/2163937 However, if I try to get it's elevation (here /api/details/relation/2163936/elevation ) I get this error, related with the elevation data being missing/incomplete:
I didn't fully understand the Wiki link about the elevation profile preparation: https://github.com/waymarkedtrails/waymarked-trails-site/wiki/Elevation-profile-preparation . It seems that I have to manually download the DEM data. But I don't really know where and what to download. Anyone could help me with this please? Perhaps @lonvia ? |
GPX or GeoJSON files do not contain elevation but if you are running your own instance, it should be fairly straightforward to add the information. elevation.py shows how to obtain the elevation points. The elevation data is not part of the database. They are supposed to be in GDAL files somewhere on your hard disk. You have to download the data. I've updated the links to ASTER and SRTM. SRTM void-filled is liekly a good option these days and unproblematic licensewise. The SRID(0) problem is unrelated to the elevation/ Looks more like a configuration issue. |
@lonvia I was checking the links SRTM and ASTER, and it seems easy to download the ASTER ones. However, being this the 2nd time (I did check at the SRTM link before writing this issue) I check the SRTM link, it seems unclear to me what do I have to download. It's clear they are TIFF files. And I already got them on my GraphHopper instance (which happens to be taking the same osm.pbf, so it should be fine to take those TIFFs). The zip that contain the TIFFs have a naming like srtm_30_05.zip and they contain the following files:
So, do I have to extract all those zips, that are related to my OSM.PBF, and then run: And right after, run:
If I get the DEM.vrt file, that doesn't seem to match the file that appears on my current error when I visit the /elevation endpoint: Should I store on that folder, and with that name the DEM.vrt? Sorry for all these questions, but is not clear to me :( |
I've tried running
|
Hi!
Is there a way to obtain the GPX files with the elevation included? I've seen in a few issues here that you talk about the elevation, but I haven't found a way of obtaining it in GPX or GeoJson fils.
Thanks in advance
The text was updated successfully, but these errors were encountered: