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
Labels placement for polygons are different for PostGIS and Shapefile datasources #2062
Comments
Please post test data. |
Hi Dane! P. S.: I'm using mod_tile/renderd for rendering maps. |
Thanks, I will take a look on Monday. Can you also share which labels you think are correct and which you think are wrong? And also a nik2img.py command to replicate (with extent). |
Only labels generated from shapefiles looks correct for me. About nik2img.py. I have no success with it (see mapnik/mapnik-support#4). Sorry. |
@Andrey-VI - thanks for the testcase: it was easy to replicate with. I quick see one workaround but to decide on the proper I need to share the testcase with @artemp so I reduced it down and created a new issue to directly clarify the bug at #2078. In the process I also wrote up a guide to creating testcases: https://github.com/mapnik/mapnik/wiki/A-perfect-testcase. Yours was great, but could have been even better, so I wanted to get you thinking about this. closing in favor or #2078. |
@springmeyer, thanks for the guide! |
Same style
same data (polygons). But in the first case data in Shapefile format, in second case — from PostGIS database.
And… very different label placements for most of polygons.
Shapefiles:
PostGIS:
If I add
placement="interior"
option in style with PostGIS datasouce I get this:Note that label with
оз. Марья-Шелека
text is still missing.P. S.: I'm using Mapnik layer-opacity branch
The text was updated successfully, but these errors were encountered: