Opened 5 years ago

Closed 5 years ago

#2690 closed defect (fixed)

Trouble rendering large multipolygons

Reported by: yvecai Owned by: osm@…
Priority: major Milestone:
Component: tilesathome Version:
Keywords: osmarender multipolygon area corine Cc: rammer

Description

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

Attachments (1)

MultipolygonClosing.diff (3.4 KB) - added by Irrfahrt 5 years ago.
patch to fetch all the required data to close open multipolygons

Download all attachments as: .zip

Change History (8)

comment:1 Changed 5 years ago by TomH

  • Component changed from admin to osmarender
  • Owner changed from tom@… to osm@…

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...

comment:2 Changed 5 years ago by yvecai

Didn't I? Sorry, it was late.

Yves

comment:3 Changed 5 years ago by osm@…

  • Resolution set to wontfix
  • Status changed from new to closed

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.

comment:4 Changed 5 years ago by HamishB

  • Component changed from osmarender to tilesathome
  • Resolution wontfix deleted
  • Status changed from closed to reopened

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

comment:5 Changed 5 years ago by osm@…

  • Owner changed from osm@… to osm@…
  • Status changed from reopened to new

comment:6 Changed 5 years ago by rammer

  • Cc rammer added

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 <bounds minlat="61.6794500443896" minlon="23.66455078125" maxlat="61.7419302246182" maxlon="23.88427734375" origin="http://www.openstreetmap.org/api/0.5"/>

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

Changed 5 years ago by Irrfahrt

patch to fetch all the required data to close open multipolygons

comment:7 Changed 5 years ago by osm@…

  • Resolution set to fixed
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.