OSM2World icon indicating copy to clipboard operation
OSM2World copied to clipboard

Rendering issue - sometimes with building:part, outline and type=building

Open HikeAndMap opened this issue 1 year ago • 6 comments

The screenshot shows the object in OSM image

The screenshot below is the outline image

The screenshot below is building:part (which is the same as the outline just a different relationship) image

Below is the building:part for roof wall image

And below the skillion roof image

below is then type=building to group them all together image

No errors from JOSM - yet see what I get rendered in OSM2World image

HikeAndMap avatar Jan 08 '25 05:01 HikeAndMap

Please by all means, if I do something wrong - kindly explain to me.. thank you

HikeAndMap avatar Jan 08 '25 05:01 HikeAndMap

If I remove the type=building with the outline and 3 building parts..

Delete the type=building relationship delete the building:part which is a copy of the outline and rename the other 2 building:part into building=

then it renders okay: image

But that's lying.. that's mapping for the renderer but not the reality. The reality is there's not 3 buildings on top of each other. it's 1 building with 3 building parts..

HikeAndMap avatar Jan 08 '25 06:01 HikeAndMap

Ah building:level on the outline creates the bug..

so building:level can't be defined on the outline or else building:part will have problems with rendering.

I won't close this - as it may be a bug. but maybe it's not, if it's intentional feel free for the devs to close it with the comment:"building:levels is per design intentional to interfere with the rendering"

as I thought from OSM Wiki if height and min_height are defined then hat overrides building:level

but for 2D backwards compatibility one still adds it..

seems the renderer however doesn't like it so I just remove it.. but again, maybe the devs find it worth to work on this to ensure backwards compatibility - so I leave it up to the devs to close/not close this one

HikeAndMap avatar Jan 08 '25 06:01 HikeAndMap

In general, adding building:levels to the outline is correct even if the building's parts are mapped individually. So this might be a genuine bug.

As with the other issue, an .osm file would be helpful to reproduce the issue more easily.

tordanik avatar Jan 14 '25 08:01 tordanik

Dear Tordanik, thank you for the reply.

With the following zip file (building:levels=1 in the outline) this is what I see: image false.zip

HikeAndMap avatar Jan 15 '25 20:01 HikeAndMap

The following has building:levels=1 removed and this is what I get image good.zip

HikeAndMap avatar Jan 15 '25 20:01 HikeAndMap