[OSM-dev] Writing an OSM map application
Andreas Volz
lists at brachttal.net
Thu Mar 29 12:53:45 BST 2007
Am Fri, 23 Mar 2007 19:52:29 +0000 schrieb Keith Sharp:
> On Fri, 2007-03-23 at 20:26 +0100, Andreas Volz wrote:
> > Hello,
> >
> > I like to write an application that uses the map data from OSM. I
> > looked how other applications solved this. They import the world.osm
> > into a SQL database an read all map information from there. So
> > please try to answer these OSM beginner questions:
> >
> > - Is there a proposed SQL database format for OSM based maps? This
> > would be usefull to share end user generated map data between
> > various systems.
>
> I use PostGIS on top of PostgreQL. The table format is defined by the
> import tool, see below.
>
> > - Is there an application which converts the world.osm into a SQL
> > database?
>
> If you use PostGIS then you want osm2pgsql:
>
> http://svn.openstreetmap.org/utils/osm2pgsql/
I've still problems with osm2pgsql. I installed postgres and postgis on
Gentoo. I started the postgres service. Then I created a database
"osm" ,a psql user and executed this:
> psql -d osm < germany-070321.sql
Result:
DROP TABLE
CREATE TABLE
FEHLER: Funktion addgeometrycolumn("unknown", "unknown", integer,
"unknown", integer) existiert nicht HINT: Keine Funktion stimmt mit
dem angegebenen Namen und den Argumenttypen überein. Sie müssen
möglicherweise ausdrückliche Typumwandlungen hinzufügen. DROP TABLE
CREATE TABLE FEHLER: Funktion addgeometrycolumn("unknown", "unknown",
integer, "unknown", integer) existiert nicht HINT: Keine Funktion
stimmt mit dem angegebenen Namen und den Argumenttypen überein. Sie
müssen möglicherweise ausdrückliche Typumwandlungen hinzufügen. DROP
TABLE CREATE TABLE FEHLER: Funktion addgeometrycolumn("unknown",
"unknown", integer, "unknown", integer) existiert nicht HINT: Keine
Funktion stimmt mit dem angegebenen Namen und den Argumenttypen
überein. Sie müssen möglicherweise ausdrückliche Typumwandlungen
hinzufügen. BEGIN FEHLER: Funktion geomfromtext("unknown", integer)
existiert nicht HINT: Keine Funktion stimmt mit dem angegebenen Namen
und den Argumenttypen überein. Sie müssen möglicherweise ausdrückliche
Typumwandlungen hinzufügen. FEHLER: aktuelle Transaktion wurde
abgebrochen, Befehle werden bis zum Ende der Transaktion ignoriert
...
Sorry for the german error messages. LC_ALL=C doesn't work here. No
idea how to get english error messages.
Any ideas?
regards
Andreas
More information about the dev
mailing list