On Mon, Jan 3, 2011 at 3:10 PM, arminus <[email protected]> wrote: > > > This sounds as if your database isn't even a PostGIS database? > > No it wasn't :-/ I didn't realize that apparently (?) the osmosis > import I did after postgis enabling the db somehow wiped out the > postgis code in it ... At any rate, I don't get the errors on an empty > db anymore, but I also fail to populate the new db now. Here's what I > did: > > createdb -U postgres openstreetmap > createlang -U postgres plpgsql openstreetmap > psql -U postgres -d openstreetmap -f > /usr/share/postgresql/contrib/postgis-1.5/postgis.sql > psql -U postgres -d openstreetmap -f > /usr/share/postgresql/contrib/postgis-1.5/spatial_ref_sys.sql > psql -U postgres -d openstreetmap -f > /usr/share/postgresql/contrib/hstore.sql > psql -U postgres -d openstreetmap -f > osm_routing/osmosis-0.38/script/pgsnapshot_schema_0.6 > psql -U postgres -d openstreetmap -f > osm_routing/osmosis-0.38/script/pgsnapshot_schema_0.6_linestring.sql > osmosis --read-xml-0.6 file="data2.osm" --write-pgsql host="localhost" > database="openstreetmap" user="postgres" validateSchemaVersion=no > > and this is what I get: > > org.openstreetmap.osmosis.core.OsmosisRuntimeException: Cannot begin > reading in Add stage, must call complete first. > > I've not seen that error before.
I would start from scratch (drop the DB and perform those steps again), leaving the validateSchemaVersion argument off this time.
_______________________________________________ dev mailing list [email protected] http://lists.openstreetmap.org/listinfo/dev

