NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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%


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.

permanent link

answered 10 Jul '16, 22:28

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×165
×11

question asked: 10 Jul '16, 22:22

question was seen: 2,635 times

last updated: 10 Jul '16, 22:28

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum