<div class="gmail_quote">On Mon, Jan 3, 2011 at 3:10 PM, arminus <span dir="ltr"><<a href="mailto:arminus@gmail.com">arminus@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
> This sounds as if your database isn't even a PostGIS database?<br>
<br>
No it wasn't :-/ I didn't realize that apparently (?) the osmosis<br>
import I did after postgis enabling the db somehow wiped out the<br>
postgis code in it ... At any rate, I don't get the errors on an empty<br>
db anymore, but I also fail to populate the new db now. Here's what I<br>
did:<br>
<br>
createdb -U postgres openstreetmap<br>
createlang -U postgres plpgsql openstreetmap<br>
psql -U postgres -d openstreetmap -f<br>
/usr/share/postgresql/contrib/postgis-1.5/postgis.sql<br>
psql -U postgres -d openstreetmap -f<br>
/usr/share/postgresql/contrib/postgis-1.5/spatial_ref_sys.sql<br>
psql -U postgres -d openstreetmap -f<br>
/usr/share/postgresql/contrib/hstore.sql<br>
psql -U postgres -d openstreetmap -f<br>
osm_routing/osmosis-0.38/script/pgsnapshot_schema_0.6<br>
psql -U postgres -d openstreetmap -f<br>
osm_routing/osmosis-0.38/script/pgsnapshot_schema_0.6_linestring.sql<br>
osmosis --read-xml-0.6 file="data2.osm" --write-pgsql host="localhost"<br>
database="openstreetmap" user="postgres" validateSchemaVersion=no<br>
<br>
and this is what I get:<br>
<br>
org.openstreetmap.osmosis.core.OsmosisRuntimeException: Cannot begin<br>
reading in Add stage, must call complete first.<br><br></blockquote><div><br></div><div>I've not seen that error before.</div><div><br></div><div>I would start from scratch (drop the DB and perform those steps again), leaving the validateSchemaVersion argument off this time.</div>
</div>