comparison flys-backend/doc/schema/postgresql-spatial.sql @ 2363:a8f408fdf58c

Added model for 'hws' relation and synced postgis with oracle spatial schema. flys-backend/trunk@3200 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 09 Nov 2011 16:01:16 +0000
parents b8e01307c138
children 60532f75396b
comparison
equal deleted inserted replaced
2362:2649151c9500 2363:a8f408fdf58c
113 113
114 --Hydrologie/HW-Schutzanlagen/hws.shp 114 --Hydrologie/HW-Schutzanlagen/hws.shp
115 CREATE SEQUENCE HWS_ID_SEQ; 115 CREATE SEQUENCE HWS_ID_SEQ;
116 CREATE TABLE hws ( 116 CREATE TABLE hws (
117 id int PRIMARY KEY NOT NULL, 117 id int PRIMARY KEY NOT NULL,
118 oid int,
119 river_id int REFERENCES rivers(id), 118 river_id int REFERENCES rivers(id),
120 hws_facility VARCHAR(256), 119 hws_facility VARCHAR(256),
121 typ VARCHAR(256) 120 type VARCHAR(256)
122 ); 121 );
123 SELECT AddGeometryColumn('hws','geom',31466,'LINESTRING',2); 122 SELECT AddGeometryColumn('hws','geom',31466,'LINESTRING',2);
124 ALTER TABLE hw ALTER COLUMN id SET DEFAULT NEXTVAL('HWS_ID_SEQ'); 123 ALTER TABLE hw ALTER COLUMN id SET DEFAULT NEXTVAL('HWS_ID_SEQ');
125 124
126 125

http://dive4elements.wald.intevation.org