CREATE TABLE IF NOT EXISTS 'gcp_master'
(
id_gcp INTEGER ,
name TEXT DEFAULT '',
notes TEXT DEFAULT '',
text TEXT DEFAULT '',
belongs_to_01 TEXT DEFAULT '',
belongs_to_02 TEXT DEFAULT '',
valid_since DATE DEFAULT '0001-01-01',
valid_until DATE DEFAULT '3000-01-01',
--> will be set by INSERT and UPDATE TRIGGERs
map_x DOUBLE DEFAULT 0,
--> will be set by INSERT and UPDATE TRIGGERs
map_y DOUBLE DEFAULT 0,
srid INTEGER DEFAULT 3068,
-- 0=general point
-- 1=Known Point
-- 20=bridge
-- 100-199=street interface type
--> 100=general
--> 101 = street_start
--> 102 = street end
--> 109 = nearest point
--> 110 = street intersection (street continues)
--> 111 = street corner intersection (NW,NE,SE,SW)
-- maps: Top/Left Corner of Map, these maps share common points
--> 201 = scale 1:1000 (K1)
--> 203 = scale 1:4000 (Straube)
--> 204 = scale 1:4000 (K4)
--> 205 = scale 1:5000 (K5)
--> 210 = scale 1:10000 (K10)
--> 700 = Historical Points
-- 9999=no text/unknown
-- 9998=delete
gcp_type INTEGER DEFAULT 0,
-- 0=tpc (Thin Plate Spline)
-- 1=1st order(affine) [precise]
-- 2nd order [less exact]
-- 3rd order [poor]
order_selected INTEGER DEFAULT 0,
gcp_enable INTEGER DEFAULT 1,
gcp_text TEXT DEFAULT '',
PRIMARY KEY (id_gcp)
);