Skip to content

Commit 2dae2e8

Browse files
Update SQL schema for OSMLanduse
1 parent 606f2fd commit 2dae2e8

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

OSMLanduse/schema.sql

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/* (Beta) Export of data model OSMLanduse of the subject dataModel.OpenStreetMap
2+
for a PostgreSQL database. Pending translation of enumerations and multityped attributes */
3+
CREATE TYPE landuseType_type AS ENUM ('commercial', 'construction', 'education', 'industrial', 'residential', 'retail', 'institutional', 'aquaculture', 'allotments', 'farmland', 'farmyard', 'forest', 'meadow', 'orchard', 'plant_nursery', 'vineyard', 'cemetery', 'military', 'quarry', 'railway', 'recreation_ground', 'religious', 'village_green', 'grass', 'greenhouse_horticulture', 'salt_pond');
4+
CREATE TYPE osmType_type AS ENUM ('node', 'way', 'relation');
5+
CREATE TYPE OSMLanduse_type AS ENUM ('OSMLanduse');
6+
7+
CREATE TABLE OSMLanduse (
8+
address JSON,
9+
alternateName TEXT,
10+
areaServed TEXT,
11+
crop TEXT,
12+
dataProvider TEXT,
13+
dateCreated TIMESTAMP,
14+
dateModified TIMESTAMP,
15+
description TEXT,
16+
id TEXT PRIMARY KEY,
17+
landuseType landuseType_type,
18+
location JSON,
19+
name TEXT,
20+
operator TEXT,
21+
osmId NUMERIC,
22+
osmLastModified TIMESTAMP,
23+
osmType osmType_type,
24+
owner JSON,
25+
seeAlso JSON,
26+
source TEXT,
27+
trees TEXT,
28+
type OSMLanduse_type
29+
);

0 commit comments

Comments
 (0)