This is a static archive of our old OSM Help Site. Please post any new questions and answers at community.openstreetmap.org.

what is the schema for objects in the OpenStreetMap PostGreSQL database?

0

what is the schema for objects in the OpenStreetMap PostGres database?

asked 10 Jul '16, 22:22

tgertin's gravatar image

tgertin
70448
accept rate: 0%


One Answer:

2

There are many ways of representing OSM data in PostgreSQL. The one used by the master database tends to be called "API DB", and the Osmosis utility comes with an SQL file to create it. However since the API is continuously improved, if you really want the latest schema, check https://github.com/openstreetmap/openstreetmap-website/tree/master/db.

answered 10 Jul '16, 22:28

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%