[OSM-dev] making osm2pgsql import relations?

sly (sylvain letuffe) liste at letuffe.org
Wed Nov 7 21:12:48 GMT 2012


Le mercredi 07 novembre 2012 21:59:26, Ákos Maróy a écrit :
> sure, here is the style file:
> 
> http://code.google.com/p/openaviationmap/source/browse/trunk/rendering/oam.
> style

looks good
 
> the OSM XML file can be downloaded from here:
> http://files.openaviationmap.org/dump.osm

osm2pgsql only uses it's multipolygon building ability when relations have a 
tag "type" with value "multipolygon" or "boundary" (unless patched)

relation n°25 for exemple hasn't. However, I'm unsure if it should or shound't 
end in the _rels table anyway.
But in the end, you won't have it in _polygon wich mean you probably won't get 
what you want : the geometry


> this is the command line I use for the import:
> 
> osm2pgsql -d oam --bbox 16,45,23,49 -s -C 2048 --hstore-all -K -v -G -v
> -m -S oam.style dump.osm

Looks good (beside one extra -v)

-- 
sly (sylvain letuffe)



More information about the dev mailing list