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

Housenumber sometimes renders in a corner #4655

Closed
danieldegroot2 opened this issue Aug 21, 2022 · 1 comment
Closed

Housenumber sometimes renders in a corner #4655

danieldegroot2 opened this issue Aug 21, 2022 · 1 comment

Comments

@danieldegroot2
Copy link
Contributor

danieldegroot2 commented Aug 21, 2022

Expected behavior

Housenumbers on buildings always render in the approx. center of the building

Actual behavior

Housenumber on one of slightly non-square buildings renders in its northern corner (at least on zoom 19). There doesn't seem to be anything which could cause this rendering (ie. duplicate nodes).

This does not happen on the CyclOSM or Humanitarian layers on any of their zoom levels.

Is this due to tile boundary logic?

Screenshots with links illustrating the problem

https://www.openstreetmap.org/way/300990833

image

https://www.openstreetmap.org/way/300990817

image

@danieldegroot2 danieldegroot2 changed the title Housenumber on slightly non-square building renders in northern corner Housenumber sometimes renders in a corner Aug 21, 2022
@imagico
Copy link
Collaborator

imagico commented Aug 21, 2022

Duplicate of #3857.

Note this is not exclusively a matter of the (non-rectangular) shape, it is also a matter of rotation. As pointed out in #4241 (comment) ST_PointOnSurface() is not invariant against rotation.

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

No branches or pull requests

2 participants