On 07/11/12 22:01, Lennard wrote: > 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. I did have the -s flag on import (see previous e-mail regarding the whole command line) > > 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. > my relations are a bit different - I'm collecting all data related to an airport in a relation. this includes a number of polygons, lines & points. I'd like to see the same relation in the database as described in the OSM XML file
_______________________________________________ dev mailing list [email protected] http://lists.openstreetmap.org/listinfo/dev

