[osm-goettingen] osmosis

Torsten Lange tlange at gwdg.de
Wed Jul 27 22:54:22 CEST 2011


Hallo Mitja,

danke, es laeuft. Mit der Datenstruktur muss ich mich noch kurzschliessen. 
Leider mag QGIS die bigint-Indexe nicht. Scheint noch immer ein Datentyp vom 
Mond zu sein...

Wie auch immer, als Notbehelf hab ich erstmal die shp-Outputs von der 
Geofabrik...


Dank & Gruss, Torsten

Am Mittwoch 27 Juli 2011, 17:56:25 schrieb Mitja Kleider:
> Hallo Torsten,
> 
> On Wed, 2011-07-27 at 17:40 +0200, Torsten Lange wrote:
> > Ziel war das Zusammenführen zweier OSM-Datensaetze, die Extraktion eines
> > Subsets (bounding box) und das Schreiben in eine Postgis-Datenbank.
> > 
> > 
> > INFO: Osmosis Version 0.34
> 
> Die aktuelle Osmosis-Version ist 0.39, so eine alte Version könnte
> Probleme verursachen.
> http://wiki.openstreetmap.org/wiki/Osmosis#Latest_Stable_Version
> 
> > Task3:
> > Lade den neuen Datensatz in eine PostGIS-Datenbank weder Option [--write-
> > pgsql-dump] noch [--write-pgsql] funktionieren (siehe print out)
> > 
> > #######################################################################
> > Version mit --write-pgsql-dump
> > #######################################################################
> > osmosis --read-xml file="niesachs_nordrhein_reduced.osm"
> > --write-pgsql-dump database="XXXX" user="XXXX"
> > ODER
> > osmosis --read-xml file="niesachs_nordrhein_reduced.osm"
> > --write-pgsql-dump file="niesachs_nordrhein_reduced.sql"
> > ODER
> > osmosis --read-xml file="niesachs_nordrhein_reduced.osm"
> > --write-pgsql-dump database="XXXX" user="XXXX"
> > file="niesachs_nordrhein_reduced.sql"
> > 
> > LIEFERN GLEICHEN FEHLER:
> > 
> > 27.07.2011 17:10:26 org.openstreetmap.osmosis.core.Osmosis run
> > INFO: Osmosis Version 0.34
> > log4j:WARN No appenders could be found for logger
> > (org.java.plugin.ObjectFactory).
> > log4j:WARN Please initialize the log4j system properly.
> > 27.07.2011 17:10:26 org.openstreetmap.osmosis.core.Osmosis run
> > INFO: Preparing pipeline.
> > 27.07.2011 17:10:26 org.openstreetmap.osmosis.core.Osmosis main
> > SCHWERWIEGEND: Execution aborted.
> > 
> > 
> > org.openstreetmap.osmosis.core.OsmosisRuntimeException: Argument user for
> > task 2-write-pgsql-dump was not recognised.
> 
> Der dump ist ja nur eine Datei, da brauchst du kein user und database
> und file ist glaube ich auch nicht nötig.
> http://wiki.openstreetmap.org/wiki/Osmosis/Detailed_Usage#--write-pgsql-dum
> p_.28--wpd.29
> 
> > #######################################################################
> > Version mit --write-pgsql
> > #######################################################################
> > osmosis --read-xml file="niesachs_nordrhein_reduced.osm" --write-pgsql
> > host="XXXX" database="XXXX" user="XXXX"
> 
> Das dürfte deutlich langsamer als die obere Variante werden.
> 
> > SCHWERWIEGEND: Thread for task 1-read-xml failed
> > org.openstreetmap.osmosis.core.OsmosisRuntimeException: Unable to read
> > the schema version from the schema info table.
> 
> Hast du die PostGIS-Erweiterungen installiert und aktiviert?
> Dazu könnte dir diese Seite weiterhelfen, die anderen Schritte sind
> allerdings nicht für einen Osmosis-Import gedacht.
> http://wiki.openstreetmap.org/wiki/DE:HowTo_minutely_hstore#Datenbank_Setup
> 
> 
> Gruß
> Mitja
> 
> _______________________________________________
> Goettingen mailing list
> Goettingen at lists.openstreetmap.de
> http://lists.openstreetmap.de/mailman/listinfo/goettingen



More information about the Goettingen mailing list