[OSM-dev] making osm2pgsql import relations?
Martin Koppenhoefer
dieterdreist at gmail.com
Thu Nov 8 00:04:26 GMT 2012
2012/11/7 Ákos Maróy <akos at maroy.hu>:
> On 07/11/12 22:12, sly (sylvain letuffe) wrote:
>> 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.
> it hasn't on purpose. the relations I use are not used to stitch
> together polygons. they are relations in the traditional sense: they
> collect various data about the same thing, in this case, an airport. the
> related data is a range of lines (runways), points (navigation aids) and
> other stuff, like the 'airport reference point', etc.
You could have everything inside the airport polygon with the PostGIS
function ST_Within and without any special relation, but if you are
after special roles in your relation you won't have them with
osm2pgsql. If you use Osmosis for the import you will get everything,
but in the API db schema.
cheers,
Martin
More information about the dev
mailing list