Created
June 24, 2012 17:49
-
-
Save oeon/2984150 to your computer and use it in GitHub Desktop.
nik2img.py error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nik2img.py ~/mapnik-stylesheets/osm.xml ~/Desktop/test2.png -b -13451764 4205643 -13450743 4206551 | |
/usr/local/lib/python2.7/site-packages/mapnik2/__init__.py:27: DeprecationWarning: mapnik2 module has been deprecated, | |
please use 'import mapnik' | |
warnings.warn(msg, DeprecationWarning) | |
Traceback (most recent call last): | |
File "/usr/local/share/python/nik2img.py", line 5, in <module> | |
pkg_resources.run_script('nik2img==0.8.0', 'nik2img.py') | |
File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 499, in run_script | |
self.require(requires)[0].run_script(script_name, ns) | |
File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 1239, in run_script | |
execfile(script_filename, namespace, namespace) | |
File "/usr/local/lib/python2.7/site-packages/nik2img-0.8.0-py2.7.egg/EGG-INFO/scripts/nik2img.py", line 238, in <module> | |
main() | |
File "/usr/local/lib/python2.7/site-packages/nik2img-0.8.0-py2.7.egg/EGG-INFO/scripts/nik2img.py", line 228, in main | |
nik_map = ComposeDebug(mapfile,**options.__dict__) | |
File "/usr/local/lib/python2.7/site-packages/nik2img-0.8.0-py2.7.egg/mapnik_utils/composer.py", line 263, in __init__ | |
Compose.__init__(self,mapfile,**kwargs) | |
File "/usr/local/lib/python2.7/site-packages/nik2img-0.8.0-py2.7.egg/mapnik_utils/composer.py", line 69, in __init__ | |
self.build() | |
File "/usr/local/lib/python2.7/site-packages/nik2img-0.8.0-py2.7.egg/mapnik_utils/composer.py", line 280, in build | |
builder = super(ComposeDebug,self).build() | |
File "/usr/local/lib/python2.7/site-packages/nik2img-0.8.0-py2.7.egg/mapnik_utils/composer.py", line 179, in build | |
self.map.zoom_to_box(env.forward(from_prj,to_prj)) | |
File "/usr/local/lib/python2.7/site-packages/nik2img-0.8.0-py2.7.egg/mapnik_utils/metaclass_injectors.py", line 236, in forward | |
return trans.forward(self) | |
RuntimeError: Failed to forward project box2d(-13451764,4205643,-13450743,4206551) from +proj=latlong +datum=WGS84 to: +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over |
yup. -e
is what i needed. Thank you so much!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the
-b
or--bbox
assumes long/lat coords, but it appears you've passed mercator coords. So try the same extent but with the-e
or--projected-extent
flag.