[OSM-dev] problems with planetosm-to-db.pl
Nick Burch
openstreetmap at gagravarr.org
Sun Nov 11 11:08:09 GMT 2007
On Wed, 7 Nov 2007, m b wrote:
> I then execute planetosm-to-db.pl:
> -----
> mb:~ postgres$ perl planetosm-to-db.pl Planet.osm
>
> Which generates an error:
> -----
> DBD::Pg::st execute failed: ERROR: relation "nodes" does not exist
You need to use planetosm-to-db.pl to load the schema in first, before it
can insert the data:
planetosm-to-db.pl --schema | psql -U osm -d osm
After the schema has been created in your database, you'll be able to run
the main import
Nick
More information about the dev
mailing list