Re: [Talk-de] Hilfe bei Postgres Installation für Osmosis

2011-01-24 Diskussionsfäden Alexander Matheisen
 das ist ganz einfach, wenn man das Problem selber mal hatte und dann
 nach Stunden drauf gekommen ist ;)
 
 manche sql-system-tabellen (hier schema_info) und einige andere
 postgis-tabellen dürfen bei einer neuinstallation nicht von alle sql-usern
 (hier osm) gelesen werden!!!

Danke! Hab es zwar so nicht hingekriegt (wahrscheinlich meine fehlenden
DB/Postgres Kenntnisse...), aber so hab ich es dann doch hingekriegt:

echo ALTER TABLE geography_columns OWNER TO osm;  | psql -d osm

jeweils für jede Tabelle.


Alex


___
Talk-de mailing list
Talk-de@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-de


Re: [Talk-de] Hilfe bei Postgres Installation für Osmosis

2011-01-24 Diskussionsfäden Walter Nordmann


Alexander Matheisen wrote:
 
 ... aber so hab ich es dann doch hingekriegt:
 
 echo ALTER TABLE geography_columns OWNER TO osm;  | psql -d osm
 
 jeweils für jede Tabelle.
hi alex,

gib doch mal einfach psql -d osm ein  :)

raus kommst du mit  \q

gruss
walter


-
33,33% aller Statistiken beruhen auf kleinen Datenmengen.
-- 
View this message in context: 
http://gis.638310.n2.nabble.com/Hilfe-bei-Postgres-Installation-fur-Osmosis-tp5952905p5956287.html
Sent from the Germany mailing list archive at Nabble.com.

___
Talk-de mailing list
Talk-de@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-de


[Talk-de] Hilfe bei Postgres Installation für Osmosis

2011-01-23 Diskussionsfäden Alexander Matheisen
Hallo,

ich komme im Moment nicht so recht weiter.
Ich will mit osmosis Daten in eine Postgres Datenbank importieren und
will daher zur Zeit die Datenbank nach dieser Anleitung anlegen:
http://wiki.openstreetmap.org/wiki/Osmosis/PostGIS_Setup

Ich nutze dabei Postgres 8.4 unter Ubuntu 10.10.

Das Installieren gibt soweit keine Probleme, bis
psql -d osm -f /usr/share/postgresql/8.4/contrib/postgis-1.5/postgis.sql
geht alles ohne irgendeine Fehlermeldung.

Doch dann bei
psql -d olm6 -f osmosis-0.38/script/pgsql_simple_schema_0.6.sql

geht es nicht mehr weiter.

Die vollständige Liste der Fehlermeldungen:

psql:/home/alexander/Projekte/OLM/olm6/import/osmosis-0.38/script/pgsql_simple_schema_0.6.sql:4:
 HINWEIS:  Tabelle »actions« existiert nicht, wird übersprungen
DROP TABLE
psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:5: HINWEIS:
Tabelle »users« existiert nicht, wird übersprungen
DROP TABLE
psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:6: HINWEIS:
Tabelle »nodes« existiert nicht, wird übersprungen
DROP TABLE
psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:7: HINWEIS:
Tabelle »ways« existiert nicht, wird übersprungen
DROP TABLE
psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:8: HINWEIS:
Tabelle »way_nodes« existiert nicht, wird übersprungen
DROP TABLE
psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:9: HINWEIS:
Tabelle »relations« existiert nicht, wird übersprungen
DROP TABLE
psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:10: HINWEIS:
Tabelle »relation_members« existiert nicht, wird übersprungen
DROP TABLE
psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:11: HINWEIS:
Tabelle »schema_info« existiert nicht, wird übersprungen
DROP TABLE
psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:14: HINWEIS:
Funktion osmosisupdate() existiert nicht, wird übersprungen
DROP FUNCTION
CREATE TABLE
CREATE TABLE
psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:38: FEHLER:  Typ
»hstore« existiert nicht
ZEILE 7: tags hstore
  ^
psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:40: FEHLER:
AddGeometryColumns() - invalid SRID
KONTEXT:  SQL statement SELECT AddGeometryColumn('','', $1 , $2 , $3 ,
$4 , $5 )
PL/pgSQL-Funktion »addgeometrycolumn« Zeile 4 bei SQL-Anweisung
psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:52: FEHLER:  Typ
»hstore« existiert nicht
ZEILE 7: tags hstore,
  ^
CREATE TABLE
psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:71: FEHLER:  Typ
»hstore« existiert nicht
ZEILE 7: tags hstore
  ^
CREATE TABLE
INSERT 0 1
psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:88: HINWEIS:  ALTER
TABLE / ADD PRIMARY KEY erstellt implizit einen Index »pk_schema_info«
für Tabelle »schema_info«
ALTER TABLE
psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:90: HINWEIS:  ALTER
TABLE / ADD PRIMARY KEY erstellt implizit einen Index »pk_users« für
Tabelle »users«
ALTER TABLE
psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:92: FEHLER:
Relation »nodes« existiert nicht
psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:94: FEHLER:
Relation »ways« existiert nicht
psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:96: HINWEIS:  ALTER
TABLE / ADD PRIMARY KEY erstellt implizit einen Index »pk_way_nodes« für
Tabelle »way_nodes«
ALTER TABLE
psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:98: FEHLER:
Relation »relations« existiert nicht
psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:100: HINWEIS:
ALTER TABLE / ADD PRIMARY KEY erstellt implizit einen Index
»pk_relation_members« für Tabelle »relation_members«
ALTER TABLE
psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:104: FEHLER:
Relation »nodes« existiert nicht
CREATE INDEX
CREATE INDEX
psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:112: FEHLER:
Relation »nodes« existiert nicht
psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:130: FEHLER:
ungültiger Typname: »ways.id%TYPE«
KONTEXT:  compilation of PL/pgSQL function unnest_bbox_way_nodes near
line 2
CREATE FUNCTION



Nach diesem Befehl sieht die Datenbank so aus:

   Liste der Relationen
 Schema |   Name|   Typ   | Eigentümer 
+---+-+
 public | geography_columns | Sicht   | postgres
 public | geometry_columns  | Tabelle | postgres
 public | relation_members  | Tabelle | postgres
 public | schema_info   | Tabelle | postgres
 public | spatial_ref_sys   | Tabelle | postgres
 public | users | Tabelle | postgres
 public | way_nodes | Tabelle | postgres


Kann mir jemand helfen?


Alex



___
Talk-de mailing list
Talk-de@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-de


Re: [Talk-de] Hilfe bei Postgres Installation für Osmosis

2011-01-23 Diskussionsfäden Philipp Borgers
Hi, 

ganz einfach, du musst noch hstore support aktiveren ;)

psql -U postgres osm -f /usr/share/postgresql-8.4/contrib/hstore.sql

Steht auch irgendwo in der Anleitung.

LG Philipp

Am Sonntag, den 23.01.2011, 16:39 +0100 schrieb Alexander Matheisen:
 Hallo,
 
 ich komme im Moment nicht so recht weiter.
 Ich will mit osmosis Daten in eine Postgres Datenbank importieren und
 will daher zur Zeit die Datenbank nach dieser Anleitung anlegen:
 http://wiki.openstreetmap.org/wiki/Osmosis/PostGIS_Setup
 
 Ich nutze dabei Postgres 8.4 unter Ubuntu 10.10.
 
 Das Installieren gibt soweit keine Probleme, bis
 psql -d osm -f /usr/share/postgresql/8.4/contrib/postgis-1.5/postgis.sql
 geht alles ohne irgendeine Fehlermeldung.
 
 Doch dann bei
 psql -d olm6 -f osmosis-0.38/script/pgsql_simple_schema_0.6.sql
 
 geht es nicht mehr weiter.
 
 Die vollständige Liste der Fehlermeldungen:
 
 psql:/home/alexander/Projekte/OLM/olm6/import/osmosis-0.38/script/pgsql_simple_schema_0.6.sql:4:
  HINWEIS:  Tabelle »actions« existiert nicht, wird übersprungen
 DROP TABLE
 psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:5: HINWEIS:
 Tabelle »users« existiert nicht, wird übersprungen
 DROP TABLE
 psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:6: HINWEIS:
 Tabelle »nodes« existiert nicht, wird übersprungen
 DROP TABLE
 psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:7: HINWEIS:
 Tabelle »ways« existiert nicht, wird übersprungen
 DROP TABLE
 psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:8: HINWEIS:
 Tabelle »way_nodes« existiert nicht, wird übersprungen
 DROP TABLE
 psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:9: HINWEIS:
 Tabelle »relations« existiert nicht, wird übersprungen
 DROP TABLE
 psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:10: HINWEIS:
 Tabelle »relation_members« existiert nicht, wird übersprungen
 DROP TABLE
 psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:11: HINWEIS:
 Tabelle »schema_info« existiert nicht, wird übersprungen
 DROP TABLE
 psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:14: HINWEIS:
 Funktion osmosisupdate() existiert nicht, wird übersprungen
 DROP FUNCTION
 CREATE TABLE
 CREATE TABLE
 psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:38: FEHLER:  Typ
 »hstore« existiert nicht
 ZEILE 7: tags hstore
   ^
 psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:40: FEHLER:
 AddGeometryColumns() - invalid SRID
 KONTEXT:  SQL statement SELECT AddGeometryColumn('','', $1 , $2 , $3 ,
 $4 , $5 )
 PL/pgSQL-Funktion »addgeometrycolumn« Zeile 4 bei SQL-Anweisung
 psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:52: FEHLER:  Typ
 »hstore« existiert nicht
 ZEILE 7: tags hstore,
   ^
 CREATE TABLE
 psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:71: FEHLER:  Typ
 »hstore« existiert nicht
 ZEILE 7: tags hstore
   ^
 CREATE TABLE
 INSERT 0 1
 psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:88: HINWEIS:  ALTER
 TABLE / ADD PRIMARY KEY erstellt implizit einen Index »pk_schema_info«
 für Tabelle »schema_info«
 ALTER TABLE
 psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:90: HINWEIS:  ALTER
 TABLE / ADD PRIMARY KEY erstellt implizit einen Index »pk_users« für
 Tabelle »users«
 ALTER TABLE
 psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:92: FEHLER:
 Relation »nodes« existiert nicht
 psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:94: FEHLER:
 Relation »ways« existiert nicht
 psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:96: HINWEIS:  ALTER
 TABLE / ADD PRIMARY KEY erstellt implizit einen Index »pk_way_nodes« für
 Tabelle »way_nodes«
 ALTER TABLE
 psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:98: FEHLER:
 Relation »relations« existiert nicht
 psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:100: HINWEIS:
 ALTER TABLE / ADD PRIMARY KEY erstellt implizit einen Index
 »pk_relation_members« für Tabelle »relation_members«
 ALTER TABLE
 psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:104: FEHLER:
 Relation »nodes« existiert nicht
 CREATE INDEX
 CREATE INDEX
 psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:112: FEHLER:
 Relation »nodes« existiert nicht
 psql:osmosis-0.38/script/pgsql_simple_schema_0.6.sql:130: FEHLER:
 ungültiger Typname: »ways.id%TYPE«
 KONTEXT:  compilation of PL/pgSQL function unnest_bbox_way_nodes near
 line 2
 CREATE FUNCTION
 
 
 
 Nach diesem Befehl sieht die Datenbank so aus:
 
Liste der Relationen
  Schema |   Name|   Typ   | Eigentümer 
 +---+-+
  public | geography_columns | Sicht   | postgres
  public | geometry_columns  | Tabelle | postgres
  public | relation_members  | Tabelle | postgres
  public | schema_info   | Tabelle | postgres
  public | spatial_ref_sys   | Tabelle | postgres
  public | users | Tabelle | postgres
  public | way_nodes | Tabelle | postgres
 
 
 Kann mir jemand helfen?
 
 
 Alex
 
 
 
 

Re: [Talk-de] Hilfe bei Postgres Installation für Osmosis

2011-01-23 Diskussionsfäden Alexander Matheisen
 ganz einfach, du musst noch hstore support aktiveren ;)
 
 psql -U postgres osm -f /usr/share/postgresql-8.4/contrib/hstore.sql
 
 Steht auch irgendwo in der Anleitung.

Ich hatte vergessen zu erwähnen, dass ich das auch schon versucht habe.


Ausgabe von : psql -U postgres osm
-f /usr/share/postgresql/8.4/contrib/hstore.sql (gekürzt)

SET
CREATE TYPE
psql:/usr/share/postgresql/8.4/contrib/hstore.sql:11: HINWEIS:
Rückgabetyp hstore ist nur eine Hülle
CREATE FUNCTION
psql:/usr/share/postgresql/8.4/contrib/hstore.sql:16: HINWEIS:
Argumenttyp hstore ist nur eine Hülle
CREATE FUNCTION
...
CREATE TYPE
psql:/usr/share/postgresql/8.4/contrib/hstore.sql:180: HINWEIS:
Rückgabetyp ghstore ist nur eine Hülle
CREATE FUNCTION
psql:/usr/share/postgresql/8.4/contrib/hstore.sql:185: HINWEIS:
Argumenttyp ghstore ist nur eine Hülle
CREATE FUNCTION
CREATE TYPE
...
CREATE FUNCTION
CREATE OPERATOR CLASS



Danach noch mal psql -d osm -f script/pgsql_simple_schema_0.6.sql

psql:script/pgsql_simple_schema_0.6.sql:4: HINWEIS:  Tabelle »actions«
existiert nicht, wird übersprungen
DROP TABLE
DROP TABLE
psql:script/pgsql_simple_schema_0.6.sql:6: HINWEIS:  Tabelle »nodes«
existiert nicht, wird übersprungen
DROP TABLE
psql:script/pgsql_simple_schema_0.6.sql:7: HINWEIS:  Tabelle »ways«
existiert nicht, wird übersprungen
DROP TABLE
DROP TABLE
psql:script/pgsql_simple_schema_0.6.sql:9: HINWEIS:  Tabelle »relations«
existiert nicht, wird übersprungen
DROP TABLE
DROP TABLE
DROP TABLE
DROP FUNCTION
CREATE TABLE
CREATE TABLE
CREATE TABLE
psql:script/pgsql_simple_schema_0.6.sql:40: FEHLER:
AddGeometryColumns() - invalid SRID
KONTEXT:  SQL statement SELECT AddGeometryColumn('','', $1 , $2 , $3 ,
$4 , $5 )
PL/pgSQL-Funktion »addgeometrycolumn« Zeile 4 bei SQL-Anweisung
CREATE TABLE
CREATE TABLE
CREATE TABLE
CREATE TABLE
INSERT 0 1
psql:script/pgsql_simple_schema_0.6.sql:88: HINWEIS:  ALTER TABLE / ADD
PRIMARY KEY erstellt implizit einen Index »pk_schema_info« für Tabelle
»schema_info«
ALTER TABLE
psql:script/pgsql_simple_schema_0.6.sql:90: HINWEIS:  ALTER TABLE / ADD
PRIMARY KEY erstellt implizit einen Index »pk_users« für Tabelle »users«
ALTER TABLE
psql:script/pgsql_simple_schema_0.6.sql:92: HINWEIS:  ALTER TABLE / ADD
PRIMARY KEY erstellt implizit einen Index »pk_nodes« für Tabelle »nodes«
ALTER TABLE
psql:script/pgsql_simple_schema_0.6.sql:94: HINWEIS:  ALTER TABLE / ADD
PRIMARY KEY erstellt implizit einen Index »pk_ways« für Tabelle »ways«
ALTER TABLE
psql:script/pgsql_simple_schema_0.6.sql:96: HINWEIS:  ALTER TABLE / ADD
PRIMARY KEY erstellt implizit einen Index »pk_way_nodes« für Tabelle
»way_nodes«
ALTER TABLE
psql:script/pgsql_simple_schema_0.6.sql:98: HINWEIS:  ALTER TABLE / ADD
PRIMARY KEY erstellt implizit einen Index »pk_relations« für Tabelle
»relations«
ALTER TABLE
psql:script/pgsql_simple_schema_0.6.sql:100: HINWEIS:  ALTER TABLE / ADD
PRIMARY KEY erstellt implizit einen Index »pk_relation_members« für
Tabelle »relation_members«
ALTER TABLE
psql:script/pgsql_simple_schema_0.6.sql:104: FEHLER:  Spalte »geom«
existiert nicht
CREATE INDEX
CREATE INDEX
psql:script/pgsql_simple_schema_0.6.sql:112: FEHLER:  Index
»idx_nodes_geom« für Tabelle »nodes« existiert nicht
CREATE FUNCTION
CREATE FUNCTION



Danach sieht die Tabelle so aus (fehlt da nicht was für die Tags?):

   Liste der Relationen
 Schema |   Name|   Typ   | Eigentümer 
+---+-+
 public | geography_columns | Sicht   | postgres
 public | geometry_columns  | Tabelle | postgres
 public | nodes | Tabelle | postgres
 public | relation_members  | Tabelle | postgres
 public | relations | Tabelle | postgres
 public | schema_info   | Tabelle | postgres
 public | spatial_ref_sys   | Tabelle | postgres
 public | users | Tabelle | postgres
 public | way_nodes | Tabelle | postgres
 public | ways  | Tabelle | postgres



Alex




___
Talk-de mailing list
Talk-de@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-de


Re: [Talk-de] Hilfe bei Postgres Installation für Osmosis

2011-01-23 Diskussionsfäden Philipp Borgers
Scheint einigermaßen funktioniert zu haben. Tags sind in den Tabellen
enthalten und haben den Typ hstore. Das ist eine tolle Erweiterung für
Postgres ( http://www.postgresql.org/docs/8.4/static/hstore.html ).

Ansonsten sehe ich trotzdem noch ein, zwei Fehler. Vielleicht versuchst
du es nochmal ganz von vorne mit einem sauberen Setup? Hast du
eigentlich postgis installiert? 

Hier https://github.com/slomo/osm-spline-xapi#readme findest du ne
Anleitung wie wir es gemacht haben. Beachte aber, dass wir postgres 9.0
benutzen.

Ansonsten mal irc.oftc.net/#osm-dev joinen und Fragen stellen.

LG Philipp

Am Sonntag, den 23.01.2011, 18:01 +0100 schrieb Alexander Matheisen:
  ganz einfach, du musst noch hstore support aktiveren ;)
  
  psql -U postgres osm -f /usr/share/postgresql-8.4/contrib/hstore.sql
  
  Steht auch irgendwo in der Anleitung.
 
 Ich hatte vergessen zu erwähnen, dass ich das auch schon versucht habe.
 
 
 Ausgabe von : psql -U postgres osm
 -f /usr/share/postgresql/8.4/contrib/hstore.sql (gekürzt)
 
 SET
 CREATE TYPE
 psql:/usr/share/postgresql/8.4/contrib/hstore.sql:11: HINWEIS:
 Rückgabetyp hstore ist nur eine Hülle
 CREATE FUNCTION
 psql:/usr/share/postgresql/8.4/contrib/hstore.sql:16: HINWEIS:
 Argumenttyp hstore ist nur eine Hülle
 CREATE FUNCTION
 ...
 CREATE TYPE
 psql:/usr/share/postgresql/8.4/contrib/hstore.sql:180: HINWEIS:
 Rückgabetyp ghstore ist nur eine Hülle
 CREATE FUNCTION
 psql:/usr/share/postgresql/8.4/contrib/hstore.sql:185: HINWEIS:
 Argumenttyp ghstore ist nur eine Hülle
 CREATE FUNCTION
 CREATE TYPE
 ...
 CREATE FUNCTION
 CREATE OPERATOR CLASS
 
 
 
 Danach noch mal psql -d osm -f script/pgsql_simple_schema_0.6.sql
 
 psql:script/pgsql_simple_schema_0.6.sql:4: HINWEIS:  Tabelle »actions«
 existiert nicht, wird übersprungen
 DROP TABLE
 DROP TABLE
 psql:script/pgsql_simple_schema_0.6.sql:6: HINWEIS:  Tabelle »nodes«
 existiert nicht, wird übersprungen
 DROP TABLE
 psql:script/pgsql_simple_schema_0.6.sql:7: HINWEIS:  Tabelle »ways«
 existiert nicht, wird übersprungen
 DROP TABLE
 DROP TABLE
 psql:script/pgsql_simple_schema_0.6.sql:9: HINWEIS:  Tabelle »relations«
 existiert nicht, wird übersprungen
 DROP TABLE
 DROP TABLE
 DROP TABLE
 DROP FUNCTION
 CREATE TABLE
 CREATE TABLE
 CREATE TABLE
 psql:script/pgsql_simple_schema_0.6.sql:40: FEHLER:
 AddGeometryColumns() - invalid SRID
 KONTEXT:  SQL statement SELECT AddGeometryColumn('','', $1 , $2 , $3 ,
 $4 , $5 )
 PL/pgSQL-Funktion »addgeometrycolumn« Zeile 4 bei SQL-Anweisung
 CREATE TABLE
 CREATE TABLE
 CREATE TABLE
 CREATE TABLE
 INSERT 0 1
 psql:script/pgsql_simple_schema_0.6.sql:88: HINWEIS:  ALTER TABLE / ADD
 PRIMARY KEY erstellt implizit einen Index »pk_schema_info« für Tabelle
 »schema_info«
 ALTER TABLE
 psql:script/pgsql_simple_schema_0.6.sql:90: HINWEIS:  ALTER TABLE / ADD
 PRIMARY KEY erstellt implizit einen Index »pk_users« für Tabelle »users«
 ALTER TABLE
 psql:script/pgsql_simple_schema_0.6.sql:92: HINWEIS:  ALTER TABLE / ADD
 PRIMARY KEY erstellt implizit einen Index »pk_nodes« für Tabelle »nodes«
 ALTER TABLE
 psql:script/pgsql_simple_schema_0.6.sql:94: HINWEIS:  ALTER TABLE / ADD
 PRIMARY KEY erstellt implizit einen Index »pk_ways« für Tabelle »ways«
 ALTER TABLE
 psql:script/pgsql_simple_schema_0.6.sql:96: HINWEIS:  ALTER TABLE / ADD
 PRIMARY KEY erstellt implizit einen Index »pk_way_nodes« für Tabelle
 »way_nodes«
 ALTER TABLE
 psql:script/pgsql_simple_schema_0.6.sql:98: HINWEIS:  ALTER TABLE / ADD
 PRIMARY KEY erstellt implizit einen Index »pk_relations« für Tabelle
 »relations«
 ALTER TABLE
 psql:script/pgsql_simple_schema_0.6.sql:100: HINWEIS:  ALTER TABLE / ADD
 PRIMARY KEY erstellt implizit einen Index »pk_relation_members« für
 Tabelle »relation_members«
 ALTER TABLE
 psql:script/pgsql_simple_schema_0.6.sql:104: FEHLER:  Spalte »geom«
 existiert nicht
 CREATE INDEX
 CREATE INDEX
 psql:script/pgsql_simple_schema_0.6.sql:112: FEHLER:  Index
 »idx_nodes_geom« für Tabelle »nodes« existiert nicht
 CREATE FUNCTION
 CREATE FUNCTION
 
 
 
 Danach sieht die Tabelle so aus (fehlt da nicht was für die Tags?):
 
Liste der Relationen
  Schema |   Name|   Typ   | Eigentümer 
 +---+-+
  public | geography_columns | Sicht   | postgres
  public | geometry_columns  | Tabelle | postgres
  public | nodes | Tabelle | postgres
  public | relation_members  | Tabelle | postgres
  public | relations | Tabelle | postgres
  public | schema_info   | Tabelle | postgres
  public | spatial_ref_sys   | Tabelle | postgres
  public | users | Tabelle | postgres
  public | way_nodes | Tabelle | postgres
  public | ways  | Tabelle | postgres
 
 
 
 Alex
 
 
 



___
Talk-de mailing list
Talk-de@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-de


Re: [Talk-de] Hilfe bei Postgres Installation für Osmosis

2011-01-23 Diskussionsfäden Thomas Ineichen

Hallo Alex,


psql:script/pgsql_simple_schema_0.6.sql:40: FEHLER:
AddGeometryColumns() - invalid SRID
KONTEXT:  SQL statement SELECT AddGeometryColumn('','', $1 , $2 , $3 ,
$4 , $5 )
PL/pgSQL-Funktion »addgeometrycolumn« Zeile 4 bei SQL-Anweisung


Ich habe heute Nachmittag ebenfalls mit Osmosis herumgespielt und  
wollte das Wiki eigentlich heute Abend verbessern:


Du benötigst noch die spatial_ref_sys.sql, ebenfalls im  
contrib-Verzeichnis von PostgreSQL:


psql -d test -f /usr/share/postgresql/8.4/contrib/postgis.sql
psql -d test -f /usr/share/postgresql/8.4/contrib/spatial_ref_sys.sql
psql -d test -f /usr/share/postgresql/8.4/contrib/hstore.sql
psql -d test -f script/pgsql_simple_schema_0.6.sql


Gruss,
Thomas

___
Talk-de mailing list
Talk-de@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-de


Re: [Talk-de] Hilfe bei Postgres Installation für Osmosis

2011-01-23 Diskussionsfäden Alexander Matheisen
Am Sonntag, den 23.01.2011, 18:22 +0100 schrieb Thomas Ineichen:
 Hallo Alex,
 
  psql:script/pgsql_simple_schema_0.6.sql:40: FEHLER:
  AddGeometryColumns() - invalid SRID
  KONTEXT:  SQL statement SELECT AddGeometryColumn('','', $1 , $2 , $3 ,
  $4 , $5 )
  PL/pgSQL-Funktion »addgeometrycolumn« Zeile 4 bei SQL-Anweisung
 
 Ich habe heute Nachmittag ebenfalls mit Osmosis herumgespielt und  
 wollte das Wiki eigentlich heute Abend verbessern:

Da warst du wohl nicht schnell genug... ;)

Danke jedenfalls, jetzt klappt zumindest das anlegen. Leider
funktioniert aber noch nicht das einspielen mit osmosis:

osmosis-0.38/bin/osmosis --rx 20110122.osm --wp host=localhost
database=osm user=osm password=osm


23.01.2011 18:45:27 org.openstreetmap.osmosis.core.Osmosis run
INFO: Osmosis Version 0.38
23.01.2011 18:45:29 org.openstreetmap.osmosis.core.Osmosis run
INFO: Preparing pipeline.
23.01.2011 18:45:29 org.openstreetmap.osmosis.core.Osmosis run
INFO: Launching pipeline execution.
23.01.2011 18:45:29 org.openstreetmap.osmosis.core.Osmosis run
INFO: Pipeline executing, waiting for completion.
23.01.2011 18:45:56
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource
[org/springframework/jdbc/support/sql-error-codes.xml]
23.01.2011 18:45:57
org.springframework.jdbc.support.SQLErrorCodesFactory init
INFO: SQLErrorCodes loaded: [DB2, Derby, H2, HSQL, Informix, MS-SQL,
MySQL, Oracle, PostgreSQL, Sybase]
23.01.2011 18:45:57
org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager
waitForCompletion
SCHWERWIEGEND: Thread for task 1-rx failed
org.springframework.jdbc.BadSqlGrammarException: StatementCallback; bad
SQL grammar [SELECT version FROM schema_info]; nested exception is
org.postgresql.util.PSQLException: FEHLER: keine Berechtigung für
Relation schema_info
at
org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.doTranslate(SQLStateSQLExceptionTranslator.java:98)
at
org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:72)
at
org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80)
at
org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80)
at
org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:406)
at
org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:455)
at
org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:463)
at
org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java:471)
at
org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java:476)
at
org.springframework.jdbc.core.JdbcTemplate.queryForInt(JdbcTemplate.java:485)
at
org.springframework.jdbc.core.simple.SimpleJdbcTemplate.queryForInt(SimpleJdbcTemplate.java:113)
at
org.openstreetmap.osmosis.pgsnapshot.common.SchemaVersionValidator.validateDBVersion(SchemaVersionValidator.java:64)
at
org.openstreetmap.osmosis.pgsnapshot.common.SchemaVersionValidator.validateVersion(SchemaVersionValidator.java:47)
at
org.openstreetmap.osmosis.pgsnapshot.v0_6.impl.CopyFilesetLoader.run(CopyFilesetLoader.java:78)
at
org.openstreetmap.osmosis.pgsnapshot.v0_6.PostgreSqlCopyWriter.complete(PostgreSqlCopyWriter.java:108)
at org.openstreetmap.osmosis.xml.v0_6.XmlReader.run(XmlReader.java:110)
at java.lang.Thread.run(Thread.java:636)
Caused by: org.postgresql.util.PSQLException: FEHLER: keine Berechtigung
für Relation schema_info
at
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2062)
at
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1795)
at
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:479)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:353)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:252)
at
org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)
at
org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)
at org.springframework.jdbc.core.JdbcTemplate
$1QueryStatementCallback.doInStatement(JdbcTemplate.java:440)
at
org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:395)
... 12 more
23.01.2011 18:45:57 org.openstreetmap.osmosis.core.Osmosis main
SCHWERWIEGEND: Execution aborted.
org.openstreetmap.osmosis.core.OsmosisRuntimeException: One or more
tasks failed.
at

Re: [Talk-de] Hilfe bei Postgres Installation für Osmosis

2011-01-23 Diskussionsfäden Walter Nordmann


Alexander Matheisen wrote:
 
 
 osmosis-0.38/bin/osmosis --rx 20110122.osm --wp host=localhost
 database=osm user=osm password=osm
 .
 org.postgresql.util.PSQLException: FEHLER: keine Berechtigung für
 Relation schema_info
 
Hi Alexander,

das ist ganz einfach, wenn man das Problem selber mal hatte und dann
nach Stunden drauf gekommen ist ;)

manche sql-system-tabellen (hier schema_info) und einige andere
postgis-tabellen dürfen bei einer neuinstallation nicht von alle sql-usern
(hier osm) gelesen werden!!!

mach im tool deiner Wahl einen grant select für osm oder any drauf und
das wars dann.

Später Gruss
Walter

oder gleich nen grant select,insert,delete für all, da du bestimmt mit
deiner db im stillen Kämmerchen arbeitest.




-
33,33% aller Statistiken beruhen auf kleinen Datenmengen.
-- 
View this message in context: 
http://gis.638310.n2.nabble.com/Hilfe-bei-Postgres-Installation-fur-Osmosis-tp5952905p5953992.html
Sent from the Germany mailing list archive at Nabble.com.

___
Talk-de mailing list
Talk-de@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-de