-
Notifications
You must be signed in to change notification settings - Fork 6
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
Nik2Img: setting bbox and zoom level together doesn't work? #4
Comments
not sure it will fix by try |
recall Mapnik's |
But I want to set bbox and zoom level only, and Nik2Img should calculate image dimensions according to this values… |
the default is Sounds like you might want to do: nik2img.py --aspect-fix-mode=GROW_CANVAS ... https://github.com/mapnik/mapnik/blob/master/src/map.cpp#L431-L485 |
My only problem is bbox.
Why? |
I'm not sure. I recommend you try digging around in the nik2img.py code (its just python) or write a pure python script to try to get done what you are after (as a comparative testcase) |
I'm going to close this up. You've likely found a legitimate bug/oddity in nik2img, but its not a tool that I use/develop regularly. |
Command used: nik2img.py style.xml image.png -b 37.598494 55.745767 37.621711 55.755182 -z 17 -v
Terminal output here: https://gist.github.com/4337623
Note the steps 11—14 and 18. Strange values there.
Resulting image.png not with bbox (37.598494,55.745767,37.621711,55.755182), but seems to be with bbox (5.0932890358,-0.000894408328134,5.09603561778,0.000936646328296).
The text was updated successfully, but these errors were encountered: