-
Notifications
You must be signed in to change notification settings - Fork 3
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
Feature Request: enabling --polygon also when feeding hgt/geotiff via command line #28
Comments
Thanks for the feedback. |
Use manually fed input files in priority, still applying any provided polygon. Closes #28
Use manually fed input files in priority, still applying any provided polygon. Closes #28
Use manually fed input files in priority, still applying any provided polygon. Closes #28
Released in v3.5. |
Thanks for implementing. But unfortunately with v3.5 not even a pyhgtmap --help works: I can also try to run with proper arguments, same result. |
Sorry about that, I didn't take into account python packaging scripts expectations... |
Thanks, 3.5.1 runs again also on my side... I'll try to do the functional test this evening. |
No luck... pyhgtmap call: Error I get (followed by the complete usage): The option polyfile was before only possible if you let pyhgtmap (or old phyghtmap) manage downloads from SRTM or VIEW on it's own. And it looks as it still triggers that somehow. Thanks for re-checking. Cheers |
It would be easiest if before Download there is a simple check if file already exists but not in the index file. In that case just add it to the index. Then user simply puts hgt into view1, view3 or srtm1 , srtm3 folder. Right now the solution to do this is to manually put it there, make a copy of all filenames inside the folder, then remove path and .hgt and write that into the index file. |
It's a limitation I didn't spot in the option parser because my earthexplorer credentials are already stored... It shouldn't affect the overall process though. |
Additional Info: by also handing over earthexplorer user and password I can prevent the tool from failing. Then the result looks so far ok: polygon is applied. |
I agree that handing over lots of files on Command line is not the nicest... |
If you have a lot of local files, you could simply rely on shell wildcard expansion to avoid entering them manually ( The main added value I saw when discovering phyghtmap was the automated download from known sources, much more comfortable than manual download. Do the alternate sources you use provide API which could automate the download as well? I've not touched much the download part, which is still quite a mess, but I was thinking about refactoring/generalizing it one day. Could be the opportunity to add more sources. |
I am using file globbing with * when creating the command line for pyhgtmap (which is done inside a script), what I've added above was the output from bash -x. We are making tests (www.freizeitkarte-osm.de) with the DTM provided by Sonny https://sonny.4lima.de/ |
Fixed in v3.5.2 |
First of all. I'm happy that someone continues with pyhgtmap, would be a pitty.
Today a lot of countries provide better source date for elevation lines than viewfinderpanoramas or srtm type data as open data. We want to use this more precise and open data for creating better elevations.
But having to fiddle arround and put that into a so called 'cache' directory is sort of difficult and I was also not able to recreate the needed index.
If I handover all needed hgt files (or geotiff files) on the command line the elevation lines are calculated for everything handed over.
I want to be able to apply there a polygon with the argument --polygon as possible when running (after downloading) against the cache directory.
In my opinion (and especially for our need) this would be a great enhancement of the tool.
Cheers
Patrik
The text was updated successfully, but these errors were encountered: