Skip to content
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

NameError with -c option #18

Closed
ugoertz opened this issue May 16, 2015 · 1 comment
Closed

NameError with -c option #18

ugoertz opened this issue May 16, 2015 · 1 comment

Comments

@ugoertz
Copy link

ugoertz commented May 16, 2015

Hello,

thanks for your work on nik4, it is very useful. There seems to be a small problem with the -c option, though:

$ nik4.py -c 7.5 52.0 -s 5000 --margin 10 --ppi 300 -a 4 mapnik.xml print.png
Traceback (most recent call last):
  File "/home/ug/.virtualenvs/maps/bin/nik4.py", line 289, in <module>
    scale = scale / math.cos(math.radians(center.y))
NameError: name 'center' is not defined

If I understand correctly, center.y should be replaced by options.center[1], at least this makes the code run through (or is it necessary to apply some transform here?).

@Zverik Zverik closed this as completed in b6e11d7 May 16, 2015
@Zverik
Copy link
Owner

Zverik commented May 16, 2015

Thanks, fixed it and uploaded version 1.5.2 to pypi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants