Skip to content

Commit 85958e8

Browse files
Update SQL schema for OSMNatural
1 parent 9a4f494 commit 85958e8

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

OSMNatural/schema.sql

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/* (Beta) Export of data model OSMNatural of the subject dataModel.OpenStreetMap
2+
for a PostgreSQL database. Pending translation of enumerations and multityped attributes */
3+
CREATE TYPE leafCycle_type AS ENUM ('deciduous', 'evergreen', 'mixed', 'semi_deciduous', 'semi_evergreen');
4+
CREATE TYPE leafType_type AS ENUM ('broadleaved', 'needleleaved', 'mixed', 'leafless');
5+
CREATE TYPE naturalType_type AS ENUM ('water', 'wood', 'tree', 'tree_row', 'scrub', 'heath', 'grassland', 'fell', 'bare_rock', 'scree', 'shingle', 'sand', 'beach', 'coastline', 'bay', 'strait', 'cape', 'cliff', 'ridge', 'peak', 'volcano', 'valley', 'spring', 'cave_entrance', 'glacier', 'wetland', 'mud');
6+
CREATE TYPE osmType_type AS ENUM ('node', 'way', 'relation');
7+
CREATE TYPE OSMNatural_type AS ENUM ('OSMNatural');
8+
9+
CREATE TABLE OSMNatural (
10+
address JSON,
11+
alternateName TEXT,
12+
areaServed TEXT,
13+
dataProvider TEXT,
14+
dateCreated TIMESTAMP,
15+
dateModified TIMESTAMP,
16+
description TEXT,
17+
elevation NUMERIC,
18+
id TEXT PRIMARY KEY,
19+
leafCycle leafCycle_type,
20+
leafType leafType_type,
21+
location JSON,
22+
name TEXT,
23+
naturalType naturalType_type,
24+
osmId NUMERIC,
25+
osmLastModified TIMESTAMP,
26+
osmType osmType_type,
27+
owner JSON,
28+
seeAlso JSON,
29+
source TEXT,
30+
type OSMNatural_type,
31+
water TEXT,
32+
wetland TEXT
33+
);

0 commit comments

Comments
 (0)