Skip to content

IntermediateDB

Thomas Schwotzer edited this page Jun 5, 2019 · 7 revisions

Structure

The intermediate DB is more or less a SQL incarnation of an OSM file.

It comprise five tables. Their structure are straightforward. intermediate database figure

Nodes, ways and relations table contain data of nodes etc. These three tables have several columns in common: First, they store data taken from osm file:

id primary key
osm_id the osm id
tstamp timestamp (last change date)
classcode foreign key referencing a row in OHDM classification table
otherclasscodes osm objects can be of more than one map feature
serializedtags tags from osm file
TODO TODO

Secondly, each table has some flags which are used for the OHDM/OSM archive update:

ohdm_geom_id ohdm id of a geometry that was produced from this osm entity (can be null)
ohdm_geom_type geometry type (point, linestring, polygon
ohdm_object_id ohdm id of an object that was produced from this osm entity (can be null)
TODO TODO
Clone this wiki locally