[OSM-dev] 'holes' in buildings

Thomas Wood grand.edgemaster at gmail.com
Fri Nov 21 18:35:15 GMT 2008


2008/11/21 Brian Quinion <openstreetmap at brian.quinion.co.uk>:
> Hi,
>
> I'm running my own mapnik server and have noticed a strange problem
> with the rendering.  I don't seem to be getting the holes in buildings
> (i.e. http://www.openstreetmap.org/?lat=52.212704&lon=0.102523&zoom=18&layers=B000FTF
> ) instead I get 2 seperate polygons, both filled.  This is using the
> standard OSM style sheet so I'm assuming I must be missing something
> to do with relations when doing the osm2pgsql conversion.
>
> At the moment I'm simply running:
>
> ./osm2pgsql -d osm uk-081119.osm.bz2
>
> The OSM file from here:
> http://nick.dev.openstreetmap.org/downloads/planet/ although I've also
> tried the uk cloudmade file with the same results.
>
> Any suggestions?
> --
>  Brian

You need to use osm2pgsql slim mode (-s), apparently relation parsing
is broken in the in-memory mode, since it can't decide which ways are
valuable enough to keep before parsing the relation. (Or something
similar)

-- 
Regards,
Thomas Wood
(Edgemaster)




More information about the dev mailing list