[OSM-dev] XAPI - Source code

Ian Dees ian.dees at gmail.com
Mon Jan 3 21:15:07 GMT 2011


On Mon, Jan 3, 2011 at 3:10 PM, arminus <arminus at gmail.com> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20110103/95976fbf/attachment.html>


More information about the dev mailing list