[OSM-dev] 'holes' in buildings

Dave Stubbs osm.list at randomjunk.co.uk
Mon Nov 24 12:26:13 GMT 2008


2008/11/21 Thomas Wood <grand.edgemaster at gmail.com>:
> 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)


Or just the wrong osm2pgsql version... the cycle map doesn't use slim
mode, and yet has polygons with holes OK for the area given.
But then the cycle map's osm2pgsql is frozen on svn r7719, and has
other problems all of it's own.

Latest version and slim mode would be the best bet I'm guessing.

Dave




More information about the dev mailing list