[OSM-dev] making osm2pgsql import relations?
Lennard
ldp at xs4all.nl
Wed Nov 7 21:01:10 GMT 2012
On 7-11-2012 21:34, Ákos Maróy wrote:
> But, I can't seem to be able to have osm2pgsql import my relations -
> after the import, the content of the planet_osm_rels table is empty. I
> was looking at the osm2pgsql documentation, but couldn't find an obvious
> way to have the relations imported as well.
planet_osm_rels is used for the slim mode import, ie. the ability to
later apply diffs. If you didn't use osm2pgsql --slim (or -s), there
won't be any data in planet_osm_rels.
Imported relations that pass the k/v criteria (in default.style) and
give a valid geometry, can be found in planet_osm_line and
planet_osm_polygon. Where they end up depends on whether they result in
a line or area respectively. The osm_id for these features is the
negated relation id. So relation 1000 will have an osm_id of -1000 in
the tables.
--
Lennard
More information about the dev
mailing list