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

Cannot input both ppi and scale_factor #42

Open
JBacc1 opened this issue Sep 19, 2021 · 1 comment
Open

Cannot input both ppi and scale_factor #42

JBacc1 opened this issue Sep 19, 2021 · 1 comment

Comments

@JBacc1
Copy link

JBacc1 commented Sep 19, 2021

When inputing both ppi and scale_factor, scale_factor is overwritten.
The "zoom-level" used (which is passed to mapnik through the scale_factor) seems to not be changeable at a given dpi and scale (which is not not self-contradicting).
Probably the same that you cannot input both zoom and scale (scale is overwritten).
Is it too specialised (or badly-understood) a problem to be taken into account?
(I'm usually using options: paper, dpi, scale, factor, center)

@JBacc1
Copy link
Author

JBacc1 commented Jan 19, 2022

Finally, I got around the issue by adding, between the fix_scale and bbox steps, a forced scale_factor update:

	if options.factor:
		scale_factor = options.factor

Works fine for me, may not be very clean…

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

1 participant