Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Trouble rendering large multipolygons #2690

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 6 comments
Closed

Trouble rendering large multipolygons #2690

openstreetmap-trac opened this issue Jul 23, 2021 · 6 comments

Comments

@openstreetmap-trac
Copy link

Reporter: yvecai
[Submitted to the original trac issue database at 8.58pm, Friday, 5th February 2010]

I found a problem with a multipolygon (id 46541256). This is a >8000 nodes forest properly rendered with mapnik, but not with osmarenderer.

http://www.openstreetmap.org/?lat=46.6007&lon=6.191&zoom=12&layers=0B00FTF

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 12.26am, Saturday, 6th February 2010]

If you actually choose osmarender as the component instead of just typing it into the keywords then the bug will get sent to the right place...

@openstreetmap-trac
Copy link
Author

Author: yvecai
[Added to the original trac issue at 10.09am, Saturday, 6th February 2010]

Didn't I? Sorry, it was late.

Yves

@openstreetmap-trac
Copy link
Author

Author: osm[at]petschge.de
[Added to the original trac issue at 10.43am, Thursday, 13th May 2010]

I suspect that this is really a bug in the tiled design of tiles@home. If you were able to render the whole planet at once using osmarender the relation should render just fine.

@openstreetmap-trac
Copy link
Author

Author: HamishB
[Added to the original trac issue at 9.08am, Wednesday, 19th May 2010]

more examples:
http://osm.org/go/EAmUNR_V-?layers=0B00FTF
http://osm.org/go/EAk4alvA-?layers=0B00FTF
http://osm.org/go/EAltREK?layers=0B00FTF

It's in very large multipolygon relations (>10k nodes, split into 495 nodes per way). AFAICT JOSM's Validator doesn't find any problems. All looks good in the online Mapnik tiles, just the Osmarender tiles go funny.

thanks,
Hamish

@openstreetmap-trac
Copy link
Author

Author: rammer
[Added to the original trac issue at 11.12am, Friday, 23rd July 2010]

I did some poking around with this and it seems that the large multipolygons get rendered correctly if the osm file fed to osmarender contains all the members of the multipolygons that intersect the tile to be rendered.
For example tile http://tah.openstreetmap.org/Browse/details/tile/12/2318/1149/
It contains relation http://www.openstreetmap.org/browse/relation/445107
Osmarender downloads

And therefore not all members of relation 445107 is included. If I open the same bounding box in josm and download all the members of that relation, save the data and using that render the same area I get a perfect render.

So you need to somehow coax osmarender to recursively download all members of the multipolygons in the tile to be rendered. Using something like http://www.openstreetmap.org/api/0.6/relation/445107/full

@openstreetmap-trac
Copy link
Author

Author: osm[at]deelkar.net
[Added to the original trac issue at 11.56am, Sunday, 19th September 2010]

Applied Patch by Irrfahrt as r23267. Clients will start updating shortly.

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

No branches or pull requests

1 participant