-
Notifications
You must be signed in to change notification settings - Fork 827
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
Label scaling incorrect with scale factor #2524
Comments
Assuming that by scale-factor 6 you mean rendering at six times the normal resolution (scale factor to me usually means something different) that seems not quite correct since we make a lot of use of |
scale factor is a mapnik parameter: https://github.com/mapnik/mapnik/wiki/Scale-factor
I see a couple options
|
The underlying cause for the whole mess seems to be that mapnik does not properly separate between map scale and rendering resolution. It makes sense for compact code in the style to normalize way_area with the map scale but it obviously does not make much sense to normalize with the rendering resolution if you want to be able to generate the same map scale in varying resolutions. |
Do we want to support scale_factor at all? |
Yes, it's essential for print. |
Essential for print, as @pnorman says, but the issue will already lead to distorted styling when you produce retina tiles. |
I think that Mapnik has a reference resolution of 90.71 DPI. Scale denominators are calculated against this resolution. When you want to render retina tiles, for example, you have to say to Mapnik that you are going to render with two times bigger resolution (in one dimension) by These two parameters should then be rather called |
@kocio-pl Is this issue still up to date after last Mapnik update? |
I don't know about rendering scaling problems. |
Should be fixed by #3657. |
This is from Germany with scale-factor 6, the resulting image scaled by 1/6 to get a result which should look the same except for antialiasing, quality of rendering, and PNG patterns
On osm.org the label doesn't even get placed at that scale
![image](https://cloud.githubusercontent.com/assets/1190866/21406451/965dc700-c780-11e6-8a25-bc45d266e850.png)
At a 4x higher scale, this is what it looks like
cc @woodpeck
The text was updated successfully, but these errors were encountered: