Nik4 icon indicating copy to clipboard operation
Nik4 copied to clipboard

Cannot input both ppi and scale_factor

Open JBacc1 opened this issue 3 years ago • 1 comments

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 avatar Sep 19 '21 14:09 JBacc1

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…

JBacc1 avatar Jan 19 '22 18:01 JBacc1