Skip to content

Commit 7f2cb93

Browse files
Update SQL schema for OSMWaterway
1 parent 4a91438 commit 7f2cb93

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

OSMWaterway/schema.sql

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/* (Beta) Export of data model OSMWaterway of the subject dataModel.OpenStreetMap
2+
for a PostgreSQL database. Pending translation of enumerations and multityped attributes */
3+
CREATE TYPE boat_type AS ENUM ('yes', 'no', 'private', 'permissive');
4+
CREATE TYPE osmType_type AS ENUM ('node', 'relation', 'way');
5+
CREATE TYPE OSMWaterway_type AS ENUM ('OSMWaterway');
6+
CREATE TYPE waterwayType_type AS ENUM ('boatyard', 'canal', 'dam', 'dock', 'ditch', 'drain', 'fairway', 'lock_gate', 'river', 'riverbank', 'sluice_gate', 'stream', 'wadi', 'waterfall', 'weir');
7+
8+
CREATE TABLE OSMWaterway (
9+
address JSON,
10+
alternateName TEXT,
11+
areaServed TEXT,
12+
boat boat_type,
13+
dataProvider TEXT,
14+
dateCreated TIMESTAMP,
15+
dateModified TIMESTAMP,
16+
description TEXT,
17+
id TEXT PRIMARY KEY,
18+
intermittent BOOLEAN,
19+
location JSON,
20+
name TEXT,
21+
oneway BOOLEAN,
22+
osmId NUMERIC,
23+
osmLastModified TIMESTAMP,
24+
osmType osmType_type,
25+
owner JSON,
26+
salt BOOLEAN,
27+
seeAlso JSON,
28+
source TEXT,
29+
type OSMWaterway_type,
30+
waterwayType waterwayType_type,
31+
widthMeters NUMERIC
32+
);

0 commit comments

Comments
 (0)