Skip to content

Commit 86e7d84

Browse files
Update SQL schema for OSMBuildingPart
1 parent bc407f2 commit 86e7d84

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

OSMBuildingPart/schema.sql

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/* (Beta) Export of data model OSMBuildingPart of the subject dataModel.OpenStreetMap
2+
for a PostgreSQL database. Pending translation of enumerations and multityped attributes */
3+
CREATE TYPE osmType_type AS ENUM ('node', 'way', 'relation');
4+
CREATE TYPE roofShape_type AS ENUM ('flat', 'gabled', 'hipped', 'half-hipped', 'pyramidal', 'gambrel', 'mansard', 'dome', 'skillion', 'round', 'saltbox', 'onion', 'cone');
5+
CREATE TYPE OSMBuildingPart_type AS ENUM ('OSMBuildingPart');
6+
7+
CREATE TABLE OSMBuildingPart (
8+
address JSON,
9+
alternateName TEXT,
10+
areaServed TEXT,
11+
buildingColour TEXT,
12+
buildingHeight NUMERIC,
13+
buildingLevels NUMERIC,
14+
buildingMaterial TEXT,
15+
buildingPartType TEXT,
16+
dataProvider TEXT,
17+
dateCreated TIMESTAMP,
18+
dateModified TIMESTAMP,
19+
description TEXT,
20+
id TEXT PRIMARY KEY,
21+
location JSON,
22+
minHeight NUMERIC,
23+
minLevel NUMERIC,
24+
name TEXT,
25+
osmId NUMERIC,
26+
osmLastModified TIMESTAMP,
27+
osmType osmType_type,
28+
owner JSON,
29+
refBuilding TEXT,
30+
roofColour TEXT,
31+
roofMaterial TEXT,
32+
roofShape roofShape_type,
33+
seeAlso JSON,
34+
source TEXT,
35+
type OSMBuildingPart_type
36+
);

0 commit comments

Comments
 (0)