-
Notifications
You must be signed in to change notification settings - Fork 7
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
Osmosis version 0.45 #11
Comments
It's quite some time ago. But if you say that the output worked... This does not sound as if you'd need to change anything? |
Thanks for the quick response. What I mean is every node in my osm file looks like this:
None of them include an actual height value. When I say the output worked I mean the program didn't explode, but it didn't give the desired output either. |
Sorry I'm new to making issues on Github, I see my code example was never included in my original post. |
Hm that's strange.
Maybe osmosis has changed the way the load plugins. If the above doesn't work, can you maybe get an older osmosis-version and try? |
How's it going? did you manage to solve the issue? |
I tried putting the jar in bin/plugins and lib/default. I have osmosis-plugins.conf in osmosis-latest/config with that line in in. In both scenarios I get the same output:
My code looks like this. I'm using Node.js and spawning a child process that runs osmosis.bat.
Like I said before it has to be working somewhat because the program does modify my osm data to include |
Ah this was a good hint! Can you please first try if it just works in the console without NodeJS? |
I tried it in the console and it has the same output. Pretty sure it's an issue with osmosis. The way I'm running it in Node should be equivalent to running it in a console. Like I said before though, it runs and works it just gives NaN for every node in the file. Are there places in your code where you assign NaN as the elevation? |
At least I don't recall about it. Sorry that I currently cannot actively dig into the problem deeper. |
I need to have the SRTM files on my computer? I have the osm .xml files but I didn't know I need to have the SRTM .hgt files. How do I tell the Osmosis plugin to use the SRTM files on my computer? |
Nono, they are (they should!) be downloaded automatically. I just wonder if there is a download issue (server url changed, anti virus blocking download, corrupt files) that caused the NANs. Do you see a log file created during the process? Errors should be logged there. |
I'm encountering the same issue, all nodes are returning NaN regardless of if I use local files or not. Sidenote, in Osmosis 0.46 the run fails with the message
but the output file does get generated anyways (with NaNs). If I run it in Osmosis 0.43.1 it doesn't give an error message but still fills every node with NaN. Maybe related: If I use the prebuilt jar you provided, it has the above behavior, if I build the jar myself then it doesn't even provide NaN height tags. |
Strange. If you're already in building the JAR yourself: can you maybe add some logging to see where the NANs are returned? I'd need to set up everything as I haven't touch this things for quite some time to be honest |
Ok: I got it to work. Takeaways:
In Summary: It works as long as users go manually get the files and put them in a folder, making sure all the .hgt files stay zipped. |
Made a PR for the README so others will know the workaround. |
Thanks a lot! At least there is a workaround! |
So, Thyrfa. How did you reslove the problem that all the node provide NaN height tags? |
Like it clearly says above:
Go through the steps in the readme and you should be fine. |
It goes well. Thank you so much! |
I am trying to use this plugin with Osmosis version 0.45. This version has plexus-classworlds-2.5.2.jar in lib/default. In the instructions it says I may need to adjust bin/osmosis.bat. After installing and running Osmosis using --write-srtm the created .xml file includes on all the nodes. Can you speak more to what needs to be adjusted in the .bat file?
The text was updated successfully, but these errors were encountered: