Ticket #2690 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

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

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

Change History

comment:1 Changed 4 years ago by TomH

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

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 4 years ago by yvecai

Didn't I? Sorry, it was late.

Yves

comment:3 Changed 4 years ago by osm@…

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

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 4 years ago by HamishB

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

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 4 years ago by osm@…

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

comment:6 Changed 4 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 4 years ago by Irrfahrt

patch to fetch all the required data to close open multipolygons

comment:7 Changed 4 years ago by osm@…

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

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

Note: See TracTickets for help on using tickets.