[Dive4elements-commits] [PATCH 2 of 3] SCHEMA CHANGE: extended hydr_boundaries tables

Wald Commits scm-commit at wald.intevation.org
Fri Feb 1 10:43:30 CET 2013


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1359711672 -3600
# Branch dami
# Node ID a72e90fc45ed38869bb636d61e2edec2c98ce6a1
# Parent  5a0225ddae2b93c4cf1c7ed5935d2d6a70782f86
SCHEMA CHANGE: extended hydr_boundaries tables

diff -r 5a0225ddae2b -r a72e90fc45ed flys-backend/doc/schema/postgresql-spatial.sql
--- a/flys-backend/doc/schema/postgresql-spatial.sql	Fri Feb 01 10:38:26 2013 +0100
+++ b/flys-backend/doc/schema/postgresql-spatial.sql	Fri Feb 01 10:41:12 2013 +0100
@@ -241,13 +241,14 @@
 ALTER TABLE floodmaps ADD CONSTRAINT enforce_geotype_geom CHECK (geometrytype(geom) = 'POLYGON'::text OR geometrytype(geom) = 'MULTIPOLYGON'::text);
 ALTER TABLE floodmaps ALTER COLUMN id SET DEFAULT NEXTVAL('FLOODMAPS_ID_SEQ');
 
-
 CREATE SEQUENCE HYDR_BOUNDARIES_ID_SEQ;
 CREATE TABLE hydr_boundaries (
     id         int PRIMARY KEY NOT NULL,
     river_id   int REFERENCES rivers(id),
     name       VARCHAR(255),
-    kind       int,
+    kind       int, -- 1 BfG / 2 Land / 3 Sonstige
+    sectie     int, -- 1 stromführend / 2 stromspeichernd
+    sobek      int, -- 1 Flussschlauch / 2 Uferbank / 3 Überflutungsbereich
     path       VARCHAR(256)
 );
 SELECT AddGeometryColumn('hydr_boundaries','geom',31467,'LINESTRING',3);
@@ -259,7 +260,9 @@
     id         int PRIMARY KEY NOT NULL,
     river_id   int REFERENCES rivers(id),
     name       VARCHAR(255),
-    kind       int,
+    kind       int, -- 1 BfG / 2 Land / 3 Sonstige
+    sectie     int, -- 1 Flussschlauch / 2 Uferbank / 3 Überflutungsbereich
+    sobek      int, -- 1 stromführend / 2 stromspeichernd
     path       VARCHAR(256)
 );
 SELECT AddGeometryColumn('hydr_boundaries_poly','geom',31467,'POLYGON',3);


More information about the Dive4elements-commits mailing list