GLE-Layer-Baumkataster-WIRO: Unterschied zwischen den Versionen
Aus kvwmap
Rahn (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „ <nowiki> SET @group_id = 1; SET @connection = 'user=xxxx password=xxxx dbname=kvwmapsp'; -- Layer 31 INSERT INTO layer (`Name`, `alias`, `Datentyp`, `Gruppe…“) |
Rahn (Diskussion | Beiträge) |
||
Zeile 3: | Zeile 3: | ||
SET @group_id = 1; | SET @group_id = 1; | ||
SET @connection = 'user=xxxx password=xxxx dbname=kvwmapsp'; | SET @connection = 'user=xxxx password=xxxx dbname=kvwmapsp'; | ||
+ | |||
+ | |||
+ | -- Layer 10 | ||
+ | INSERT INTO layer (`Name`, `alias`, `Datentyp`, `Gruppe`, `pfad`, `maintable`, `Data`, `schema`, `document_path`, `tileindex`, `tileitem`, `labelangleitem`, `labelitem`, `labelmaxscale`, `labelminscale`, `labelrequires`, `connection`, `printconnection`, `connectiontype`, `classitem`, `filteritem`, `tolerance`, `toleranceunits`, `epsg_code`, `template`, `queryable`, `transparency`, `drawingorder`, `minscale`, `maxscale`, `offsite`, `ows_srs`, `wms_name`, `wms_server_version`, `wms_format`, `wms_connectiontimeout`, `wms_auth_username`, `wms_auth_password`, `wfs_geom`, `selectiontype`, `querymap`, `logconsume`, `processing`, `kurzbeschreibung`, `datenherr`, `metalink`, `privileg`, `trigger_function`, `sync`) VALUES ('Wirtschaftseinheiten', '', '2', @group_id, 'SELECT nummer, id AS wirtschaftseinheit_id, organisationseinheit,abteilung_id,stadtteil,stadtteil_id,adressen,gemarkungen,flurbezirke,fluren,\'\' AS flurstueckseinheiten,flurstuecke,grundbuecher,lgbnummern,nutzungsarten,eigentuemer,abschnitte,unummern,zaehlernenner,flaeche,ROUND(ST_Area(the_geom_25833)) AS gerechnete_flaeche, checked, mit_teilflaeche, wohneigentum, uebergeordnet,bemerkungen, anzahl_baeume,\'\' AS baeumederwirtschaftseinheiten,\'\' AS baeumeanderederwirtschaftseinheiten, \'\' AS freiflaechenderwirtschaftseinheiten, updated_at, updated_from, \'\' AS baeumemitletzterkontrolle, the_geom_25833 FROM wirtschaftseinheiten WHERE 1=1', 'wirtschaftseinheiten', 'the_geom_25833 from grunddaten.wirtschaftseinheiten', 'grunddaten', '', '', '', '', '', '0', '0', '', @connection, '', '6', 'id', '', '3', 'meters', '25833', '', '1', NULL, NULL, NULL, NULL, '', 'EPSG:25833', '', '1.1.0', 'image/png', '60', '', '', '', '', '1', '0', '', '', '', '', '0', '', '0'); | ||
+ | SET @last_layer_id10=LAST_INSERT_ID(); | ||
+ | |||
+ | -- Attribut abschnitte des Layers 10 | ||
+ | INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'abschnitte', 'abschnitte', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'text', '', '', '1', NULL, NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '16', '0', '0'); | ||
+ | |||
+ | -- Attribut abteilung_id des Layers 10 | ||
+ | INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'abteilung_id', 'abteilung_id', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'int4', '', '', '1', '32', '0', '', 'Auswahlfeld', 'select id as value, name_kurz||\' - \'||name as output from grunddaten.abteilungen order by name_kurz', 'Abteilung', '', '', '', '', '', '', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '3', '0', '0'); | ||
+ | |||
+ | -- Attribut adressen des Layers 10 | ||
+ | INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'adressen', 'adressen', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'text', '', '', '1', NULL, NULL, '', 'Text', '', 'Adresse', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '6', '0', '0'); | ||
+ | |||
+ | -- Attribut anzahl_baeume des Layers 10 | ||
+ | INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'anzahl_baeume', 'anzahl_baeume', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'int4', '', '', '1', '32', '0', '', 'Text', '', 'Anzahl Bäume', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '26', '0', '0'); | ||
+ | |||
+ | -- Attribut baeumeanderederwirtschaftseinheiten des Layers 10 | ||
+ | INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'baeumeanderederwirtschaftseinheiten', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'SubFormEmbeddedPK', '31,wirtschaftseinheit_id,beschriftung;embedded', 'Bäume (andere)', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '28', '0', '0'); | ||
+ | |||
+ | -- Attribut baeumederwirtschaftseinheiten des Layers 10 | ||
+ | INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'baeumederwirtschaftseinheiten', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'SubFormEmbeddedPK', '4,wirtschaftseinheit_id,beschriftung;embedded', 'Bäume', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '27', '0', '0'); | ||
+ | |||
+ | -- Attribut baeumemitletzterkontrolle des Layers 10 | ||
+ | INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'baeumemitletzterkontrolle', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'SubFormEmbeddedPK', '34,wirtschaftseinheit_id,beschriftung;embedded', 'kontrollierte Bäume', '', '', '', '', '', 'Letzte Kontrollen;collapsed', '0', '0', NULL, '0', '-1', NULL, '1', '', '', '', '32', '0', '0'); | ||
+ | |||
+ | -- Attribut bemerkungen des Layers 10 | ||
+ | INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'bemerkungen', 'bemerkungen', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'text', '', '', '1', NULL, NULL, '', 'Textfeld', '', 'Bemerkungen', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '25', '0', '0'); | ||
+ | |||
+ | -- Attribut checked des Layers 10 | ||
+ | INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'checked', 'checked', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'varchar', '', '', '0', '255', NULL, 'SELECT 1', 'Auswahlfeld', 'select \'1\' as value, \'vollständig\' as output UNION select \'2\' as value, \'nicht vollständig\' as output', '', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '21', '0', '0'); | ||
+ | |||
+ | -- Attribut eigentuemer des Layers 10 | ||
+ | INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'eigentuemer', 'eigentuemer', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'text', '', '', '1', NULL, NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '15', '0', '0'); | ||
+ | |||
+ | -- Attribut flaeche des Layers 10 | ||
+ | INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'flaeche', 'flaeche', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'float8', '', '', '1', '53', NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '19', '0', '0'); | ||
+ | |||
+ | -- Attribut flurbezirke des Layers 10 | ||
+ | INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'flurbezirke', 'flurbezirke', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'text', '', '', '1', NULL, NULL, '', 'Text', '', 'Gemarkung (mehrere)', '', '', '', '', 'Wenn WIE in mehreren Gemarkungen liegt: Feld ausfüllen (Schlüssel,Schlüssel)', '', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '8', '0', '0'); | ||
+ | |||
+ | -- Attribut fluren des Layers 10 | ||
+ | INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'fluren', 'fluren', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'text', '', '', '1', NULL, NULL, '', 'Text', '', 'Flur', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '9', '0', '0'); | ||
+ | |||
+ | -- Attribut flurstuecke des Layers 10 | ||
+ | INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'flurstuecke', 'flurstuecke', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'text', '', '', '1', NULL, NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '11', '0', '0'); | ||
+ | |||
+ | -- Attribut flurstueckseinheiten des Layers 10 | ||
+ | INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'flurstueckseinheiten', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'SubFormEmbeddedPK', '19,wirtschaftseinheit_id,beschriftung;embedded', 'Flurstückseinheiten', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '10', '0', '0'); | ||
+ | |||
+ | -- Attribut freiflaechenderwirtschaftseinheiten des Layers 10 | ||
+ | INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'freiflaechenderwirtschaftseinheiten', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'SubFormEmbeddedPK', '36,wirtschaftseinheit_id,flaeche m² typ_id;embedded', 'Freiflächen', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '29', '0', '0'); | ||
+ | |||
+ | -- Attribut gemarkungen des Layers 10 | ||
+ | INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'gemarkungen', 'gemarkungen', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'text', '', '', '1', NULL, NULL, '', 'Auswahlfeld', 'select schluessel as value, bezeichnung||\' - \'||schluessel as output from grunddaten.gemarkungen order by bezeichnung', 'Gemarkung (einzelne)', '', '', '', '', 'Wenn WIE in mehreren Gemarkungen liegt: Feld leer lassen', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '7', '0', '0'); | ||
+ | |||
+ | -- Attribut gerechnete_flaeche des Layers 10 | ||
+ | INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'gerechnete_flaeche', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '20', '0', '0'); | ||
+ | |||
+ | -- Attribut grundbuecher des Layers 10 | ||
+ | INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'grundbuecher', 'grundbuecher', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'text', '', '', '1', NULL, NULL, '', 'Textfeld', '', 'Grundbücher', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '12', '0', '0'); | ||
+ | |||
+ | -- Attribut lgbnummern des Layers 10 | ||
+ | INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'lgbnummern', 'lgbnummern', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'text', '', '', '1', NULL, NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '13', '0', '0'); | ||
+ | |||
+ | -- Attribut mit_teilflaeche des Layers 10 | ||
+ | INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'mit_teilflaeche', 'mit_teilflaeche', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'int2', '', '', '0', '16', '0', 'SELECT 0', 'Auswahlfeld', 'select \'0\' as value, \'nein\' as output UNION select \'1\' as value, \'ja\' as output', 'Mit_Teilfläche', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '22', '0', '0'); | ||
+ | |||
+ | -- Attribut nummer des Layers 10 | ||
+ | INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'nummer', 'nummer', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'varchar', '', '', '1', '15', NULL, '', 'Text', '', 'WIE-Nummer', '', '', '', '', '', '', '0', '0', NULL, '0', '0', '1', '1', '', '', '', '0', '0', '0'); | ||
+ | |||
+ | -- Attribut nutzungsarten des Layers 10 | ||
+ | INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'nutzungsarten', 'nutzungsarten', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'text', '', '', '1', NULL, NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '14', '0', '0'); | ||
+ | |||
+ | -- Attribut organisationseinheit des Layers 10 | ||
+ | INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'organisationseinheit', 'organisationseinheit', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'varchar', '', '', '1', '10', NULL, '', 'Auswahlfeld', 'select id as value, id||\' - \'||name as output from grunddaten.kundencenter order by id', 'KundenCenter', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '2', '0', '0'); | ||
+ | |||
+ | -- Attribut stadtteil des Layers 10 | ||
+ | INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'stadtteil', 'stadtteil', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'varchar', '', '', '1', '24', NULL, '', 'Text', '', 'Stadtteil (alt)', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '4', '0', '0'); | ||
+ | |||
+ | -- Attribut stadtteil_id des Layers 10 | ||
+ | INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'stadtteil_id', 'stadtteil_id', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'int4', '', '', '1', '32', '0', '', 'Auswahlfeld', 'select id as value, name as output from grunddaten.stadtteil order by name', 'Stadtteil', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '5', '0', '0'); | ||
+ | |||
+ | -- Attribut the_geom_25833 des Layers 10 | ||
+ | INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'the_geom_25833', 'the_geom_25833', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'geometry', 'MULTIPOLYGON', '', '1', NULL, NULL, '', 'Geometrie', '', 'Geometrie', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '33', '0', '0'); | ||
+ | |||
+ | -- Attribut uebergeordnet des Layers 10 | ||
+ | INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'uebergeordnet', 'uebergeordnet', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'bool', '', '', '0', NULL, NULL, 'SELECT false', 'Auswahlfeld', 'select \'f\' as value, \'nein\' as output UNION select \'t\' as value, \'ja\' as output', 'Übergeordnete_Einheit', '', '', '', '', '', '', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '24', '0', '0'); | ||
+ | |||
+ | -- Attribut unummern des Layers 10 | ||
+ | INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'unummern', 'unummern', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'text', '', '', '1', NULL, NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '17', '0', '0'); | ||
+ | |||
+ | -- Attribut updated_at des Layers 10 | ||
+ | INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'updated_at', 'updated_at', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'timestamp', '', '', '1', NULL, NULL, '', 'Time', '', 'Aktualisiert am', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '30', '0', '0'); | ||
+ | |||
+ | -- Attribut updated_from des Layers 10 | ||
+ | INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'updated_from', 'updated_from', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'varchar', '', '', '1', '100', NULL, '', 'User', '', 'Aktualisiert von', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '31', '0', '0'); | ||
+ | |||
+ | -- Attribut wirtschaftseinheit_id des Layers 10 | ||
+ | INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'wirtschaftseinheit_id', 'id', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'int4', '', '', '1', '32', '0', '', 'Text', '', 'ID', '', '', '', '', '', '', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '1', '0', '0'); | ||
+ | |||
+ | -- Attribut wohneigentum des Layers 10 | ||
+ | INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'wohneigentum', 'wohneigentum', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'int2', '', '', '0', '16', '0', 'SELECT 0', 'Auswahlfeld', 'select \'0\' as value, \'nein\' as output UNION select \'1\' as value, \'ja\' as output', 'Mit_Wohneigentum', '', '', '', '', '', '', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '23', '0', '0'); | ||
+ | |||
+ | -- Attribut zaehlernenner des Layers 10 | ||
+ | INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'zaehlernenner', 'zaehlernenner', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'text', '', '', '1', NULL, NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '18', '0', '0'); | ||
+ | |||
+ | -- Class 10 des Layers 10 | ||
+ | INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('W Wohnungsbewirtschaftung', @last_layer_id10, '(\'[checked]\' = \'1\' AND \'[wohneigentum]\' = \'0\' AND \'[mit_teilflaeche]\' = \'0\' AND \'[abteilung_id]\' =\'1\')', '1', ''); | ||
+ | SET @last_class_id=LAST_INSERT_ID(); | ||
+ | |||
+ | -- Style 1 der Class 10 | ||
+ | INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, '', '3', '172 69 12', '', '0 0 0', '', '', '', NULL, NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); | ||
+ | SET @last_style_id=LAST_INSERT_ID(); | ||
+ | -- Zuordnung Style 1 zu Class 10 | ||
+ | INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 0); | ||
+ | |||
+ | -- Style 54 der Class 10 | ||
+ | INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, '', '1', '-1 -1 -1', '', '82 36 16', '', '', '', NULL, NULL, NULL, NULL, NULL, '360', '', NULL, '2', '2', '2', NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); | ||
+ | SET @last_style_id=LAST_INSERT_ID(); | ||
+ | -- Zuordnung Style 54 zu Class 10 | ||
+ | INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 1); | ||
+ | |||
+ | -- Class 204 des Layers 10 | ||
+ | INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('WIE mit Teilfläche', @last_layer_id10, '(\'[checked]\' = \'1\' AND \'[wohneigentum]\' = \'0\' AND \'[mit_teilflaeche]\' = \'1\')', '2', ''); | ||
+ | SET @last_class_id=LAST_INSERT_ID(); | ||
+ | |||
+ | -- Style 220 der Class 204 | ||
+ | INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, '', '3', '0 0 255', '', '0 0 0', '', '', '', NULL, NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); | ||
+ | SET @last_style_id=LAST_INSERT_ID(); | ||
+ | -- Zuordnung Style 220 zu Class 204 | ||
+ | INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 0); | ||
+ | |||
+ | -- Style 54 der Class 204 | ||
+ | INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, '', '1', '-1 -1 -1', '', '82 36 16', '', '', '', NULL, NULL, NULL, NULL, NULL, '360', '', NULL, '2', '2', '2', NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); | ||
+ | SET @last_style_id=LAST_INSERT_ID(); | ||
+ | -- Zuordnung Style 54 zu Class 204 | ||
+ | INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 1); | ||
+ | |||
+ | -- Class 205 des Layers 10 | ||
+ | INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('WIE mit Wohneigentum', @last_layer_id10, '(\'[wohneigentum]\' = \'1\' )', '3', ''); | ||
+ | SET @last_class_id=LAST_INSERT_ID(); | ||
+ | |||
+ | -- Style 221 der Class 205 | ||
+ | INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, '', '1', '0 255 0', '', '', '', '', '', NULL, NULL, '1', NULL, NULL, '360', '', NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); | ||
+ | SET @last_style_id=LAST_INSERT_ID(); | ||
+ | -- Zuordnung Style 221 zu Class 205 | ||
+ | INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 0); | ||
+ | |||
+ | -- Style 54 der Class 205 | ||
+ | INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, '', '1', '-1 -1 -1', '', '82 36 16', '', '', '', NULL, NULL, NULL, NULL, NULL, '360', '', NULL, '2', '2', '2', NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); | ||
+ | SET @last_style_id=LAST_INSERT_ID(); | ||
+ | -- Zuordnung Style 54 zu Class 205 | ||
+ | INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 1); | ||
+ | |||
+ | -- Class 1682 des Layers 10 | ||
+ | INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('GV Garagenverein', @last_layer_id10, '(\'[checked]\' = \'1\' AND \'[wohneigentum]\' = \'0\' AND \'[mit_teilflaeche]\' = \'0\' AND \'[abteilung_id]\' =\'6\')', '8', ''); | ||
+ | SET @last_class_id=LAST_INSERT_ID(); | ||
+ | |||
+ | -- Style 1 der Class 1682 | ||
+ | INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, '', '3', '172 69 12', '', '0 0 0', '', '', '', NULL, NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); | ||
+ | SET @last_style_id=LAST_INSERT_ID(); | ||
+ | -- Zuordnung Style 1 zu Class 1682 | ||
+ | INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 0); | ||
+ | |||
+ | -- Style 54 der Class 1682 | ||
+ | INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, '', '1', '-1 -1 -1', '', '82 36 16', '', '', '', NULL, NULL, NULL, NULL, NULL, '360', '', NULL, '2', '2', '2', NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); | ||
+ | SET @last_style_id=LAST_INSERT_ID(); | ||
+ | -- Zuordnung Style 54 zu Class 1682 | ||
+ | INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 1); | ||
+ | |||
+ | -- Class 1681 des Layers 10 | ||
+ | INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('OS Sportstätten', @last_layer_id10, '(\'[checked]\' = \'1\' AND \'[wohneigentum]\' = \'0\' AND \'[mit_teilflaeche]\' = \'0\' AND \'[abteilung_id]\' =\'5\')', '7', ''); | ||
+ | SET @last_class_id=LAST_INSERT_ID(); | ||
+ | |||
+ | -- Style 1 der Class 1681 | ||
+ | INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, '', '3', '172 69 12', '', '0 0 0', '', '', '', NULL, NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); | ||
+ | SET @last_style_id=LAST_INSERT_ID(); | ||
+ | -- Zuordnung Style 1 zu Class 1681 | ||
+ | INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 0); | ||
+ | |||
+ | -- Style 54 der Class 1681 | ||
+ | INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, '', '1', '-1 -1 -1', '', '82 36 16', '', '', '', NULL, NULL, NULL, NULL, NULL, '360', '', NULL, '2', '2', '2', NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); | ||
+ | SET @last_style_id=LAST_INSERT_ID(); | ||
+ | -- Zuordnung Style 54 zu Class 1681 | ||
+ | INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 1); | ||
+ | |||
+ | -- Class 1680 des Layers 10 | ||
+ | INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('OW WIROtel', @last_layer_id10, '(\'[checked]\' = \'1\' AND \'[wohneigentum]\' = \'0\' AND \'[mit_teilflaeche]\' = \'0\' AND \'[abteilung_id]\' =\'4\')', '6', ''); | ||
+ | SET @last_class_id=LAST_INSERT_ID(); | ||
+ | |||
+ | -- Style 1 der Class 1680 | ||
+ | INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, '', '3', '172 69 12', '', '0 0 0', '', '', '', NULL, NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); | ||
+ | SET @last_style_id=LAST_INSERT_ID(); | ||
+ | -- Zuordnung Style 1 zu Class 1680 | ||
+ | INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 0); | ||
+ | |||
+ | -- Style 54 der Class 1680 | ||
+ | INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, '', '1', '-1 -1 -1', '', '82 36 16', '', '', '', NULL, NULL, NULL, NULL, NULL, '360', '', NULL, '2', '2', '2', NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); | ||
+ | SET @last_style_id=LAST_INSERT_ID(); | ||
+ | -- Zuordnung Style 54 zu Class 1680 | ||
+ | INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 1); | ||
+ | |||
+ | -- Class 1678 des Layers 10 | ||
+ | INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('WK Gewerberaumvermietung', @last_layer_id10, '(\'[checked]\' = \'1\' AND \'[wohneigentum]\' = \'0\' AND \'[mit_teilflaeche]\' = \'0\' AND \'[abteilung_id]\' =\'2\')', '4', ''); | ||
+ | SET @last_class_id=LAST_INSERT_ID(); | ||
+ | |||
+ | -- Style 54 der Class 1678 | ||
+ | INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, '', '1', '-1 -1 -1', '', '82 36 16', '', '', '', NULL, NULL, NULL, NULL, NULL, '360', '', NULL, '2', '2', '2', NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); | ||
+ | SET @last_style_id=LAST_INSERT_ID(); | ||
+ | -- Zuordnung Style 54 zu Class 1678 | ||
+ | INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 0); | ||
+ | |||
+ | -- Style 1 der Class 1678 | ||
+ | INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, '', '3', '172 69 12', '', '0 0 0', '', '', '', NULL, NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); | ||
+ | SET @last_style_id=LAST_INSERT_ID(); | ||
+ | -- Zuordnung Style 1 zu Class 1678 | ||
+ | INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 1); | ||
+ | |||
+ | -- Class 1679 des Layers 10 | ||
+ | INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('IG Grundstückswesen', @last_layer_id10, '(\'[checked]\' = \'1\' AND \'[wohneigentum]\' = \'0\' AND \'[mit_teilflaeche]\' = \'0\' AND \'[abteilung_id]\' =\'3\')', '5', ''); | ||
+ | SET @last_class_id=LAST_INSERT_ID(); | ||
+ | |||
+ | -- Style 1 der Class 1679 | ||
+ | INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, '', '3', '172 69 12', '', '0 0 0', '', '', '', NULL, NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); | ||
+ | SET @last_style_id=LAST_INSERT_ID(); | ||
+ | -- Zuordnung Style 1 zu Class 1679 | ||
+ | INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 0); | ||
+ | |||
+ | -- Style 54 der Class 1679 | ||
+ | INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, '', '1', '-1 -1 -1', '', '82 36 16', '', '', '', NULL, NULL, NULL, NULL, NULL, '360', '', NULL, '2', '2', '2', NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); | ||
+ | SET @last_style_id=LAST_INSERT_ID(); | ||
+ | -- Zuordnung Style 54 zu Class 1679 | ||
+ | INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 1); | ||
+ | |||
-- Layer 31 | -- Layer 31 |
Aktuelle Version vom 12. September 2019, 14:10 Uhr
SET @group_id = 1; SET @connection = 'user=xxxx password=xxxx dbname=kvwmapsp'; -- Layer 10 INSERT INTO layer (`Name`, `alias`, `Datentyp`, `Gruppe`, `pfad`, `maintable`, `Data`, `schema`, `document_path`, `tileindex`, `tileitem`, `labelangleitem`, `labelitem`, `labelmaxscale`, `labelminscale`, `labelrequires`, `connection`, `printconnection`, `connectiontype`, `classitem`, `filteritem`, `tolerance`, `toleranceunits`, `epsg_code`, `template`, `queryable`, `transparency`, `drawingorder`, `minscale`, `maxscale`, `offsite`, `ows_srs`, `wms_name`, `wms_server_version`, `wms_format`, `wms_connectiontimeout`, `wms_auth_username`, `wms_auth_password`, `wfs_geom`, `selectiontype`, `querymap`, `logconsume`, `processing`, `kurzbeschreibung`, `datenherr`, `metalink`, `privileg`, `trigger_function`, `sync`) VALUES ('Wirtschaftseinheiten', '', '2', @group_id, 'SELECT nummer, id AS wirtschaftseinheit_id, organisationseinheit,abteilung_id,stadtteil,stadtteil_id,adressen,gemarkungen,flurbezirke,fluren,\'\' AS flurstueckseinheiten,flurstuecke,grundbuecher,lgbnummern,nutzungsarten,eigentuemer,abschnitte,unummern,zaehlernenner,flaeche,ROUND(ST_Area(the_geom_25833)) AS gerechnete_flaeche, checked, mit_teilflaeche, wohneigentum, uebergeordnet,bemerkungen, anzahl_baeume,\'\' AS baeumederwirtschaftseinheiten,\'\' AS baeumeanderederwirtschaftseinheiten, \'\' AS freiflaechenderwirtschaftseinheiten, updated_at, updated_from, \'\' AS baeumemitletzterkontrolle, the_geom_25833 FROM wirtschaftseinheiten WHERE 1=1', 'wirtschaftseinheiten', 'the_geom_25833 from grunddaten.wirtschaftseinheiten', 'grunddaten', '', '', '', '', '', '0', '0', '', @connection, '', '6', 'id', '', '3', 'meters', '25833', '', '1', NULL, NULL, NULL, NULL, '', 'EPSG:25833', '', '1.1.0', 'image/png', '60', '', '', '', '', '1', '0', '', '', '', '', '0', '', '0'); SET @last_layer_id10=LAST_INSERT_ID(); -- Attribut abschnitte des Layers 10 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'abschnitte', 'abschnitte', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'text', '', '', '1', NULL, NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '16', '0', '0'); -- Attribut abteilung_id des Layers 10 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'abteilung_id', 'abteilung_id', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'int4', '', '', '1', '32', '0', '', 'Auswahlfeld', 'select id as value, name_kurz||\' - \'||name as output from grunddaten.abteilungen order by name_kurz', 'Abteilung', '', '', '', '', '', '', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '3', '0', '0'); -- Attribut adressen des Layers 10 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'adressen', 'adressen', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'text', '', '', '1', NULL, NULL, '', 'Text', '', 'Adresse', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '6', '0', '0'); -- Attribut anzahl_baeume des Layers 10 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'anzahl_baeume', 'anzahl_baeume', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'int4', '', '', '1', '32', '0', '', 'Text', '', 'Anzahl Bäume', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '26', '0', '0'); -- Attribut baeumeanderederwirtschaftseinheiten des Layers 10 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'baeumeanderederwirtschaftseinheiten', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'SubFormEmbeddedPK', '31,wirtschaftseinheit_id,beschriftung;embedded', 'Bäume (andere)', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '28', '0', '0'); -- Attribut baeumederwirtschaftseinheiten des Layers 10 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'baeumederwirtschaftseinheiten', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'SubFormEmbeddedPK', '4,wirtschaftseinheit_id,beschriftung;embedded', 'Bäume', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '27', '0', '0'); -- Attribut baeumemitletzterkontrolle des Layers 10 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'baeumemitletzterkontrolle', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'SubFormEmbeddedPK', '34,wirtschaftseinheit_id,beschriftung;embedded', 'kontrollierte Bäume', '', '', '', '', '', 'Letzte Kontrollen;collapsed', '0', '0', NULL, '0', '-1', NULL, '1', '', '', '', '32', '0', '0'); -- Attribut bemerkungen des Layers 10 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'bemerkungen', 'bemerkungen', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'text', '', '', '1', NULL, NULL, '', 'Textfeld', '', 'Bemerkungen', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '25', '0', '0'); -- Attribut checked des Layers 10 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'checked', 'checked', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'varchar', '', '', '0', '255', NULL, 'SELECT 1', 'Auswahlfeld', 'select \'1\' as value, \'vollständig\' as output UNION select \'2\' as value, \'nicht vollständig\' as output', '', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '21', '0', '0'); -- Attribut eigentuemer des Layers 10 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'eigentuemer', 'eigentuemer', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'text', '', '', '1', NULL, NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '15', '0', '0'); -- Attribut flaeche des Layers 10 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'flaeche', 'flaeche', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'float8', '', '', '1', '53', NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '19', '0', '0'); -- Attribut flurbezirke des Layers 10 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'flurbezirke', 'flurbezirke', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'text', '', '', '1', NULL, NULL, '', 'Text', '', 'Gemarkung (mehrere)', '', '', '', '', 'Wenn WIE in mehreren Gemarkungen liegt: Feld ausfüllen (Schlüssel,Schlüssel)', '', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '8', '0', '0'); -- Attribut fluren des Layers 10 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'fluren', 'fluren', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'text', '', '', '1', NULL, NULL, '', 'Text', '', 'Flur', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '9', '0', '0'); -- Attribut flurstuecke des Layers 10 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'flurstuecke', 'flurstuecke', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'text', '', '', '1', NULL, NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '11', '0', '0'); -- Attribut flurstueckseinheiten des Layers 10 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'flurstueckseinheiten', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'SubFormEmbeddedPK', '19,wirtschaftseinheit_id,beschriftung;embedded', 'Flurstückseinheiten', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '10', '0', '0'); -- Attribut freiflaechenderwirtschaftseinheiten des Layers 10 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'freiflaechenderwirtschaftseinheiten', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'SubFormEmbeddedPK', '36,wirtschaftseinheit_id,flaeche m² typ_id;embedded', 'Freiflächen', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '29', '0', '0'); -- Attribut gemarkungen des Layers 10 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'gemarkungen', 'gemarkungen', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'text', '', '', '1', NULL, NULL, '', 'Auswahlfeld', 'select schluessel as value, bezeichnung||\' - \'||schluessel as output from grunddaten.gemarkungen order by bezeichnung', 'Gemarkung (einzelne)', '', '', '', '', 'Wenn WIE in mehreren Gemarkungen liegt: Feld leer lassen', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '7', '0', '0'); -- Attribut gerechnete_flaeche des Layers 10 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'gerechnete_flaeche', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '20', '0', '0'); -- Attribut grundbuecher des Layers 10 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'grundbuecher', 'grundbuecher', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'text', '', '', '1', NULL, NULL, '', 'Textfeld', '', 'Grundbücher', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '12', '0', '0'); -- Attribut lgbnummern des Layers 10 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'lgbnummern', 'lgbnummern', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'text', '', '', '1', NULL, NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '13', '0', '0'); -- Attribut mit_teilflaeche des Layers 10 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'mit_teilflaeche', 'mit_teilflaeche', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'int2', '', '', '0', '16', '0', 'SELECT 0', 'Auswahlfeld', 'select \'0\' as value, \'nein\' as output UNION select \'1\' as value, \'ja\' as output', 'Mit_Teilfläche', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '22', '0', '0'); -- Attribut nummer des Layers 10 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'nummer', 'nummer', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'varchar', '', '', '1', '15', NULL, '', 'Text', '', 'WIE-Nummer', '', '', '', '', '', '', '0', '0', NULL, '0', '0', '1', '1', '', '', '', '0', '0', '0'); -- Attribut nutzungsarten des Layers 10 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'nutzungsarten', 'nutzungsarten', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'text', '', '', '1', NULL, NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '14', '0', '0'); -- Attribut organisationseinheit des Layers 10 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'organisationseinheit', 'organisationseinheit', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'varchar', '', '', '1', '10', NULL, '', 'Auswahlfeld', 'select id as value, id||\' - \'||name as output from grunddaten.kundencenter order by id', 'KundenCenter', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '2', '0', '0'); -- Attribut stadtteil des Layers 10 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'stadtteil', 'stadtteil', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'varchar', '', '', '1', '24', NULL, '', 'Text', '', 'Stadtteil (alt)', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '4', '0', '0'); -- Attribut stadtteil_id des Layers 10 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'stadtteil_id', 'stadtteil_id', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'int4', '', '', '1', '32', '0', '', 'Auswahlfeld', 'select id as value, name as output from grunddaten.stadtteil order by name', 'Stadtteil', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '5', '0', '0'); -- Attribut the_geom_25833 des Layers 10 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'the_geom_25833', 'the_geom_25833', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'geometry', 'MULTIPOLYGON', '', '1', NULL, NULL, '', 'Geometrie', '', 'Geometrie', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '33', '0', '0'); -- Attribut uebergeordnet des Layers 10 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'uebergeordnet', 'uebergeordnet', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'bool', '', '', '0', NULL, NULL, 'SELECT false', 'Auswahlfeld', 'select \'f\' as value, \'nein\' as output UNION select \'t\' as value, \'ja\' as output', 'Übergeordnete_Einheit', '', '', '', '', '', '', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '24', '0', '0'); -- Attribut unummern des Layers 10 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'unummern', 'unummern', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'text', '', '', '1', NULL, NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '17', '0', '0'); -- Attribut updated_at des Layers 10 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'updated_at', 'updated_at', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'timestamp', '', '', '1', NULL, NULL, '', 'Time', '', 'Aktualisiert am', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '30', '0', '0'); -- Attribut updated_from des Layers 10 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'updated_from', 'updated_from', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'varchar', '', '', '1', '100', NULL, '', 'User', '', 'Aktualisiert von', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '31', '0', '0'); -- Attribut wirtschaftseinheit_id des Layers 10 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'wirtschaftseinheit_id', 'id', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'int4', '', '', '1', '32', '0', '', 'Text', '', 'ID', '', '', '', '', '', '', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '1', '0', '0'); -- Attribut wohneigentum des Layers 10 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'wohneigentum', 'wohneigentum', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'int2', '', '', '0', '16', '0', 'SELECT 0', 'Auswahlfeld', 'select \'0\' as value, \'nein\' as output UNION select \'1\' as value, \'ja\' as output', 'Mit_Wohneigentum', '', '', '', '', '', '', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '23', '0', '0'); -- Attribut zaehlernenner des Layers 10 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id10, 'zaehlernenner', 'zaehlernenner', 'wirtschaftseinheiten', 'wirtschaftseinheiten', 'text', '', '', '1', NULL, NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '18', '0', '0'); -- Class 10 des Layers 10 INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('W Wohnungsbewirtschaftung', @last_layer_id10, '(\'[checked]\' = \'1\' AND \'[wohneigentum]\' = \'0\' AND \'[mit_teilflaeche]\' = \'0\' AND \'[abteilung_id]\' =\'1\')', '1', ''); SET @last_class_id=LAST_INSERT_ID(); -- Style 1 der Class 10 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, '', '3', '172 69 12', '', '0 0 0', '', '', '', NULL, NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 1 zu Class 10 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 0); -- Style 54 der Class 10 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, '', '1', '-1 -1 -1', '', '82 36 16', '', '', '', NULL, NULL, NULL, NULL, NULL, '360', '', NULL, '2', '2', '2', NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 54 zu Class 10 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 1); -- Class 204 des Layers 10 INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('WIE mit Teilfläche', @last_layer_id10, '(\'[checked]\' = \'1\' AND \'[wohneigentum]\' = \'0\' AND \'[mit_teilflaeche]\' = \'1\')', '2', ''); SET @last_class_id=LAST_INSERT_ID(); -- Style 220 der Class 204 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, '', '3', '0 0 255', '', '0 0 0', '', '', '', NULL, NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 220 zu Class 204 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 0); -- Style 54 der Class 204 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, '', '1', '-1 -1 -1', '', '82 36 16', '', '', '', NULL, NULL, NULL, NULL, NULL, '360', '', NULL, '2', '2', '2', NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 54 zu Class 204 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 1); -- Class 205 des Layers 10 INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('WIE mit Wohneigentum', @last_layer_id10, '(\'[wohneigentum]\' = \'1\' )', '3', ''); SET @last_class_id=LAST_INSERT_ID(); -- Style 221 der Class 205 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, '', '1', '0 255 0', '', '', '', '', '', NULL, NULL, '1', NULL, NULL, '360', '', NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 221 zu Class 205 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 0); -- Style 54 der Class 205 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, '', '1', '-1 -1 -1', '', '82 36 16', '', '', '', NULL, NULL, NULL, NULL, NULL, '360', '', NULL, '2', '2', '2', NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 54 zu Class 205 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 1); -- Class 1682 des Layers 10 INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('GV Garagenverein', @last_layer_id10, '(\'[checked]\' = \'1\' AND \'[wohneigentum]\' = \'0\' AND \'[mit_teilflaeche]\' = \'0\' AND \'[abteilung_id]\' =\'6\')', '8', ''); SET @last_class_id=LAST_INSERT_ID(); -- Style 1 der Class 1682 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, '', '3', '172 69 12', '', '0 0 0', '', '', '', NULL, NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 1 zu Class 1682 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 0); -- Style 54 der Class 1682 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, '', '1', '-1 -1 -1', '', '82 36 16', '', '', '', NULL, NULL, NULL, NULL, NULL, '360', '', NULL, '2', '2', '2', NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 54 zu Class 1682 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 1); -- Class 1681 des Layers 10 INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('OS Sportstätten', @last_layer_id10, '(\'[checked]\' = \'1\' AND \'[wohneigentum]\' = \'0\' AND \'[mit_teilflaeche]\' = \'0\' AND \'[abteilung_id]\' =\'5\')', '7', ''); SET @last_class_id=LAST_INSERT_ID(); -- Style 1 der Class 1681 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, '', '3', '172 69 12', '', '0 0 0', '', '', '', NULL, NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 1 zu Class 1681 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 0); -- Style 54 der Class 1681 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, '', '1', '-1 -1 -1', '', '82 36 16', '', '', '', NULL, NULL, NULL, NULL, NULL, '360', '', NULL, '2', '2', '2', NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 54 zu Class 1681 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 1); -- Class 1680 des Layers 10 INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('OW WIROtel', @last_layer_id10, '(\'[checked]\' = \'1\' AND \'[wohneigentum]\' = \'0\' AND \'[mit_teilflaeche]\' = \'0\' AND \'[abteilung_id]\' =\'4\')', '6', ''); SET @last_class_id=LAST_INSERT_ID(); -- Style 1 der Class 1680 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, '', '3', '172 69 12', '', '0 0 0', '', '', '', NULL, NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 1 zu Class 1680 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 0); -- Style 54 der Class 1680 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, '', '1', '-1 -1 -1', '', '82 36 16', '', '', '', NULL, NULL, NULL, NULL, NULL, '360', '', NULL, '2', '2', '2', NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 54 zu Class 1680 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 1); -- Class 1678 des Layers 10 INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('WK Gewerberaumvermietung', @last_layer_id10, '(\'[checked]\' = \'1\' AND \'[wohneigentum]\' = \'0\' AND \'[mit_teilflaeche]\' = \'0\' AND \'[abteilung_id]\' =\'2\')', '4', ''); SET @last_class_id=LAST_INSERT_ID(); -- Style 54 der Class 1678 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, '', '1', '-1 -1 -1', '', '82 36 16', '', '', '', NULL, NULL, NULL, NULL, NULL, '360', '', NULL, '2', '2', '2', NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 54 zu Class 1678 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 0); -- Style 1 der Class 1678 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, '', '3', '172 69 12', '', '0 0 0', '', '', '', NULL, NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 1 zu Class 1678 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 1); -- Class 1679 des Layers 10 INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('IG Grundstückswesen', @last_layer_id10, '(\'[checked]\' = \'1\' AND \'[wohneigentum]\' = \'0\' AND \'[mit_teilflaeche]\' = \'0\' AND \'[abteilung_id]\' =\'3\')', '5', ''); SET @last_class_id=LAST_INSERT_ID(); -- Style 1 der Class 1679 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, '', '3', '172 69 12', '', '0 0 0', '', '', '', NULL, NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 1 zu Class 1679 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 0); -- Style 54 der Class 1679 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, '', '1', '-1 -1 -1', '', '82 36 16', '', '', '', NULL, NULL, NULL, NULL, NULL, '360', '', NULL, '2', '2', '2', NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 54 zu Class 1679 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 1); -- Layer 31 INSERT INTO layer (`Name`, `alias`, `Datentyp`, `Gruppe`, `pfad`, `maintable`, `Data`, `schema`, `document_path`, `tileindex`, `tileitem`, `labelangleitem`, `labelitem`, `labelmaxscale`, `labelminscale`, `labelrequires`, `connection`, `printconnection`, `connectiontype`, `classitem`, `filteritem`, `tolerance`, `toleranceunits`, `epsg_code`, `template`, `queryable`, `transparency`, `drawingorder`, `minscale`, `maxscale`, `offsite`, `ows_srs`, `wms_name`, `wms_server_version`, `wms_format`, `wms_connectiontimeout`, `wms_auth_username`, `wms_auth_password`, `wfs_geom`, `selectiontype`, `querymap`, `logconsume`, `processing`, `kurzbeschreibung`, `datenherr`, `metalink`, `privileg`, `trigger_function`, `sync`) VALUES ('Bäume gefällt/entfernt', 'Baum gefällt/entfernt', '0', @group_id, 'SELECT beschriftung,nummer AS wirtschaftseinheit, grunddaten_baum.wirtschaftseinheit_id, abteilung_id, abteilung_kurz||\' - \'||abteilung as abteilung, grunddaten_baum.baumnummer, grunddaten_baum.baumid,grunddaten_baum.standort, grunddaten_baum.status, grunddaten_baum.status_bemerkung, grunddaten_baum.baumart, grunddaten_baum.baumart_spezial, sorte, sicherheitserwartung, kontrollintervall, \'anzeigen ->\' AS kontrolle, grunddaten_baum.bearbeiter, grunddaten_baum.kontroll_status, \'\' AS Logging, st_x(grunddaten_baum.the_geom_25833)||\' \'||st_y(grunddaten_baum.the_geom_25833) AS koordinaten, CASE WHEN grunddaten_baum.kontroll_status = 0 AND grunddaten_baum.status IN (\'gefaellt\',\'entfernt\') THEN \'gb_kontrolliert\' WHEN grunddaten_baum.kontroll_status = 1 AND grunddaten_baum.status IN (\'gefaellt\',\'entfernt\') THEN \'gb_nicht_kontrolliert\' WHEN grunddaten_baum.kontroll_status = 2 AND grunddaten_baum.status IN (\'gefaellt\',\'entfernt\') THEN \'gb_handlungsbedarf\' ELSE \'gb_sonstiges\' END AS style, grunddaten_baum.the_geom_25833 AS the_geom FROM grunddaten_baum, baeume2wirtschaftseinheiten, daten_baum_andere_mit_letzter_kontrolle WHERE (grunddaten_baum.baumid=baeume2wirtschaftseinheiten.wirtschaftseinheitbaumid)AND grunddaten_baum.baumid=daten_baum_andere_mit_letzter_kontrolle.baumid AND grunddaten_baum.status IN (\'gefaellt\',\'entfernt\') order by baumnummer', 'grunddaten_baum', 'the_geom_25833 from (SELECT oid, baumid, the_geom_25833, kontroll_status, status FROM baumkataster.grunddaten_baum WHERE wirtschaftseinheit_id IS NOT NULL) as foo using unique oid using srid=25833', 'baumkataster', '', '', '', '', '', '5002', '99', '', @connection, '', '6', 'baumid', 'baumid', '10', 'pixels', '25833', '', '1', '100', '91000', NULL, NULL, '', 'EPSG:25833', '', '1.1.0', 'image/png', '60', '', '', '', '', '1', '0', '', '', '', '', '0', '', '0'); SET @last_layer_id31=LAST_INSERT_ID(); -- Attribut abteilung des Layers 31 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id31, 'abteilung', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'Text', '', '', '', '', '', '', '', 'allgemein', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '4', NULL, '0'); -- Attribut abteilung_id des Layers 31 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id31, 'abteilung_id', 'abteilung_id', 'daten_baum_andere_mit_letzter_kontrolle', 'daten_baum_andere_mit_letzter_kontrolle', 'int4', '', '', '1', '32', '0', '', 'Text', '', '', '', '', '', '', '', 'allgemein', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '3', NULL, '0'); -- Attribut baumart des Layers 31 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id31, 'baumart', 'baumart', 'grunddaten_baum', 'grunddaten_baum', 'varchar', '', '', '1', '255', NULL, '', 'Auswahlfeld', 'select baumart_id as value, bezeichnung||\' - \'||bezeichnunglatein as output from baumkataster.baumarten order by bezeichnung', 'Baumart', '', '', '', '', '', 'allgemein', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '10', '0', '0'); -- Attribut baumart_spezial des Layers 31 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id31, 'baumart_spezial', 'baumart_spezial', 'grunddaten_baum', 'grunddaten_baum', 'varchar', '', '', '1', '255', NULL, '', 'Text', '', 'Baumart (sonstige)', '', '', '', '', '', 'allgemein', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '11', NULL, '0'); -- Attribut baumid des Layers 31 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id31, 'baumid', 'baumid', 'grunddaten_baum', 'grunddaten_baum', 'int4', '', 'PRIMARY KEY', '1', '32', '0', '', 'Text', '', 'Baum-ID', '', '', '', '', '', 'allgemein', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '6', '0', '0'); -- Attribut baumnummer des Layers 31 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id31, 'baumnummer', 'baumnummer', 'grunddaten_baum', 'grunddaten_baum', 'int4', '', '', '1', '32', '0', '', 'Text', '', 'Baum-Nummer', '', '', '', '', '', 'allgemein', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '5', '0', '0'); -- Attribut bearbeiter des Layers 31 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id31, 'bearbeiter', 'bearbeiter', 'grunddaten_baum', 'grunddaten_baum', 'varchar', '', '', '0', '100', NULL, '', 'Text', '', 'Bearbeiter', '', '', '', '', '', 'allgemein', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '16', NULL, '0'); -- Attribut beschriftung des Layers 31 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id31, 'beschriftung', 'beschriftung', 'daten_baum_andere_mit_letzter_kontrolle', 'daten_baum_andere_mit_letzter_kontrolle', 'text', '', '', '1', NULL, NULL, '', 'Text', '', '', '', '', '', '', '', 'allgemein', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '0', '0', '0'); -- Attribut kontrolle des Layers 31 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id31, 'kontrolle', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'SubFormEmbeddedPK', '5,baumid,beschriftung_kontrolle;no_new_window', 'Kontrolldaten', '', '', '', '', '', 'allgemein', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '15', '0', '0'); -- Attribut kontrollintervall des Layers 31 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id31, 'kontrollintervall', 'kontrollintervall', 'grunddaten_baum', 'grunddaten_baum', 'varchar', '', '', '1', '50', NULL, 'SELECT \'jährlich\'::character varying', 'Text', '', 'Kontrollintervall', '', '', '', '', '', 'allgemein', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '14', '0', '0'); -- Attribut kontroll_status des Layers 31 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id31, 'kontroll_status', 'kontroll_status', 'grunddaten_baum', 'grunddaten_baum', 'int4', '', '', '0', '32', '0', 'SELECT 1', 'Auswahlfeld', 'select \'0\' as value, \'durchgeführt\' as output UNION select \'1\' as value, \'nicht durchgeführt\' as output UNION select \'2\' as value, \'Handlungsbedarf\' as output', 'Jährliche Kontrolle', '', '', '', '', '', 'allgemein', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '17', '0', '0'); -- Attribut koordinaten des Layers 31 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id31, 'koordinaten', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'Text', '', '', '', '', '', '', '', 'allgemein', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '19', NULL, '0'); -- Attribut logging des Layers 31 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id31, 'logging', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'SubFormEmbeddedPK', '37,baumid,status;no_new_window', 'Log-Daten', '', '', '', '', '', 'Log-Daten;collapsed', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '18', '0', '0'); -- Attribut sicherheitserwartung des Layers 31 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id31, 'sicherheitserwartung', 'sicherheitserwartung', 'grunddaten_baum', 'grunddaten_baum', 'varchar', '', '', '1', '10', NULL, '', 'Text', '', 'Sicherheitserwartung Verkehr', '', '', '', '', '', 'allgemein', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '13', '0', '0'); -- Attribut sorte des Layers 31 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id31, 'sorte', 'sorte', 'grunddaten_baum', 'grunddaten_baum', 'varchar', '', '', '1', '50', NULL, '', 'Text', '', 'Sorte', '', '', '', '', '', 'allgemein', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '12', NULL, '0'); -- Attribut standort des Layers 31 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id31, 'standort', 'standort', 'grunddaten_baum', 'grunddaten_baum', 'varchar', '', '', '1', '255', NULL, '', 'Text', '', 'Standort', '', '', '', '', 'Straße oder Lagebezeichnung', 'allgemein', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '7', '0', '0'); -- Attribut status des Layers 31 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id31, 'status', 'status', 'grunddaten_baum', 'grunddaten_baum', 'varchar', '', '', '0', '10', NULL, 'SELECT \'Baum\'::character varying', 'Auswahlfeld', 'select \'entfernt\' as value, \'entfernt\' as output UNION select \'gefaellt\' as value, \'gefällt\' as output UNION select \'Gehoelz\' as value, \'Strauch vorhanden\' as output UNION select \'Baum\' as value, \'Baum vorhanden\' as output ', 'Status', '', '', '', '', 'Baum vorhanden oder gefällt', 'allgemein', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '8', '0', '0'); -- Attribut status_bemerkung des Layers 31 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id31, 'status_bemerkung', 'status_bemerkung', 'grunddaten_baum', 'grunddaten_baum', 'varchar', '', '', '1', '255', NULL, '', 'Text', '', 'Bemerkung', '', '', '', '', 'Bemerkung wenn gefällt/entfernt', 'allgemein', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '9', '0', '0'); -- Attribut style des Layers 31 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id31, 'style', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'Text', '', '', '', '', '', '', '', 'allgemein', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '20', NULL, '0'); -- Attribut the_geom des Layers 31 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id31, 'the_geom', 'the_geom_25833', 'grunddaten_baum', 'grunddaten_baum', 'geometry', 'POINT', '', '0', NULL, NULL, '', 'Geometrie', '', '', '', '', '', '', '', 'allgemein', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '21', '0', '0'); -- Attribut wirtschaftseinheit des Layers 31 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id31, 'wirtschaftseinheit', 'nummer', 'baeume2wirtschaftseinheiten', 'baeume2wirtschaftseinheiten', 'varchar', '', '', '1', NULL, NULL, '', 'SubFormFK', '10,wirtschaftseinheit_id;no_new_window', 'Wirtschaftseinheit', '', '', '', '', '', 'allgemein', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '1', '0', '0'); -- Attribut wirtschaftseinheit_id des Layers 31 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id31, 'wirtschaftseinheit_id', 'wirtschaftseinheit_id', 'grunddaten_baum', 'grunddaten_baum', 'int4', '', '', '1', '32', '0', '', 'Text', '', '', '', '', '', '', '', 'allgemein', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '2', '0', '0'); -- Class 675 des Layers 31 INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('gefällt', @last_layer_id31, '(\'[status]\' == \'gefaellt\')', '1', ''); SET @last_class_id=LAST_INSERT_ID(); -- Style 2 der Class 675 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, 'punkt', '7', '225 207 167', '', '0 0 0', '', '', '', NULL, '2', '10', NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 2 zu Class 675 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 0); -- Style 3 der Class 675 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES ('24', '', '7', '188 0 42', '217 217 217', '255 255 255', '', '', '', NULL, '2', '10', NULL, NULL, '360', '', NULL, '2', '1', '3', NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 3 zu Class 675 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 1); -- Class 1641 des Layers 31 INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('entfernt', @last_layer_id31, '(\'[status]\' == \'entfernt\')', '2', ''); SET @last_class_id=LAST_INSERT_ID(); -- Style 1683 der Class 1641 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, 'circle', '6', '255 255 255', '', '0 0 0', '', '', '', NULL, NULL, '8', NULL, NULL, '360', '', NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 1683 zu Class 1641 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 0); -- Style 2 der Class 1641 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, 'punkt', '7', '225 207 167', '', '0 0 0', '', '', '', NULL, '2', '10', NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 2 zu Class 1641 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 1); -- Style 3 der Class 1641 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES ('24', '', '7', '188 0 42', '217 217 217', '255 255 255', '', '', '', NULL, '2', '10', NULL, NULL, '360', '', NULL, '2', '1', '3', NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 3 zu Class 1641 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 2); -- Layer 4 INSERT INTO layer (`Name`, `alias`, `Datentyp`, `Gruppe`, `pfad`, `maintable`, `Data`, `schema`, `document_path`, `tileindex`, `tileitem`, `labelangleitem`, `labelitem`, `labelmaxscale`, `labelminscale`, `labelrequires`, `connection`, `printconnection`, `connectiontype`, `classitem`, `filteritem`, `tolerance`, `toleranceunits`, `epsg_code`, `template`, `queryable`, `transparency`, `drawingorder`, `minscale`, `maxscale`, `offsite`, `ows_srs`, `wms_name`, `wms_server_version`, `wms_format`, `wms_connectiontimeout`, `wms_auth_username`, `wms_auth_password`, `wfs_geom`, `selectiontype`, `querymap`, `logconsume`, `processing`, `kurzbeschreibung`, `datenherr`, `metalink`, `privileg`, `trigger_function`, `sync`) VALUES ('Bäume Grunddaten', 'Baum Grunddaten', '0', @group_id, 'SELECT beschriftung,nummer AS wirtschaftseinheit, grunddaten_baum.wirtschaftseinheit_id, abteilung_id, abteilung_kurz||\' - \'||abteilung as abteilung, grunddaten_baum.baumnummer, grunddaten_baum.baumid,grunddaten_baum.standort, grunddaten_baum.status, grunddaten_baum.status_bemerkung, grunddaten_baum.baumart, grunddaten_baum.baumart_spezial, sorte, sicherheitserwartung, kontrollintervall, \'anzeigen ->\' AS kontrolle, nk.gebiet_id as negativkontrollgebiet, grunddaten_baum.bearbeiter, grunddaten_baum.kontroll_status, st_x(grunddaten_baum.the_geom_25833)||\' \'||st_y(grunddaten_baum.the_geom_25833) AS koordinaten, CASE WHEN grunddaten_baum.kontroll_status = 0 AND grunddaten_baum.status = \'Baum\' THEN \'gb_kontrolliert\' WHEN grunddaten_baum.kontroll_status = 1 AND grunddaten_baum.status = \'Baum\' THEN \'gb_nicht_kontrolliert\' WHEN grunddaten_baum.kontroll_status = 2 AND grunddaten_baum.status = \'Baum\' THEN \'gb_handlungsbedarf\' ELSE \'gb_sonstiges\' END AS style, grunddaten_baum.the_geom_25833 AS the_geom FROM baeume2wirtschaftseinheiten, daten_baum_mit_letzter_kontrolle, grunddaten_baum LEFT JOIN negativkontrolle_baum nkb ON nkb.baum_id = grunddaten_baum.baumid LEFT JOIN negativkontrollen nk ON nk.kontroll_id = nkb.kontroll_id WHERE (grunddaten_baum.baumid=baeume2wirtschaftseinheiten.wirtschaftseinheitbaumid)AND grunddaten_baum.baumid=daten_baum_mit_letzter_kontrolle.baumid AND NOT grunddaten_baum.status = \'gefaellt\' AND NOT grunddaten_baum.status = \'entfernt\' order by baumnummer', 'grunddaten_baum', 'the_geom_25833 from (SELECT oid, baumid, the_geom_25833, kontroll_status, status FROM baumkataster.grunddaten_baum WHERE wirtschaftseinheit_id IS NOT NULL) as foo using unique oid using srid=25833', 'baumkataster', '', '', '', '', '', '5002', '99', '', @connection, '', '6', 'baumid', 'baumid', '50', 'pixels', '25833', '', '1', '100', '91000', NULL, NULL, '', 'EPSG:25833', '', '1.1.0', 'image/png', '60', '', '', '', '', '1', '0', '', '', '', '', '0', '', '0'); SET @last_layer_id4=LAST_INSERT_ID(); -- Attribut abteilung des Layers 4 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id4, 'abteilung', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'Text', '', 'Abteilung', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '4', '0', '0'); -- Attribut abteilung_id des Layers 4 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id4, 'abteilung_id', 'abteilung_id', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'int4', '', '', '1', '32', '0', '', 'Text', '', '', '', '', '', '', '', '', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '3', '0', '0'); -- Attribut baumart des Layers 4 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id4, 'baumart', 'baumart', 'grunddaten_baum', 'grunddaten_baum', 'varchar', '', '', '1', '255', NULL, '', 'Auswahlfeld', 'select baumart_id as value, bezeichnung||\' - \'||bezeichnunglatein as output from baumkataster.baumarten order by bezeichnung', 'Baumart', '', '', '', '', 'Baumart, wenn nicht in Auswahlliste enthalten -> im Menüpunkt \'Baumarten verwalten\' eintragen', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '10', '0', '0'); -- Attribut baumart_spezial des Layers 4 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id4, 'baumart_spezial', 'baumart_spezial', 'grunddaten_baum', 'grunddaten_baum', 'varchar', '', '', '1', '255', NULL, '', 'Text', '', 'Baumart (sonstige)', '', '', '', '', 'Falls nicht in der Liste enthalten', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '11', '0', '0'); -- Attribut baumid des Layers 4 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id4, 'baumid', 'baumid', 'grunddaten_baum', 'grunddaten_baum', 'int4', '', 'PRIMARY KEY', '1', '32', '0', '', 'Text', '', 'Baum-ID', '', '', '', '', '', '', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '6', '0', '0'); -- Attribut baumnummer des Layers 4 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id4, 'baumnummer', 'baumnummer', 'grunddaten_baum', 'grunddaten_baum', 'int4', '', '', '1', '32', '0', '', 'Text', '', 'Baum-Nummer', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '5', '0', '0'); -- Attribut bearbeiter des Layers 4 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id4, 'bearbeiter', 'bearbeiter', 'grunddaten_baum', 'grunddaten_baum', 'varchar', '', '', '0', '100', NULL, '', 'User', '', 'Bearbeiter', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '17', '0', '0'); -- Attribut beschriftung des Layers 4 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id4, 'beschriftung', 'beschriftung', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'text', '', '', '1', NULL, NULL, '', 'Text', '', 'Baum', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '0', '0', '0'); -- Attribut kontrolle des Layers 4 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id4, 'kontrolle', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'SubFormEmbeddedPK', '5,baumid,beschriftung_kontrolle;no_new_window', 'Kontrolldaten', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '15', '0', '0'); -- Attribut kontrollintervall des Layers 4 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id4, 'kontrollintervall', 'kontrollintervall', 'grunddaten_baum', 'grunddaten_baum', 'varchar', '', '', '1', '50', NULL, 'SELECT \'jährlich\'::character varying', 'Auswahlfeld', '\'halbjährlich\',\'jährlich\',\'alle 2 Jahre\',\'alle 3 Jahre\',\'Überprüfung bei Jungbaumpflege\'', 'Kontrollintervall', '', '', '', '', 'siehe Tabelle 1 im Kapitel 5.3.2.2 der Baumkontrollrichtlinie (2010)', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '14', '0', '0'); -- Attribut kontroll_status des Layers 4 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id4, 'kontroll_status', 'kontroll_status', 'grunddaten_baum', 'grunddaten_baum', 'int4', '', '', '0', '32', '0', 'SELECT 1', 'Auswahlfeld', 'select \'0\' as value, \'durchgeführt\' as output UNION select \'1\' as value, \'nicht durchgeführt\' as output UNION select \'2\' as value, \'Handlungsbedarf\' as output', 'Jährliche Kontrolle', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '18', '0', '0'); -- Attribut koordinaten des Layers 4 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id4, 'koordinaten', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '19', '0', '0'); -- Attribut negativkontrollgebiet des Layers 4 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id4, 'negativkontrollgebiet', 'gebiet_id', 'negativkontrollen', 'nk', 'int4', '', '', '0', '32', '0', '', 'dynamicLink', 'index.php?go=Layer-Suche_Suchen&selected_layer_id=38&value_gebiet_id=$negativkontrollgebiet&operator_gebiet_id==;anzeigen;no_new_window', 'Negativkontrollgebiet', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '2', 'negativkontrollgebiet', '>', '0', '16', '0', '0'); -- Attribut sicherheitserwartung des Layers 4 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id4, 'sicherheitserwartung', 'sicherheitserwartung', 'grunddaten_baum', 'grunddaten_baum', 'varchar', '', '', '1', '10', NULL, '', 'Auswahlfeld', '\'geringer\',\'höher\'', 'Sicherheitserwartung Verkehr', '', '', '', '', 'siehe Kapitel 5.2.1 der Baumkontrollrichtlinie (2010)', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '13', '0', '0'); -- Attribut sorte des Layers 4 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id4, 'sorte', 'sorte', 'grunddaten_baum', 'grunddaten_baum', 'varchar', '', '', '1', '50', NULL, '', 'Text', '', 'Sorte', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '12', '0', '0'); -- Attribut standort des Layers 4 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id4, 'standort', 'standort', 'grunddaten_baum', 'grunddaten_baum', 'varchar', '', '', '1', '255', NULL, '', 'Text', '', 'Standort', '', '', '', '', 'Straße oder Lagebezeichnung', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '7', '0', '0'); -- Attribut status des Layers 4 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id4, 'status', 'status', 'grunddaten_baum', 'grunddaten_baum', 'varchar', '', '', '0', '10', NULL, 'SELECT \'Baum\'::character varying', 'Auswahlfeld', 'select \'Baum\' as value, \'Baum vorhanden\' as output UNION select \'Gehoelz\' as value, \'Strauch vorhanden\' as output UNION select \'gefaellt\' as value, \'gefällt\' as output UNION select \'entfernt\' as value, \'entfernt\' as output', 'Status', '', '', '', '', 'Baum vorhanden oder gefällt', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '8', '0', '0'); -- Attribut status_bemerkung des Layers 4 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id4, 'status_bemerkung', 'status_bemerkung', 'grunddaten_baum', 'grunddaten_baum', 'varchar', '', '', '1', '255', NULL, '', 'Text', '', 'Bemerkung', '', '', '', '', '', '', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '9', '0', '0'); -- Attribut style des Layers 4 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id4, 'style', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'Style', '', '', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '0', '', '', '', '20', '0', '0'); -- Attribut the_geom des Layers 4 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id4, 'the_geom', 'the_geom_25833', 'grunddaten_baum', 'grunddaten_baum', 'geometry', 'POINT', '', '0', NULL, NULL, '', 'Geometrie', '', '', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '21', '0', '0'); -- Attribut wirtschaftseinheit des Layers 4 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id4, 'wirtschaftseinheit', 'nummer', 'baeume2wirtschaftseinheiten', 'baeume2wirtschaftseinheiten', 'varchar', '', '', '1', NULL, NULL, '', 'SubFormFK', '10,wirtschaftseinheit_id;no_new_window', 'Wirtschaftseinheit', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '1', '0', '0'); -- Attribut wirtschaftseinheit_id des Layers 4 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id4, 'wirtschaftseinheit_id', 'wirtschaftseinheit_id', 'grunddaten_baum', 'grunddaten_baum', 'int4', '', '', '1', '32', '0', '', 'Text', '', 'WIE-ID', '', '', '', '', '', '', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '2', '0', '0'); -- Class 75 des Layers 4 INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('Baum nicht kontrolliert', @last_layer_id4, '(\'[kontroll_status]\' = \'1\' AND \'[status]\' == \'Baum\')', '2', ''); SET @last_class_id=LAST_INSERT_ID(); -- Style 75 der Class 75 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, 'punkt', '13', '255 184 19', '', '0 0 0', '', '', '', NULL, '4', '17', NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 75 zu Class 75 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 0); -- Class 74 des Layers 4 INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('Baum kontrolliert', @last_layer_id4, '(\'[kontroll_status]\' = \'0\' AND \'[status]\' == \'Baum\')', '1', ''); SET @last_class_id=LAST_INSERT_ID(); -- Style 5 der Class 74 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, 'punkt', '13', '76 159 0', '', '0 0 0', '', '', '', NULL, '4', '17', NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 5 zu Class 74 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 0); -- Class 78 des Layers 4 INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('Baum Handlung notwendig', @last_layer_id4, '(\'[kontroll_status]\' = \'2\' AND \'[status]\' == \'Baum\')', '3', ''); SET @last_class_id=LAST_INSERT_ID(); -- Style 76 der Class 78 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, 'punkt', '13', '255 0 0', '', '0 0 0', '', '', '', NULL, '4', '17', NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 76 zu Class 78 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 0); -- Class 93 des Layers 4 INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('Strauch bzw. Baum außerh.', @last_layer_id4, '(\'[status]\' == \'Gehoelz\')', '4', ''); SET @last_class_id=LAST_INSERT_ID(); -- Style 97 der Class 93 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, 'punkt', '7', '-1 -1 -1', '', '41 152 0', '', '', '', NULL, '2', '10', NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 97 zu Class 93 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 0); -- Layer 35 INSERT INTO layer (`Name`, `alias`, `Datentyp`, `Gruppe`, `pfad`, `maintable`, `Data`, `schema`, `document_path`, `tileindex`, `tileitem`, `labelangleitem`, `labelitem`, `labelmaxscale`, `labelminscale`, `labelrequires`, `connection`, `printconnection`, `connectiontype`, `classitem`, `filteritem`, `tolerance`, `toleranceunits`, `epsg_code`, `template`, `queryable`, `transparency`, `drawingorder`, `minscale`, `maxscale`, `offsite`, `ows_srs`, `wms_name`, `wms_server_version`, `wms_format`, `wms_connectiontimeout`, `wms_auth_username`, `wms_auth_password`, `wfs_geom`, `selectiontype`, `querymap`, `logconsume`, `processing`, `kurzbeschreibung`, `datenherr`, `metalink`, `privileg`, `trigger_function`, `sync`) VALUES ('Bäume Grunddaten außerhalb', 'Baum Grunddaten außerhalb', '0', @group_id, 'SELECT beschriftung, grunddaten_baum.wirtschaftseinheit_id, grunddaten_baum.baumnummer, grunddaten_baum.baumid,grunddaten_baum.standort, grunddaten_baum.status, grunddaten_baum.status_bemerkung, grunddaten_baum.baumart, grunddaten_baum.baumart_spezial, sorte, sicherheitserwartung, kontrollintervall, \'anzeigen ->\' AS kontrolle, grunddaten_baum.bearbeiter, grunddaten_baum.kontroll_status, st_x(grunddaten_baum.the_geom)||\' \'||st_y(grunddaten_baum.the_geom) AS koordinaten_2398, st_x(st_transform(grunddaten_baum.the_geom,25833))||\' \'||st_y(st_transform(grunddaten_baum.the_geom,25833)) AS koordinaten_25833, CASE WHEN grunddaten_baum.kontroll_status = 0 AND grunddaten_baum.status = \'Baum\' THEN \'gb_kontrolliert\' WHEN grunddaten_baum.kontroll_status = 1 AND grunddaten_baum.status = \'Baum\' THEN \'gb_nicht_kontrolliert\' WHEN grunddaten_baum.kontroll_status = 2 AND grunddaten_baum.status = \'Baum\' THEN \'gb_handlungsbedarf\' ELSE \'gb_sonstiges\' END AS style, grunddaten_baum.the_geom FROM grunddaten_baum, daten_baum_mit_letzter_kontrolle WHERE grunddaten_baum.baumid=daten_baum_mit_letzter_kontrolle.baumid AND NOT grunddaten_baum.status = \'gefaellt\' AND NOT grunddaten_baum.status = \'entfernt\' order by baumnummer', 'grunddaten_baum', 'the_geom_25833 from (SELECT oid, baumid, the_geom_25833, kontroll_status, status FROM baumkataster.grunddaten_baum WHERE wirtschaftseinheit_id IS NULL) as foo using unique oid using srid=25833', 'baumkataster', '', '', '', '', '', '5002', '99', '', @connection, '', '6', 'baumid', 'baumid', '15', 'pixels', '25833', '', '1', '100', '91000', NULL, NULL, '', 'EPSG:25833', '', '1.1.0', 'image/png', '60', '', '', '', '', '1', '0', '', '', '', '', '0', '', '0'); SET @last_layer_id35=LAST_INSERT_ID(); -- Attribut baumart des Layers 35 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id35, 'baumart', 'baumart', 'grunddaten_baum', 'grunddaten_baum', 'varchar', '', '', '1', '255', NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, NULL, NULL, NULL, '1', '', '', '', '7', '0', '0'); -- Attribut baumart_spezial des Layers 35 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id35, 'baumart_spezial', 'baumart_spezial', 'grunddaten_baum', 'grunddaten_baum', 'varchar', '', '', '1', '255', NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, NULL, NULL, NULL, '1', '', '', '', '8', '0', '0'); -- Attribut baumid des Layers 35 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id35, 'baumid', 'baumid', 'grunddaten_baum', 'grunddaten_baum', 'int4', '', 'PRIMARY KEY', '1', '32', '0', '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, NULL, NULL, NULL, '1', '', '', '', '3', '0', '0'); -- Attribut baumnummer des Layers 35 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id35, 'baumnummer', 'baumnummer', 'grunddaten_baum', 'grunddaten_baum', 'int4', '', '', '1', '32', '0', '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, NULL, NULL, NULL, '1', '', '', '', '2', '0', '0'); -- Attribut bearbeiter des Layers 35 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id35, 'bearbeiter', 'bearbeiter', 'grunddaten_baum', 'grunddaten_baum', 'varchar', '', '', '0', '100', NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, NULL, NULL, NULL, '1', '', '', '', '13', '0', '0'); -- Attribut beschriftung des Layers 35 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id35, 'beschriftung', 'beschriftung', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'text', '', '', '1', NULL, NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, NULL, NULL, NULL, '1', '', '', '', '0', '0', '0'); -- Attribut kontrolle des Layers 35 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id35, 'kontrolle', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, NULL, NULL, NULL, '1', '', '', '', '12', '0', '0'); -- Attribut kontrollintervall des Layers 35 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id35, 'kontrollintervall', 'kontrollintervall', 'grunddaten_baum', 'grunddaten_baum', 'varchar', '', '', '1', '50', NULL, 'SELECT \'jährlich\'::character varying', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, NULL, NULL, NULL, '1', '', '', '', '11', '0', '0'); -- Attribut kontroll_status des Layers 35 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id35, 'kontroll_status', 'kontroll_status', 'grunddaten_baum', 'grunddaten_baum', 'int4', '', '', '0', '32', '0', 'SELECT 1', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, NULL, NULL, NULL, '1', '', '', '', '14', '0', '0'); -- Attribut koordinaten_2398 des Layers 35 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id35, 'koordinaten_2398', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, NULL, NULL, NULL, '1', '', '', '', '15', '0', '0'); -- Attribut koordinaten_25833 des Layers 35 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id35, 'koordinaten_25833', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, NULL, NULL, NULL, '1', '', '', '', '16', '0', '0'); -- Attribut sicherheitserwartung des Layers 35 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id35, 'sicherheitserwartung', 'sicherheitserwartung', 'grunddaten_baum', 'grunddaten_baum', 'varchar', '', '', '1', '10', NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, NULL, NULL, NULL, '1', '', '', '', '10', '0', '0'); -- Attribut sorte des Layers 35 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id35, 'sorte', 'sorte', 'grunddaten_baum', 'grunddaten_baum', 'varchar', '', '', '1', '50', NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, NULL, NULL, NULL, '1', '', '', '', '9', '0', '0'); -- Attribut standort des Layers 35 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id35, 'standort', 'standort', 'grunddaten_baum', 'grunddaten_baum', 'varchar', '', '', '1', '255', NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, NULL, NULL, NULL, '1', '', '', '', '4', '0', '0'); -- Attribut status des Layers 35 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id35, 'status', 'status', 'grunddaten_baum', 'grunddaten_baum', 'varchar', '', '', '0', '10', NULL, 'SELECT \'Baum\'::character varying', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, NULL, NULL, NULL, '1', '', '', '', '5', '0', '0'); -- Attribut status_bemerkung des Layers 35 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id35, 'status_bemerkung', 'status_bemerkung', 'grunddaten_baum', 'grunddaten_baum', 'varchar', '', '', '1', '255', NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, NULL, NULL, NULL, '1', '', '', '', '6', '0', '0'); -- Attribut style des Layers 35 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id35, 'style', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, NULL, NULL, NULL, '1', '', '', '', '17', '0', '0'); -- Attribut the_geom des Layers 35 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id35, 'the_geom', 'the_geom', 'grunddaten_baum', 'grunddaten_baum', 'geometry', 'GEOMETRY', '', '1', NULL, NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, NULL, NULL, NULL, '1', '', '', '', '18', '0', '0'); -- Attribut wirtschaftseinheit_id des Layers 35 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id35, 'wirtschaftseinheit_id', 'wirtschaftseinheit_id', 'grunddaten_baum', 'grunddaten_baum', 'int4', '', '', '1', '32', '0', '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, NULL, NULL, NULL, '1', '', '', '', '1', '0', '0'); -- Class 1694 des Layers 35 INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('Strauch bzw. Baum außerh.', @last_layer_id35, '(1=1)', '4', ''); SET @last_class_id=LAST_INSERT_ID(); -- Style 1739 der Class 1694 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, 'punkt', '7', '-1 -1 -1', '', '41 152 0', '', '', '', NULL, '2', '10', NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 1739 zu Class 1694 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 0); -- Layer 37 INSERT INTO layer (`Name`, `alias`, `Datentyp`, `Gruppe`, `pfad`, `maintable`, `Data`, `schema`, `document_path`, `tileindex`, `tileitem`, `labelangleitem`, `labelitem`, `labelmaxscale`, `labelminscale`, `labelrequires`, `connection`, `printconnection`, `connectiontype`, `classitem`, `filteritem`, `tolerance`, `toleranceunits`, `epsg_code`, `template`, `queryable`, `transparency`, `drawingorder`, `minscale`, `maxscale`, `offsite`, `ows_srs`, `wms_name`, `wms_server_version`, `wms_format`, `wms_connectiontimeout`, `wms_auth_username`, `wms_auth_password`, `wfs_geom`, `selectiontype`, `querymap`, `logconsume`, `processing`, `kurzbeschreibung`, `datenherr`, `metalink`, `privileg`, `trigger_function`, `sync`) VALUES ('Bäume Grunddaten Baum Logs', '', '5', @group_id, 'SELECT bl.id, bl.baumid, bl.baumnummer_alt, bl.baumnummer, bl.status_alt, bl.status, bl.baumart_alt, bl.baumart, zeitstempel, bearbeiter_update, log_grund FROM grunddaten_baum_logs bl, grunddaten_baum gb WHERE gb.baumid = bl.baumid ORDER BY id', 'grunddaten_baum_logs', '', 'baumkataster', '', '', '', '', '', NULL, NULL, '', @connection, '', '6', 'baumid', 'baumid', '10', 'pixels', '25833', '', '1', '100', NULL, '-1', '-1', '', 'EPSG:25833', '', '1.1.0', 'image/png', '60', '', '', '', '', '0', '0', '', '', '', '', '0', '', '0'); SET @last_layer_id37=LAST_INSERT_ID(); -- Attribut baumart des Layers 37 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id37, 'baumart', 'baumart', 'grunddaten_baum_logs', 'bl', 'varchar', '', '', '1', '255', NULL, '', 'Auswahlfeld', 'select baumart_id as value, bezeichnung||\' - \'||bezeichnunglatein as output from baumkataster.baumarten order by bezeichnung ', 'NEU', '', '', '', '', '', '', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '7', '0', '0'); -- Attribut baumart_alt des Layers 37 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id37, 'baumart_alt', 'baumart_alt', 'grunddaten_baum_logs', 'bl', 'varchar', '', '', '1', '255', NULL, '', 'Auswahlfeld', 'select baumart_id as value, bezeichnung||\' - \'||bezeichnunglatein as output from baumkataster.baumarten order by bezeichnung ', 'Baumart', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '6', '0', '0'); -- Attribut baumid des Layers 37 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id37, 'baumid', 'baumid', 'grunddaten_baum_logs', 'bl', 'int4', '', '', '1', '32', '0', '', 'SubFormPK', '4,baumid;no_new_window', 'Baum-ID', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '1', '0', '0'); -- Attribut baumnummer des Layers 37 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id37, 'baumnummer', 'baumnummer', 'grunddaten_baum_logs', 'bl', 'int4', '', '', '1', '32', '0', '', 'Text', '', 'NEU', '', '', '', '', '', '', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '3', '0', '0'); -- Attribut baumnummer_alt des Layers 37 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id37, 'baumnummer_alt', 'baumnummer_alt', 'grunddaten_baum_logs', 'bl', 'int4', '', '', '1', '32', '0', '', 'Text', '', 'Nummer', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '2', '0', '0'); -- Attribut bearbeiter_update des Layers 37 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id37, 'bearbeiter_update', 'bearbeiter_update', 'grunddaten_baum_logs', 'bl', 'varchar', '', '', '1', NULL, NULL, '', 'Text', '', 'Bearbeiter', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '9', '0', '0'); -- Attribut id des Layers 37 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id37, 'id', 'id', 'grunddaten_baum_logs', 'bl', 'int4', '', 'PRIMARY KEY', '1', '32', '0', '', 'Text', '', 'ID', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '0', '0', '0'); -- Attribut log_grund des Layers 37 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id37, 'log_grund', 'log_grund', 'grunddaten_baum_logs', 'bl', 'varchar', '', '', '1', '6', NULL, '', 'Text', '', 'Vorgang', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '10', '0', '0'); -- Attribut status des Layers 37 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id37, 'status', 'status', 'grunddaten_baum_logs', 'bl', 'varchar', '', '', '1', '10', NULL, '', 'Text', '', 'NEU', '', '', '', '', '', '', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '5', '0', '0'); -- Attribut status_alt des Layers 37 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id37, 'status_alt', 'status_alt', 'grunddaten_baum_logs', 'bl', 'varchar', '', '', '1', '10', NULL, '', 'Text', '', 'Status', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '4', '0', '0'); -- Attribut zeitstempel des Layers 37 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id37, 'zeitstempel', 'zeitstempel', 'grunddaten_baum_logs', 'bl', 'timestamp', '', '', '1', NULL, NULL, 'SELECT timezone(\'Europe/Berlin\'::text, now())', 'Text', '', 'geändert am', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '8', '0', '0'); -- Layer 33 INSERT INTO layer (`Name`, `alias`, `Datentyp`, `Gruppe`, `pfad`, `maintable`, `Data`, `schema`, `document_path`, `tileindex`, `tileitem`, `labelangleitem`, `labelitem`, `labelmaxscale`, `labelminscale`, `labelrequires`, `connection`, `printconnection`, `connectiontype`, `classitem`, `filteritem`, `tolerance`, `toleranceunits`, `epsg_code`, `template`, `queryable`, `transparency`, `drawingorder`, `minscale`, `maxscale`, `offsite`, `ows_srs`, `wms_name`, `wms_server_version`, `wms_format`, `wms_connectiontimeout`, `wms_auth_username`, `wms_auth_password`, `wfs_geom`, `selectiontype`, `querymap`, `logconsume`, `processing`, `kurzbeschreibung`, `datenherr`, `metalink`, `privileg`, `trigger_function`, `sync`) VALUES ('Bäume Handlungsbedarf Erledigung', 'Erledigung', '0', @group_id, 'SELECT nummer AS wirtschaftseinheit, baumnummer, baumid, status, kontroll_status, datum, kontrollid, kontrollart, bearbeiter, handlungsbedarf, zustand, massnahme, massnahmeart, massnahmeart2, erledigung, faellung, faellung_bemerkung, bemerkung, massnahmebearbeiter, the_geom FROM letzte_kontrollen, baeume2wirtschaftseinheiten WHERE handlungsbedarf = \'ja\' AND (letzte_kontrollen.baumid=baeume2wirtschaftseinheiten.wirtschaftseinheitbaumid) ', 'letzte_kontrollen', 'the_geom from baumkataster.letzte_kontrollen as foo using unique oid using srid=25833', 'baumkataster', '', '', '', '', '', '5002', '99', '', @connection, '', '6', 'baumid', 'baumid', '15', 'pixels', '25833', '', '1', '100', '91000', NULL, NULL, '', 'EPSG:25833', '', '1.1.0', 'image/png', '60', '', '', '', '', '1', '0', '', '', '', '', '0', '', '0'); SET @last_layer_id33=LAST_INSERT_ID(); -- Attribut baumid des Layers 33 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id33, 'baumid', 'baumid', 'letzte_kontrollen', 'letzte_kontrollen', 'int4', '', '', '0', '32', '0', '', 'SubFormFK', '5,kontrollid;no_new_window', 'Baum-ID', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '2', '0', '0'); -- Attribut baumnummer des Layers 33 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id33, 'baumnummer', 'baumnummer', 'letzte_kontrollen', 'letzte_kontrollen', 'int4', '', '', '1', '32', '0', '', 'Text', '', 'Baumnummer', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '1', '0', '0'); -- Attribut bearbeiter des Layers 33 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id33, 'bearbeiter', 'bearbeiter', 'letzte_kontrollen', 'letzte_kontrollen', 'varchar', '', '', '0', '100', NULL, 'SELECT \'Name wird nach dem Speichern angezeigt\'::character varying', 'Text', '', 'Datenerfasser', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '8', '0', '0'); -- Attribut bemerkung des Layers 33 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id33, 'bemerkung', 'bemerkung', 'letzte_kontrollen', 'letzte_kontrollen', 'text', '', '', '1', NULL, NULL, '', 'Text', '', 'Bemerkung', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '17', '0', '0'); -- Attribut datum des Layers 33 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id33, 'datum', 'datum', 'letzte_kontrollen', 'letzte_kontrollen', 'date', '', '', '0', NULL, NULL, 'SELECT (\'now\'::text)::date', 'Text', '', 'Datum Kontrolle', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '5', '0', '0'); -- Attribut erledigung des Layers 33 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id33, 'erledigung', 'erledigung', 'letzte_kontrollen', 'letzte_kontrollen', 'varchar', '', '', '0', '50', NULL, 'SELECT \'-\'::character varying', 'Auswahlfeld', '\'(1) sofort (Gefahr im Verzug)\',\'(2) innerhalb von 6 Monaten\',\'(3) in der nächsten Pflegeperiode,\'(4) Keine\'', 'Erledigung', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '14', '0', '1'); -- Attribut faellung des Layers 33 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id33, 'faellung', 'faellung', 'letzte_kontrollen', 'letzte_kontrollen', 'varchar', '', '', '0', '4', NULL, 'SELECT \'nein\'::character varying', 'Text', '', 'Fällung', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '15', '0', '1'); -- Attribut faellung_bemerkung des Layers 33 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id33, 'faellung_bemerkung', 'faellung_bemerkung', 'letzte_kontrollen', 'letzte_kontrollen', 'varchar', '', '', '1', '255', NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, NULL, NULL, NULL, '1', '', '', '', '16', '0', '0'); -- Attribut handlungsbedarf des Layers 33 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id33, 'handlungsbedarf', 'handlungsbedarf', 'letzte_kontrollen', 'letzte_kontrollen', 'varchar', '', '', '0', '8', NULL, 'SELECT \'nein\'::character varying', 'Auswahlfeld', '\'ja\',\'nein\',\'erledigt\'', 'Handlungsbedarf', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '9', '0', '1'); -- Attribut kontrollart des Layers 33 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id33, 'kontrollart', 'kontrollart', 'letzte_kontrollen', 'letzte_kontrollen', 'varchar', '', '', '0', '20', NULL, 'SELECT \'Regelkontrolle\'::character varying', 'Text', '', 'Kontrollart', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '7', '0', '0'); -- Attribut kontrollid des Layers 33 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id33, 'kontrollid', 'kontrollid', 'letzte_kontrollen', 'letzte_kontrollen', 'int4', '', '', '1', '32', '0', '', 'Text', '', 'Kontroll-ID', '', '', '', '', '', '', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '6', '0', '0'); -- Attribut kontroll_status des Layers 33 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id33, 'kontroll_status', 'kontroll_status', 'letzte_kontrollen', 'letzte_kontrollen', 'int4', '', '', '0', '32', '0', 'SELECT 1', 'Auswahlfeld', 'select \'0\' as value, \'durchgeführt\' as output UNION select \'1\' as value, \'nicht durchgeführt\' as output UNION select \'2\' as value, \'Handlungsbedarf\' as output', 'Jährliche Kontrolle', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '4', '0', '0'); -- Attribut massnahme des Layers 33 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id33, 'massnahme', 'massnahme', 'letzte_kontrollen', 'letzte_kontrollen', 'varchar', '', '', '0', '4', NULL, 'SELECT \'-\'::character varying', 'Text', '', 'Maßnahme', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '11', '0', '1'); -- Attribut massnahmeart des Layers 33 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id33, 'massnahmeart', 'massnahmeart', 'letzte_kontrollen', 'letzte_kontrollen', 'varchar', '', '', '1', '50', NULL, 'SELECT \'-\'::character varying', 'Text', '', 'Maßnahmeart 1', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '12', '0', '1'); -- Attribut massnahmeart2 des Layers 33 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id33, 'massnahmeart2', 'massnahmeart2', 'letzte_kontrollen', 'letzte_kontrollen', 'varchar', '', '', '1', '50', NULL, 'SELECT \'-\'::character varying', 'Text', '', '2', '', '', '', '', '', '', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '13', '0', '1'); -- Attribut massnahmebearbeiter des Layers 33 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id33, 'massnahmebearbeiter', 'massnahmebearbeiter', 'letzte_kontrollen', 'letzte_kontrollen', 'varchar', '', '', '1', '100', NULL, '', 'Text', '', 'Maßnahmebearbeiter', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '18', '0', '0'); -- Attribut status des Layers 33 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id33, 'status', 'status', 'letzte_kontrollen', 'letzte_kontrollen', 'varchar', '', '', '0', '10', NULL, 'SELECT \'Baum\'::character varying', 'Text', '', 'Status', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '3', '0', '0'); -- Attribut the_geom des Layers 33 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id33, 'the_geom', 'the_geom', 'letzte_kontrollen', 'letzte_kontrollen', 'geometry', 'POINT', '', '1', NULL, NULL, '', 'Geometrie', '', '', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '19', '0', '0'); -- Attribut wirtschaftseinheit des Layers 33 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id33, 'wirtschaftseinheit', 'nummer', 'baeume2wirtschaftseinheiten', 'baeume2wirtschaftseinheiten', 'varchar', '', '', '1', NULL, NULL, '', 'Text', '', 'Wirtschaftseinheit', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '0', '0', '0'); -- Attribut zustand des Layers 33 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id33, 'zustand', 'zustand', 'letzte_kontrollen', 'letzte_kontrollen', 'varchar', '', '', '1', '50', NULL, '', 'Text', '', 'Zustand', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '10', '0', '0'); -- Class 891 des Layers 33 INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('Keine', @last_layer_id33, '(\'[handlungsbedarf]\' == \'ja\' AND \'[kontroll_status]\' != \'1\' AND \'[erledigung]\' == \'(5) Keine\' AND \'[status]\' == \'Baum\')', '5', ''); SET @last_class_id=LAST_INSERT_ID(); -- Style 920 der Class 891 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, 'punkt', '13', '255 200 200', '', '0 0 0', '', '', '', NULL, '4', '17', NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 920 zu Class 891 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 0); -- Class 880 des Layers 33 INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('innerhalb von 4 Wochen', @last_layer_id33, '(\'[handlungsbedarf]\' == \'ja\' AND \'[kontroll_status]\' != \'1\' AND \'[erledigung]\' == \'(2) innerhalb von 4 Wochen\' AND \'[status]\' == \'Baum\')', '2', ''); SET @last_class_id=LAST_INSERT_ID(); -- Style 909 der Class 880 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, 'punkt', '13', '255 50 50', '', '0 0 0', '', '', '', NULL, '4', '17', NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 909 zu Class 880 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 0); -- Class 881 des Layers 33 INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('innerhalb von 6 Monaten', @last_layer_id33, '(\'[handlungsbedarf]\' == \'ja\' AND \'[kontroll_status]\' != \'1\' AND \'[erledigung]\' == \'(3) innerhalb von 6 Monaten\' AND \'[status]\' == \'Baum\')', '3', ''); SET @last_class_id=LAST_INSERT_ID(); -- Style 910 der Class 881 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, 'punkt', '13', '255 100 100', '', '0 0 0', '', '', '', NULL, '4', '17', NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 910 zu Class 881 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 0); -- Class 882 des Layers 33 INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('im unbelaubten Zustand', @last_layer_id33, '(\'[handlungsbedarf]\' == \'ja\' AND \'[kontroll_status]\' != \'1\' AND \'[erledigung]\' == \'(4) im unbelaubten Zustand\' AND \'[status]\' == \'Baum\')', '4', ''); SET @last_class_id=LAST_INSERT_ID(); -- Style 911 der Class 882 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, 'punkt', '13', '255 150 150', '', '0 0 0', '', '', '', NULL, '4', '17', NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 911 zu Class 882 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 0); -- Class 874 des Layers 33 INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('sofort', @last_layer_id33, '(\'[handlungsbedarf]\' == \'ja\' AND \'[kontroll_status]\' != \'1\' AND \'[erledigung]\' == \'(1) sofort (Gefahr im Verzug)\' AND \'[status]\' == \'Baum\')', '1', ''); SET @last_class_id=LAST_INSERT_ID(); -- Style 903 der Class 874 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, 'punkt', '13', '255 0 0', '', '0 0 0', '', '', '', NULL, '4', '17', NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 903 zu Class 874 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 0); -- Layer 34 INSERT INTO layer (`Name`, `alias`, `Datentyp`, `Gruppe`, `pfad`, `maintable`, `Data`, `schema`, `document_path`, `tileindex`, `tileitem`, `labelangleitem`, `labelitem`, `labelmaxscale`, `labelminscale`, `labelrequires`, `connection`, `printconnection`, `connectiontype`, `classitem`, `filteritem`, `tolerance`, `toleranceunits`, `epsg_code`, `template`, `queryable`, `transparency`, `drawingorder`, `minscale`, `maxscale`, `offsite`, `ows_srs`, `wms_name`, `wms_server_version`, `wms_format`, `wms_connectiontimeout`, `wms_auth_username`, `wms_auth_password`, `wfs_geom`, `selectiontype`, `querymap`, `logconsume`, `processing`, `kurzbeschreibung`, `datenherr`, `metalink`, `privileg`, `trigger_function`, `sync`) VALUES ('Bäume mit letzter Kontrolle', 'Bäume mit letzter Kontrolle', '0', @group_id, 'SELECT * FROM daten_baum_mit_letzter_kontrolle WHERE status = \'Baum\' order by baumnummer', 'daten_baum_mit_letzter_kontrolle', 'the_geom from baumkataster.daten_baum_mit_letzter_kontrolle as foo using unique oid using srid=25833', 'baumkataster', '', '', '', '', '', '5002', '99', '', @connection, '', '6', 'baumid', 'baumid', '15', 'pixels', '25833', '', '1', '100', '91000', NULL, NULL, '', 'EPSG:25833', '', '1.1.0', 'image/png', '60', '', '', '', '', '1', '0', '', '', '', '', '0', '', '0'); SET @last_layer_id34=LAST_INSERT_ID(); -- Attribut abteilung des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'abteilung', 'abteilung', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'varchar', '', '', '0', '32', NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, NULL, NULL, NULL, '1', '', '', '', '38', '0', '0'); -- Attribut abteilung_id des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'abteilung_id', 'abteilung_id', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'int4', '', '', '1', '32', '0', '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, NULL, NULL, NULL, '1', '', '', '', '37', '0', '0'); -- Attribut abteilung_kurz des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'abteilung_kurz', 'abteilung_kurz', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'varchar', '', '', '0', '8', NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, NULL, NULL, NULL, '1', '', '', '', '39', '0', '0'); -- Attribut adresse des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'adresse', 'adresse', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'text', '', '', '1', NULL, NULL, '', 'Text', '', 'Adresse', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '6', '0', '0'); -- Attribut baumart des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'baumart', 'baumart', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'varchar', '', '', '0', '255', NULL, '', 'Text', '', 'Baumart', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '10', '0', '0'); -- Attribut baumart_latein des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'baumart_latein', 'baumart_latein', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'varchar', '', '', '0', '255', NULL, '', 'Text', '', 'Baumart Latein', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '11', '0', '0'); -- Attribut baumhoehe des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'baumhoehe', 'baumhoehe', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'int2', '', '', '0', '16', '0', '', 'Text', '', 'Baumhöhe [m]', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '16', '0', '0'); -- Attribut baumid des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'baumid', 'baumid', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'int4', '', '', '1', '32', '0', '', 'Text', '', 'Baum-ID', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '1', '0', '0'); -- Attribut baumnummer des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'baumnummer', 'baumnummer', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'int4', '', '', '1', '32', '0', '', 'Text', '', 'Baumnummer', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '2', '0', '0'); -- Attribut bearbeiter des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'bearbeiter', 'bearbeiter', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'varchar', '', '', '0', '100', NULL, 'SELECT \'Name wird nach dem Speichern angezeigt\'::character varying', 'Text', '', 'Bearbeiter', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '15', '0', '0'); -- Attribut bemerkung des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'bemerkung', 'bemerkung', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'text', '', '', '1', NULL, NULL, '', 'Text', '', 'Bemerkung', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '20', '0', '0'); -- Attribut beschriftung des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'beschriftung', 'beschriftung', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'text', '', '', '1', NULL, NULL, '', 'Text', '', 'Beschriftung', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '32', '0', '0'); -- Attribut datumkontrolle des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'datumkontrolle', 'datumkontrolle', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'text', '', '', '1', NULL, NULL, '', 'Text', '', 'Kontrolldatum', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '24', '0', '0'); -- Attribut dokument des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'dokument', 'dokument', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'varchar', '', '', '0', '255', NULL, '', 'Text', '', 'Dokument', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '21', '0', '0'); -- Attribut eingehendeuntersuchung des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'eingehendeuntersuchung', 'eingehendeuntersuchung', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'varchar', '', '', '0', '4', NULL, 'SELECT \'-\'::character varying', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, NULL, NULL, NULL, '1', '', '', '', '36', '0', '0'); -- Attribut erledigung des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'erledigung', 'erledigung', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'varchar', '', '', '0', '50', NULL, 'SELECT \'-\'::character varying', 'Text', '', 'Erledigung', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '29', '0', '0'); -- Attribut faellung des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'faellung', 'faellung', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'varchar', '', '', '0', '4', NULL, 'SELECT \'nein\'::character varying', 'Text', '', 'Fällung', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '28', '0', '0'); -- Attribut faellung_bemerkung des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'faellung_bemerkung', 'faellung_bemerkung', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'varchar', '', '', '1', '255', NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, NULL, NULL, NULL, '1', '', '', '', '35', '0', '0'); -- Attribut handlungsbedarf des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'handlungsbedarf', 'handlungsbedarf', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'varchar', '', '', '0', '8', NULL, 'SELECT \'nein\'::character varying', 'Text', '', 'Handlungsbedarf kurz', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '31', '0', '0'); -- Attribut handlungsbedarfbeschriftung des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'handlungsbedarfbeschriftung', 'handlungsbedarfbeschriftung', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'text', '', '', '1', NULL, NULL, '', 'Text', '', 'Handlungsbedarf', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '22', '0', '0'); -- Attribut kontrollart des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'kontrollart', 'kontrollart', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'varchar', '', '', '0', '20', NULL, 'SELECT \'Regelkontrolle\'::character varying', 'Text', '', 'Kontrollart', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '14', '0', '0'); -- Attribut kontrolldatum des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'kontrolldatum', 'kontrolldatum', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'date', '', '', '1', NULL, NULL, '', 'Text', '', 'Kontrolldatum', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '13', '0', '0'); -- Attribut kontroll_id des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'kontroll_id', 'kontroll_id', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'int4', '', '', '1', '32', '0', '', 'Text', '', 'Kontroll-ID', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '12', '0', '0'); -- Attribut kontroll_status des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'kontroll_status', 'kontroll_status', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'int4', '', '', '0', '32', '0', 'SELECT 1', 'Text', '', 'Kontrollstatus', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '25', '0', '0'); -- Attribut kontroll_status_beschriftung des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'kontroll_status_beschriftung', 'kontroll_status_beschriftung', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'text', '', '', '1', NULL, NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '34', '0', '0'); -- Attribut kronendurchmesser des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'kronendurchmesser', 'kronendurchmesser', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'int2', '', '', '0', '16', '0', '', 'Text', '', 'Kronendurchm. [m]', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '17', '0', '0'); -- Attribut massnahme des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'massnahme', 'massnahme', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'varchar', '', '', '0', '4', NULL, 'SELECT \'-\'::character varying', 'Text', '', 'Maßnahme', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '27', '0', '0'); -- Attribut massnahmeart des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'massnahmeart', 'massnahmeart', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'varchar', '', '', '1', '50', NULL, 'SELECT \'-\'::character varying', 'Text', '', 'Maßnahmeart 1', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '23', '0', '0'); -- Attribut massnahmeart2 des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'massnahmeart2', 'massnahmeart2', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'varchar', '', '', '1', '50', NULL, 'SELECT \'-\'::character varying', 'Text', '', 'Ma0nahmeart 2', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '26', '0', '0'); -- Attribut oid des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'oid', 'oid', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'oid', '', '', '1', NULL, NULL, '', 'Text', '', 'OID', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '0', '0', '0'); -- Attribut organisationseinheit des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'organisationseinheit', 'organisationseinheit', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'varchar', '', '', '1', '10', NULL, '', 'Text', '', 'Kundencenter', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '4', '0', '0'); -- Attribut stadtteil des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'stadtteil', 'stadtteil', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'varchar', '', '', '0', NULL, NULL, '', 'Text', '', 'Stadtteil', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '8', '0', '0'); -- Attribut stadtteil_id des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'stadtteil_id', 'stadtteil_id', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'int4', '', '', '1', '32', '0', '', 'Text', '', 'Stadtteil-ID', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '7', '0', '0'); -- Attribut stammanzahl des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'stammanzahl', 'stammanzahl', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'int2', '', '', '0', '16', '0', 'SELECT 1', 'Text', '', 'Anzahl Stamm', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '18', '0', '0'); -- Attribut stammumfang des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'stammumfang', 'stammumfang', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'int4', '', '', '0', '32', '0', '', 'Text', '', 'Stammumfang [cm]', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '19', '0', '0'); -- Attribut status des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'status', 'status', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'varchar', '', '', '0', '10', NULL, 'SELECT \'Baum\'::character varying', 'Text', '', 'Status', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '9', '0', '0'); -- Attribut status_bemerkung des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'status_bemerkung', 'status_bemerkung', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'varchar', '', '', '1', '255', NULL, '', 'Text', '', 'Bemerkung (Status)', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '33', '0', '0'); -- Attribut the_geom des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'the_geom', 'the_geom', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'geometry', 'POINT', '', '1', NULL, NULL, '', 'Geometrie', '', '', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '3', '0', '0'); -- Attribut wirtschaftseinheit des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'wirtschaftseinheit', 'wirtschaftseinheit', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'varchar', '', '', '1', '15', NULL, '', 'Text', '', 'Wirtschaftseinheit', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '5', '0', '0'); -- Attribut wirtschaftseinheit_id des Layers 34 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id34, 'wirtschaftseinheit_id', 'wirtschaftseinheit_id', 'daten_baum_mit_letzter_kontrolle', 'daten_baum_mit_letzter_kontrolle', 'int4', '', '', '1', '32', '0', '', 'Text', '', 'WIE-ID', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '30', '0', '0'); -- Class 1627 des Layers 34 INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('Strauch bzw. Baum außerh.', @last_layer_id34, '(\'[status]\' == \'Gehoelz\')', '4', ''); SET @last_class_id=LAST_INSERT_ID(); -- Style 1669 der Class 1627 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, 'punkt', '7', '-1 -1 -1', '', '41 152 0', '', '', '', NULL, '2', '10', NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 1669 zu Class 1627 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 0); -- Class 1626 des Layers 34 INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('Baum Handlung notwendig', @last_layer_id34, '(\'[kontroll_status]\' = \'2\' AND \'[status]\' == \'Baum\')', '3', ''); SET @last_class_id=LAST_INSERT_ID(); -- Style 1668 der Class 1626 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, 'punkt', '13', '255 0 0', '', '0 0 0', '', '', '', NULL, '4', '17', NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 1668 zu Class 1626 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 0); -- Class 1624 des Layers 34 INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('Baum kontrolliert', @last_layer_id34, '(\'[kontroll_status]\' = \'0\' AND \'[status]\' == \'Baum\')', '1', ''); SET @last_class_id=LAST_INSERT_ID(); -- Style 1666 der Class 1624 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, 'punkt', '13', '76 159 0', '', '0 0 0', '', '', '', NULL, '4', '17', NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 1666 zu Class 1624 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 0); -- Class 1625 des Layers 34 INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('Baum nicht kontrolliert', @last_layer_id34, '(\'[kontroll_status]\' = \'1\' AND \'[status]\' == \'Baum\')', '2', ''); SET @last_class_id=LAST_INSERT_ID(); -- Style 1667 der Class 1625 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, 'punkt', '13', '255 184 19', '', '0 0 0', '', '', '', NULL, '4', '17', NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 1667 zu Class 1625 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 0); -- Layer 20 INSERT INTO layer (`Name`, `alias`, `Datentyp`, `Gruppe`, `pfad`, `maintable`, `Data`, `schema`, `document_path`, `tileindex`, `tileitem`, `labelangleitem`, `labelitem`, `labelmaxscale`, `labelminscale`, `labelrequires`, `connection`, `printconnection`, `connectiontype`, `classitem`, `filteritem`, `tolerance`, `toleranceunits`, `epsg_code`, `template`, `queryable`, `transparency`, `drawingorder`, `minscale`, `maxscale`, `offsite`, `ows_srs`, `wms_name`, `wms_server_version`, `wms_format`, `wms_connectiontimeout`, `wms_auth_username`, `wms_auth_password`, `wfs_geom`, `selectiontype`, `querymap`, `logconsume`, `processing`, `kurzbeschreibung`, `datenherr`, `metalink`, `privileg`, `trigger_function`, `sync`) VALUES ('Bäume Nummern', 'Baum Nummer', '4', @group_id, 'SELECT baumnummer FROM grunddaten_baum WHERE 1=1 AND status =\'Baum\'', 'grunddaten_baum', 'the_geom_25833 from (SELECT oid, baumnummer, the_geom_25833, status FROM baumkataster.grunddaten_baum WHERE wirtschaftseinheit_id IS NOT NULL) as foo using unique oid using srid=25833', 'baumkataster', '', '', '', '', 'baumnummer', '50000', '0', '', @connection, '', '6', 'baumnummer', '', '3', 'meters', '25833', '', '0', NULL, NULL, NULL, '50000', '', 'EPSG:25833', '', '1.0.0', 'image/png', '60', '', '', '', '', '0', '0', '', '', '', '', '0', '', '0'); SET @last_layer_id20=LAST_INSERT_ID(); -- Attribut baumnummer des Layers 20 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id20, 'baumnummer', 'baumnummer', 'grunddaten_baum', 'grunddaten_baum', 'int4', '', '', '1', '32', '0', '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, NULL, NULL, NULL, '1', '', '', '', '0', '0', '0'); -- Class 111 des Layers 20 INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('Baumnummer', @last_layer_id20, '(\'[status]\' == \'Baum\')', '6', ''); SET @last_class_id=LAST_INSERT_ID(); -- Label 8 der Class 111 INSERT INTO labels (`font`, `type`, `color`, `outlinecolor`, `shadowcolor`, `shadowsizex`, `shadowsizey`, `backgroundcolor`, `backgroundshadowcolor`, `backgroundshadowsizex`, `backgroundshadowsizey`, `size`, `minsize`, `maxsize`, `position`, `offsetx`, `offsety`, `angle`, `autoangle`, `buffer`, `antialias`, `minfeaturesize`, `maxfeaturesize`, `partials`, `wrap`, `the_force`) VALUES ('arial', NULL, '0 0 0', '255 255 255', '', NULL, NULL, '', '', NULL, NULL, '6', '2', '8', '10', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1'); SET @last_label_id=LAST_INSERT_ID(); -- Zuordnung Label 8 zu Class 111 INSERT INTO u_labels2classes (label_id, class_id) VALUES (@last_label_id, @last_class_id); -- Layer 3 INSERT INTO layer (`Name`, `alias`, `Datentyp`, `Gruppe`, `pfad`, `maintable`, `Data`, `schema`, `document_path`, `tileindex`, `tileitem`, `labelangleitem`, `labelitem`, `labelmaxscale`, `labelminscale`, `labelrequires`, `connection`, `printconnection`, `connectiontype`, `classitem`, `filteritem`, `tolerance`, `toleranceunits`, `epsg_code`, `template`, `queryable`, `transparency`, `drawingorder`, `minscale`, `maxscale`, `offsite`, `ows_srs`, `wms_name`, `wms_server_version`, `wms_format`, `wms_connectiontimeout`, `wms_auth_username`, `wms_auth_password`, `wfs_geom`, `selectiontype`, `querymap`, `logconsume`, `processing`, `kurzbeschreibung`, `datenherr`, `metalink`, `privileg`, `trigger_function`, `sync`) VALUES ('Baumkataster Dokumente', '', '5', @group_id, 'SELECT kontrollid, dokument FROM kontrollen_docs WHERE (1=1)', 'kontrollen_docs', '', 'baumkataster', '', '', '', '', '', NULL, NULL, '', @connection, '', '6', 'kontrollid', 'kontrollid', '10', 'pixels', '25833', '', '1', '100', NULL, '-1', '-1', '', 'EPSG:2398', '', '1.1.0', 'image/png', '60', '', '', '', '', '0', '0', '', '', '', '', '0', '', '0'); SET @last_layer_id3=LAST_INSERT_ID(); -- Attribut dokument des Layers 3 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id3, 'dokument', 'dokument', 'kontrollen_docs', 'kontrollen_docs', 'varchar', '', 'PRIMARY KEY', '0', '255', NULL, '', 'Dokument', '', 'Dokument', '', '', '', '', '', '', '0', '0', NULL, NULL, NULL, NULL, '1', '', '', '', '1', '0', '0'); -- Attribut kontrollid des Layers 3 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id3, 'kontrollid', 'kontrollid', 'kontrollen_docs', 'kontrollen_docs', 'int4', '', 'PRIMARY KEY', '0', '32', NULL, '', 'Text', '', 'Kontroll-ID', '', '', '', '', '', '', '0', '0', NULL, NULL, NULL, NULL, '1', '', '', '', '0', '0', '0'); -- Layer 5 INSERT INTO layer (`Name`, `alias`, `Datentyp`, `Gruppe`, `pfad`, `maintable`, `Data`, `schema`, `document_path`, `tileindex`, `tileitem`, `labelangleitem`, `labelitem`, `labelmaxscale`, `labelminscale`, `labelrequires`, `connection`, `printconnection`, `connectiontype`, `classitem`, `filteritem`, `tolerance`, `toleranceunits`, `epsg_code`, `template`, `queryable`, `transparency`, `drawingorder`, `minscale`, `maxscale`, `offsite`, `ows_srs`, `wms_name`, `wms_server_version`, `wms_format`, `wms_connectiontimeout`, `wms_auth_username`, `wms_auth_password`, `wfs_geom`, `selectiontype`, `querymap`, `logconsume`, `processing`, `kurzbeschreibung`, `datenherr`, `metalink`, `privileg`, `trigger_function`, `sync`) VALUES ('Baumkataster Kontrolldaten', '', '5', @group_id, 'SELECT baumnummer, datum, kontrollid, k.baumid, kontrollart, k.datenerfasser, baumhoehe, kronendurchmesser, stammumfang, stammanzahl, alteramstandort, entwicklungsphase,\'anzeigen ->\' AS regelkontrollen, zustand, handlungsbedarf, bemerkung, \'anzeigen\' AS dokument,datum||\': \'||kontrollart||\' durch \'||k.datenerfasser AS beschriftung_kontrolle, user_name, \'kd_all\' AS style FROM kontrollen k, grunddaten_baum g WHERE g.baumid=k.baumid ORDER BY datum', 'kontrollen', '', 'baumkataster', '', '', '', '', '', NULL, NULL, '', @connection, '', '6', 'kontrollid', 'kontrollid', '10', 'pixels', '25833', '', '1', '100', NULL, '-1', '-1', '', 'EPSG:25833', '', '1.1.0', 'image/png', '60', '', '', '', '', '0', '0', '', '', '', '', '0', '', '0'); SET @last_layer_id5=LAST_INSERT_ID(); -- Attribut alteramstandort des Layers 5 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id5, 'alteramstandort', 'alteramstandort', 'kontrollen', 'k', 'int2', '', '', '1', '16', '0', '', 'Text', '', 'Alter (am Standort)', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '10', '0', '0'); -- Attribut baumhoehe des Layers 5 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id5, 'baumhoehe', 'baumhoehe', 'kontrollen', 'k', 'int2', '', '', '0', '16', '0', '', 'Text', '', 'Baumhöhe [m]', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '6', '0', '0'); -- Attribut baumid des Layers 5 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id5, 'baumid', 'baumid', 'kontrollen', 'k', 'int4', '', '', '0', '32', '0', '', 'Text', '', 'Baum-ID', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '3', '0', '0'); -- Attribut baumnummer des Layers 5 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id5, 'baumnummer', 'baumnummer', 'grunddaten_baum', 'g', 'int4', '', '', '1', '32', '0', '', 'SubFormFK', '4,baumid;no_new_window', 'Baumnummer', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '0', '0', '0'); -- Attribut bemerkung des Layers 5 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id5, 'bemerkung', 'bemerkung', 'kontrollen', 'k', 'text', '', '', '1', NULL, NULL, '', 'Textfeld', '', 'Bemerkungen', '', '', '', '', 'Bemerkungen zum Handlungsbedarf', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '15', '0', '0'); -- Attribut beschriftung_kontrolle des Layers 5 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id5, 'beschriftung_kontrolle', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'Text', '', 'Beschriftung', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '17', '0', '0'); -- Attribut datenerfasser des Layers 5 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id5, 'datenerfasser', 'datenerfasser', 'kontrollen', 'k', 'varchar', '', '', '0', '100', NULL, 'SELECT \'Name wird nach dem Speichern angezeigt\'::character varying', 'User', '', 'Datenerfasser', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '5', '0', '0'); -- Attribut datum des Layers 5 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id5, 'datum', 'datum', 'kontrollen', 'k', 'date', '', '', '0', NULL, NULL, 'SELECT (\'now\'::text)::date', 'Text', '', 'Datum Kontrolle', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '1', '0', '0'); -- Attribut dokument des Layers 5 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id5, 'dokument', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'SubFormEmbeddedPK', '3,kontrollid,dokument;no_new_window', 'Dokumente', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '16', '0', '0'); -- Attribut entwicklungsphase des Layers 5 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id5, 'entwicklungsphase', 'entwicklungsphase', 'kontrollen', 'k', 'varchar', '', '', '1', '20', NULL, '', 'Auswahlfeld', 'select bezeichnung as value, text as output from entwicklungsphasen order by id', 'Entwicklungsphase', '', '', '', '', 'siehe Kapitel 5.2.3.1 der Baumkontrollrichtlinie (2010)', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '11', '0', '0'); -- Attribut handlungsbedarf des Layers 5 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id5, 'handlungsbedarf', 'handlungsbedarf', 'kontrollen', 'k', 'varchar', '', '', '0', '8', NULL, 'SELECT \'nein\'::character varying', 'SubFormPK', '6,kontrollid,beschriftung_handlungsbedarf;no_new_window', 'Handlungsbedarf', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '14', '0', '0'); -- Attribut kontrollart des Layers 5 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id5, 'kontrollart', 'kontrollart', 'kontrollen', 'k', 'varchar', '', '', '0', '20', NULL, 'SELECT \'Regelkontrolle\'::character varying', 'Auswahlfeld', '\'Regelkontrolle\',\'Ersterfassung\'', 'Kontrollart', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '4', '0', '0'); -- Attribut kontrollid des Layers 5 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id5, 'kontrollid', 'kontrollid', 'kontrollen', 'k', 'int4', '', 'PRIMARY KEY', '1', '32', '0', '', 'Text', '', 'Kontroll-ID', '', '', '', '', '', '', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '2', '0', '0'); -- Attribut kronendurchmesser des Layers 5 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id5, 'kronendurchmesser', 'kronendurchmesser', 'kontrollen', 'k', 'int2', '', '', '0', '16', '0', '', 'Text', '', 'Kronendurchm. [m]', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '7', '0', '0'); -- Attribut regelkontrollen des Layers 5 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id5, 'regelkontrollen', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'SubFormEmbeddedPK', '7,kontrollid,eintrag;embedded', 'Regelkontrolle', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '12', '0', '0'); -- Attribut stammanzahl des Layers 5 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id5, 'stammanzahl', 'stammanzahl', 'kontrollen', 'k', 'int2', '', '', '0', '16', '0', 'SELECT 1', 'Text', '', 'Stammanzahl', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '9', '0', '0'); -- Attribut stammumfang des Layers 5 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id5, 'stammumfang', 'stammumfang', 'kontrollen', 'k', 'int4', '', '', '0', '32', '0', '', 'Text', '', 'Stammumfang [cm]', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '8', '0', '0'); -- Attribut style des Layers 5 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id5, 'style', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'Style', '', '', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '19', '0', '0'); -- Attribut user_name des Layers 5 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id5, 'user_name', 'user_name', 'kontrollen', 'k', 'varchar', '', '', '1', '100', NULL, '', 'User', '', 'Dateneingabe durch', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '18', '0', '0'); -- Attribut zustand des Layers 5 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id5, 'zustand', 'zustand', 'kontrollen', 'k', 'varchar', '', '', '1', '50', NULL, '', 'Auswahlfeld', '\'gesund / leicht geschädigt\',\'stark geschädigt\'', 'Zustand', '', '', '', '', 'Allg. Einschätzung des Baumzustandes bez. der Stand- und Bruchsicherheit des Baumes', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '13', '0', '0'); -- Class 79 des Layers 5 INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('Handlung notwendig', @last_layer_id5, '(\'[handlungsbedarf]\' = \'ja\')', '1', ''); SET @last_class_id=LAST_INSERT_ID(); -- Style 77 der Class 79 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, 'punkt', '9', '255 0 0', '', '0 0 0', '', '', '', NULL, '2', '12', NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 77 zu Class 79 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 0); -- Layer 6 INSERT INTO layer (`Name`, `alias`, `Datentyp`, `Gruppe`, `pfad`, `maintable`, `Data`, `schema`, `document_path`, `tileindex`, `tileitem`, `labelangleitem`, `labelitem`, `labelmaxscale`, `labelminscale`, `labelrequires`, `connection`, `printconnection`, `connectiontype`, `classitem`, `filteritem`, `tolerance`, `toleranceunits`, `epsg_code`, `template`, `queryable`, `transparency`, `drawingorder`, `minscale`, `maxscale`, `offsite`, `ows_srs`, `wms_name`, `wms_server_version`, `wms_format`, `wms_connectiontimeout`, `wms_auth_username`, `wms_auth_password`, `wfs_geom`, `selectiontype`, `querymap`, `logconsume`, `processing`, `kurzbeschreibung`, `datenherr`, `metalink`, `privileg`, `trigger_function`, `sync`) VALUES ('Baumkataster Kontrolle Handlungsbedarf', '', '5', @group_id, 'SELECT kontrollid, datum || \'(\'|| kontrollid || \') \' || kontrollart as zurueck, handlungsbedarf, eingehendeuntersuchung, massnahme, massnahmeart,massnahmeart2, faellung, faellung_bemerkung, erledigung, massnahmebearbeiter,handlungsbedarf||CASE WHEN handlungsbedarf != \'ja\' THEN \'\' ELSE \': \'||erledigung END||CASE WHEN massnahmebearbeiter IS NOT NULL THEN \' durch \'||massnahmebearbeiter ELSE \'\' END AS beschriftung_handlungsbedarf FROM kontrollen WHERE (1=1)', 'kontrollen', '', 'baumkataster', '', '', '', '', '', NULL, NULL, '', @connection, '', '6', 'kontrollid', 'kontrollid', '10', 'pixels', '25833', '', '1', '100', NULL, '-1', '-1', '', 'EPSG:25833', '', '1.1.0', 'image/png', '60', '', '', '', '', '0', '0', '', '', '', '', '0', '', '0'); SET @last_layer_id6=LAST_INSERT_ID(); -- Attribut beschriftung_handlungsbedarf des Layers 6 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id6, 'beschriftung_handlungsbedarf', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '11', '0', '0'); -- Attribut eingehendeuntersuchung des Layers 6 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id6, 'eingehendeuntersuchung', 'eingehendeuntersuchung', 'kontrollen', 'kontrollen', 'varchar', '', '', '0', '4', NULL, 'SELECT \'-\'::character varying', 'Auswahlfeld', '\'nein\',\'ja\'', 'eingehende Untersuchung', '', '', '', '', 'z.B. Untersuchung auf Fäulen, Erstellung Baumgutachten', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '3', '0', '0'); -- Attribut erledigung des Layers 6 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id6, 'erledigung', 'erledigung', 'kontrollen', 'kontrollen', 'varchar', '', '', '0', '50', NULL, 'SELECT \'-\'::character varying', 'Auswahlfeld', '\'(4) Keine\',\'(1) sofort (Gefahr im Verzug)\',\'(2) innerhalb von 6 Monaten\',\'(3) in der nächsten Pflegeperiode', 'Erledigung', '', '', '', '', 'siehe Kapitel 5.3.2.3 der Baumkontrollrichtlinie (2010)', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '9', '0', '0'); -- Attribut faellung des Layers 6 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id6, 'faellung', 'faellung', 'kontrollen', 'kontrollen', 'varchar', '', '', '0', '4', NULL, 'SELECT \'nein\'::character varying', 'Auswahlfeld', '\'ja\',\'nein\'', 'Fällung', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '7', '0', '0'); -- Attribut faellung_bemerkung des Layers 6 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id6, 'faellung_bemerkung', 'faellung_bemerkung', 'kontrollen', 'kontrollen', 'varchar', '', '', '1', '255', NULL, '', 'Text', '', 'Bemerkung', '', '', '', '', '', '', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '8', '0', '0'); -- Attribut handlungsbedarf des Layers 6 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id6, 'handlungsbedarf', 'handlungsbedarf', 'kontrollen', 'kontrollen', 'varchar', '', '', '0', '8', NULL, 'SELECT \'nein\'::character varying', 'Auswahlfeld', '\'ja\',\'nein\',\'erledigt\'', 'Handlungsbedarf', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '2', '0', '0'); -- Attribut kontrollid des Layers 6 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id6, 'kontrollid', 'kontrollid', 'kontrollen', 'kontrollen', 'int4', '', 'PRIMARY KEY', '1', '32', '0', '', 'SubFormFK', '5,kontrollid;no_new_window', 'Kontroll-ID', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '0', '0', '0'); -- Attribut massnahme des Layers 6 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id6, 'massnahme', 'massnahme', 'kontrollen', 'kontrollen', 'varchar', '', '', '0', '4', NULL, 'SELECT \'-\'::character varying', 'Auswahlfeld', '\'ja\',\'nein\'', 'Baumpflegerische Maßnahme', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '4', '0', '0'); -- Attribut massnahmeart des Layers 6 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id6, 'massnahmeart', 'massnahmeart', 'kontrollen', 'kontrollen', 'varchar', '', '', '1', '50', NULL, 'SELECT \'-\'::character varying', 'Auswahlfeld', 'select bezeichnung as value, bezeichnung as output from baumkataster.massnahmearten order by bezeichnung', 'Art der Maßnahme 1', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '5', '0', '0'); -- Attribut massnahmeart2 des Layers 6 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id6, 'massnahmeart2', 'massnahmeart2', 'kontrollen', 'kontrollen', 'varchar', '', '', '1', '50', NULL, 'SELECT \'-\'::character varying', 'Auswahlfeld', 'select bezeichnung as value, bezeichnung as output from baumkataster.massnahmearten order by bezeichnung', 'Art der Maßnahme 2', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '6', '1', '0'); -- Attribut massnahmebearbeiter des Layers 6 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id6, 'massnahmebearbeiter', 'massnahmebearbeiter', 'kontrollen', 'kontrollen', 'varchar', '', '', '1', '100', NULL, '', 'Text', '', '', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '10', '0', '0'); -- Attribut zurueck des Layers 6 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id6, 'zurueck', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'SubFormFK', '5,kontrollid;no_new_window', 'Zurück zur Kontrolle vom', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '1', '0', '0'); -- Layer 40 INSERT INTO layer (`Name`, `alias`, `Datentyp`, `Gruppe`, `pfad`, `maintable`, `Data`, `schema`, `document_path`, `tileindex`, `tileitem`, `labelangleitem`, `labelitem`, `labelmaxscale`, `labelminscale`, `labelrequires`, `connection`, `printconnection`, `connectiontype`, `classitem`, `filteritem`, `tolerance`, `toleranceunits`, `epsg_code`, `template`, `queryable`, `transparency`, `drawingorder`, `minscale`, `maxscale`, `offsite`, `ows_srs`, `wms_name`, `wms_server_version`, `wms_format`, `wms_connectiontimeout`, `wms_auth_username`, `wms_auth_password`, `wfs_geom`, `selectiontype`, `querymap`, `logconsume`, `processing`, `kurzbeschreibung`, `datenherr`, `metalink`, `privileg`, `trigger_function`, `sync`) VALUES ('Baumkataster Negativkontrolle Baum', '', '5', @group_id, 'SELECT kontroll_id, baum_id, \'\' as link_baum, bemerkung FROM negativkontrolle_baum WHERE true', 'negativkontrolle_baum', '', 'baumkataster', '', '', '', '', '', NULL, NULL, '', @connection, '', '6', '', '', '10', 'pixels', '25833', '', '1', '100', '1000000000', '-1', NULL, '', 'EPSG:25833', '', '1.1.0', 'image/png', '60', '', '', '', '', '0', '0', '', '', '', '', '0', '', '0'); SET @last_layer_id40=LAST_INSERT_ID(); -- Attribut baum_id des Layers 40 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id40, 'baum_id', 'baum_id', 'negativkontrolle_baum', 'negativkontrolle_baum', 'int4', '', '', '0', '32', '0', '', 'Auswahlfeld', 'select g2b.baum_id as value, b.baumnummer || \' \' || a.bezeichnung || \' - \' || a.bezeichnunglatein as output, b.baumnummer from baumkataster.negativkontrollgebiete2baeume g2b, baumkataster.negativkontrollen k, baumkataster.grunddaten_baum b, baumkataster.baumarten a where k.gebiet_id = g2b.gebiet_id and k.kontroll_id = <requires>kontroll_id</requires> and b.baumid = g2b.baum_id and b.baumart::integer = a.baumart_id union select nb.baum_id as value, \'außerhalb: \' || b.baumnummer || \' \' || a.bezeichnung || \' - \' || a.bezeichnunglatein as output, b.baumnummer from baumkataster.grunddaten_baum b, baumkataster.baumarten a, baumkataster.negativkontrolle_baum nb LEFT JOIN baumkataster.negativkontrollgebiete2baeume g2b ON nb.baum_id = g2b.baum_id where nb.kontroll_id = <requires>kontroll_id</requires> and nb.baum_id = b.baumid and b.baumart::integer = a.baumart_id and g2b.gebiet_id IS NULL order by baumnummer', 'Baum', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '1', '0', '0'); -- Attribut bemerkung des Layers 40 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id40, 'bemerkung', 'bemerkung', 'negativkontrolle_baum', 'negativkontrolle_baum', 'text', '', '', '1', NULL, NULL, '', 'Textfeld', '', 'Bemerkung', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '3', '0', '0'); -- Attribut kontroll_id des Layers 40 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id40, 'kontroll_id', 'kontroll_id', 'negativkontrolle_baum', 'negativkontrolle_baum', 'int4', '', '', '0', '32', '0', '', 'Text', '', 'Kontroll ID', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '0', '0', '0'); -- Attribut link_baum des Layers 40 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id40, 'link_baum', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'dynamicLink', 'index.php?go=Layer-Suche_Suchen&selected_layer_id=4&value_baumid=$baum_id&operator_baumid==;anzeigen;no_new_window', '', '', '', '', '', '', '', '1', '2', NULL, '0', '0', NULL, '1', '', '', '', '2', '0', '0'); -- Layer 39 INSERT INTO layer (`Name`, `alias`, `Datentyp`, `Gruppe`, `pfad`, `maintable`, `Data`, `schema`, `document_path`, `tileindex`, `tileitem`, `labelangleitem`, `labelitem`, `labelmaxscale`, `labelminscale`, `labelrequires`, `connection`, `printconnection`, `connectiontype`, `classitem`, `filteritem`, `tolerance`, `toleranceunits`, `epsg_code`, `template`, `queryable`, `transparency`, `drawingorder`, `minscale`, `maxscale`, `offsite`, `ows_srs`, `wms_name`, `wms_server_version`, `wms_format`, `wms_connectiontimeout`, `wms_auth_username`, `wms_auth_password`, `wfs_geom`, `selectiontype`, `querymap`, `logconsume`, `processing`, `kurzbeschreibung`, `datenherr`, `metalink`, `privileg`, `trigger_function`, `sync`) VALUES ('Baumkataster Negativkontrollen', '', '5', @group_id, 'SELECT *, \'\' as baeume FROM negativkontrollen WHERE true', 'negativkontrollen', '', 'baumkataster', '', '', '', '', '', NULL, NULL, '', @connection, '', '6', '', '', '10', 'pixels', '25833', '', '1', '100', '1000000000', '-1', NULL, '', 'EPSG:25833', '', '1.1.0', 'image/png', '60', '', '', '', '', '0', '0', '', '', '', '', '0', '', '0'); SET @last_layer_id39=LAST_INSERT_ID(); -- Attribut baeume des Layers 39 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id39, 'baeume', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'SubFormEmbeddedPK', '40,kontroll_id,baum_id;embedded', 'Bäume', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '5', '0', '0'); -- Attribut datenerfasser des Layers 39 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id39, 'datenerfasser', 'datenerfasser', 'negativkontrollen', 'negativkontrollen', 'varchar', '', '', '0', '100', NULL, 'SELECT \'Name wird nach dem Speichern angezeigt\'::character varying', 'User', '', 'Datenerfasser', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '4', '0', '0'); -- Attribut datum des Layers 39 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id39, 'datum', 'datum', 'negativkontrollen', 'negativkontrollen', 'date', '', '', '0', NULL, NULL, 'SELECT (\'now\'::text)::date', 'Time', '', 'Datum', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '2', '0', '0'); -- Attribut gebiet_id des Layers 39 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id39, 'gebiet_id', 'gebiet_id', 'negativkontrollen', 'negativkontrollen', 'int4', '', '', '0', '32', '0', '', 'Text', '', 'Gebiet ID', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '1', '0', '0'); -- Attribut kontrollart des Layers 39 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id39, 'kontrollart', 'kontrollart', 'negativkontrollen', 'negativkontrollen', 'varchar', '', '', '0', '20', NULL, 'SELECT \'Regelkontrolle\'::character varying', 'Text', '', 'Kontrollart', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '3', '0', '0'); -- Attribut kontroll_id des Layers 39 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id39, 'kontroll_id', 'kontroll_id', 'negativkontrollen', 'negativkontrollen', 'int4', '', 'PRIMARY KEY', '1', '32', '0', '', 'Text', '', 'Kontroll ID', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '0', '0', '0'); -- Layer 38 INSERT INTO layer (`Name`, `alias`, `Datentyp`, `Gruppe`, `pfad`, `maintable`, `Data`, `schema`, `document_path`, `tileindex`, `tileitem`, `labelangleitem`, `labelitem`, `labelmaxscale`, `labelminscale`, `labelrequires`, `connection`, `printconnection`, `connectiontype`, `classitem`, `filteritem`, `tolerance`, `toleranceunits`, `epsg_code`, `template`, `queryable`, `transparency`, `drawingorder`, `minscale`, `maxscale`, `offsite`, `ows_srs`, `wms_name`, `wms_server_version`, `wms_format`, `wms_connectiontimeout`, `wms_auth_username`, `wms_auth_password`, `wfs_geom`, `selectiontype`, `querymap`, `logconsume`, `processing`, `kurzbeschreibung`, `datenherr`, `metalink`, `privileg`, `trigger_function`, `sync`) VALUES ('Baumkataster Negativkontrollgebiete', '', '2', @group_id, 'SELECT *, \'\' as negativkontrollen FROM negativkontrollgebiete WHERE true', 'negativkontrollgebiete', 'the_geom from (select the_geom, oid, kontroll_status from baumkataster.negativkontrollgebiete) as foo using unique oid using srid=25833', 'baumkataster', '', '', '', '', '', NULL, NULL, '', @connection, '', '6', 'kontroll_status', '', '10', 'pixels', '25833', '', '1', '100', '1000000000', NULL, NULL, '', 'EPSG:25833', '', '1.1.0', 'image/png', '60', '', '', '', '', '0', '0', '', '', '', '', '0', '', '0'); SET @last_layer_id38=LAST_INSERT_ID(); -- Attribut gebiet_id des Layers 38 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id38, 'gebiet_id', 'gebiet_id', 'negativkontrollgebiete', 'negativkontrollgebiete', 'int4', '', 'PRIMARY KEY', '1', '32', '0', '', 'Text', '', 'Gebiet ID', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '0', '0', '0'); -- Attribut kontroll_status des Layers 38 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id38, 'kontroll_status', 'kontroll_status', 'negativkontrollgebiete', 'negativkontrollgebiete', 'int4', '', '', '0', '32', '0', 'SELECT 1', 'Auswahlfeld', 'select \'0\' as value, \'durchgeführt\' as output UNION select \'1\' as value, \'nicht durchgeführt\' as output UNION select \'2\' as value, \'Handlungsbedarf\' as output', 'jährliche Kontrolle', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '1', '0', '1'); -- Attribut negativkontrollen des Layers 38 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id38, 'negativkontrollen', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'SubFormEmbeddedPK', '39,gebiet_id,datum datenerfasser;embedded', 'Negativkontrollen', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '3', '0', '0'); -- Attribut the_geom des Layers 38 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id38, 'the_geom', 'the_geom', 'negativkontrollgebiete', 'negativkontrollgebiete', 'geometry', 'MULTIPOLYGON', '', '0', NULL, NULL, '', 'Geometrie', '', '', '', '', '', '', '', '', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '2', '0', '0'); -- Class 2919 des Layers 38 INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('kontrolliert', @last_layer_id38, '0', '1', ''); SET @last_class_id=LAST_INSERT_ID(); -- Style 2963 der Class 2919 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, '', '', '-1 -1 -1', '', '76 159 0', '', '', '', NULL, NULL, NULL, NULL, NULL, '360', '', NULL, '3', NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 2963 zu Class 2919 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 0); -- Class 2918 des Layers 38 INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('nicht kontrolliert', @last_layer_id38, '1', '1', ''); SET @last_class_id=LAST_INSERT_ID(); -- Style 2964 der Class 2918 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, '', '', '-1 -1 -1', '', '255 184 19', '', '', '', NULL, NULL, NULL, NULL, NULL, '360', '', NULL, '3', NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 2964 zu Class 2918 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 0); -- Class 2917 des Layers 38 INSERT INTO classes (`Name`, `Layer_ID`, `Expression`, `drawingorder`, `text`) VALUES ('Handlung notwendig', @last_layer_id38, '2', '1', ''); SET @last_class_id=LAST_INSERT_ID(); -- Style 2962 der Class 2917 INSERT INTO styles (`symbol`, `symbolname`, `size`, `color`, `backgroundcolor`, `outlinecolor`, `colorrange`, `datarange`, `rangeitem`, `opacity`, `minsize`, `maxsize`, `minscale`, `maxscale`, `angle`, `angleitem`, `antialias`, `width`, `minwidth`, `maxwidth`, `offsetx`, `offsety`, `polaroffset`, `pattern`, `geomtransform`, `gap`, `initialgap`, `linecap`, `linejoin`, `linejoinmaxsize`) VALUES (NULL, '', '', '-1 -1 -1', '', '255 0 0', '', '', '', NULL, NULL, NULL, NULL, NULL, '', '', NULL, '3', NULL, NULL, NULL, NULL, '', '', '', NULL, NULL, '', '', NULL); SET @last_style_id=LAST_INSERT_ID(); -- Zuordnung Style 2962 zu Class 2917 INSERT INTO u_styles2classes (style_id, class_id, drawingorder) VALUES (@last_style_id, @last_class_id, 0); -- Layer 7 INSERT INTO layer (`Name`, `alias`, `Datentyp`, `Gruppe`, `pfad`, `maintable`, `Data`, `schema`, `document_path`, `tileindex`, `tileitem`, `labelangleitem`, `labelitem`, `labelmaxscale`, `labelminscale`, `labelrequires`, `connection`, `printconnection`, `connectiontype`, `classitem`, `filteritem`, `tolerance`, `toleranceunits`, `epsg_code`, `template`, `queryable`, `transparency`, `drawingorder`, `minscale`, `maxscale`, `offsite`, `ows_srs`, `wms_name`, `wms_server_version`, `wms_format`, `wms_connectiontimeout`, `wms_auth_username`, `wms_auth_password`, `wfs_geom`, `selectiontype`, `querymap`, `logconsume`, `processing`, `kurzbeschreibung`, `datenherr`, `metalink`, `privileg`, `trigger_function`, `sync`) VALUES ('Baumkataster Regelkontrolle', '', '5', @group_id, 'SELECT r.kontrollid, k.datum::text as zurueck, k1, k2, k3, k4, k5, k6, k7, k8, k9, k10, k11, k12, k13, k14, k15,k16,k17,k18,bemerkungen_krone, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13, s14,s15, bemerkungen_stamm, w1, w2, w3, w4, w5, w6, w7, w8, bemerkungen_stammfuss, wu1, wu2, wu3, bemerkungen_wurzel, v1, v2, v3, v4, v5, v6, bemerkungen_umfeld, \'Anzahl der Einträge: \'||count_true(k1::text||k2::text||k3::text||k4::text||k5::text||k6::text||k7::text||k8::text||k9::text||k10::text||k11::text||k12::text||k13::text||k14::text||k15::text||k16::text||k17::text||k18::text||s1::text||s2::text||s3::text||s4::text||s5::text||s6::text||s7::text||s8::text||s9::text||s10::text||s11::text||s12::text||s13::text||s14::text||s15::text||w1::text||w2::text||w3::text||w4::text||w5::text||w6::text||w7::text||w8::text||wu1::text||wu2::text||wu3::text||v1::text||v2::text||v3::text||v4::text||v5::text||v6::text) AS eintrag,CASE WHEN k1 THEN \'k1\'||chr(10) ELSE \'\' END || CASE WHEN k2 THEN \'k2\'||chr(10) ELSE \'\' END ||CASE WHEN k3 THEN \'k3\'||chr(10) ELSE \'\' END ||CASE WHEN k4 THEN \'k4\'||chr(10) ELSE \'\' END ||CASE WHEN k5 THEN \'k5\'||chr(10) ELSE \'\' END ||CASE WHEN k6 THEN \'k6\'||chr(10) ELSE \'\' END ||CASE WHEN k7 THEN \'k7\'||chr(10) ELSE \'\' END ||CASE WHEN k8 THEN \'k8\'||chr(10) ELSE \'\' END ||CASE WHEN k9 THEN \'k9\'||chr(10) ELSE \'\' END ||CASE WHEN k10 THEN \'k10\'||chr(10) ELSE \'\' END ||CASE WHEN k11 THEN \'k11\'||chr(10) ELSE \'\' END ||CASE WHEN k12 THEN \'k12\'||chr(10) ELSE \'\' END ||CASE WHEN k13 THEN \'k13\'||chr(10) ELSE \'\' END ||CASE WHEN k14 THEN \'k14\'||chr(10) ELSE \'\' END ||CASE WHEN k15 THEN \'k15\'||chr(10) ELSE \'\' END ||CASE WHEN k16 THEN \'k16\'||chr(10) ELSE \'\' END ||CASE WHEN k17 THEN \'k17\'||chr(10) ELSE \'\' END ||CASE WHEN k18 THEN \'k18\'||chr(10) ELSE \'\' END ||CASE WHEN s1 THEN \'s1\'||chr(10) ELSE \'\' END || CASE WHEN s2 THEN \'s2\'||chr(10) ELSE \'\' END ||CASE WHEN s3 THEN \'s3\'||chr(10) ELSE \'\' END ||CASE WHEN s4 THEN \'s4\'||chr(10) ELSE \'\' END ||CASE WHEN s5 THEN \'s5\'||chr(10) ELSE \'\' END ||CASE WHEN s6 THEN \'s6\'||chr(10) ELSE \'\' END ||CASE WHEN s7 THEN \'s7\'||chr(10) ELSE \'\' END ||CASE WHEN s8 THEN \'s8\'||chr(10) ELSE \'\' END ||CASE WHEN s9 THEN \'s9\'||chr(10) ELSE \'\' END ||CASE WHEN s10 THEN \'s10\'||chr(10) ELSE \'\' END ||CASE WHEN s11 THEN \'s11\'||chr(10) ELSE \'\' END ||CASE WHEN s12 THEN \'s12\'||chr(10) ELSE \'\' END ||CASE WHEN s13 THEN \'s13\'||chr(10) ELSE \'\' END ||CASE WHEN s14 THEN \'s14\'||chr(10) ELSE \'\' END ||CASE WHEN s15 THEN \'s15\'||chr(10) ELSE \'\' END ||CASE WHEN w1 THEN \'w1\'||chr(10) ELSE \'\' END || CASE WHEN w2 THEN \'w2\'||chr(10) ELSE \'\' END ||CASE WHEN w3 THEN \'w3\'||chr(10) ELSE \'\' END ||CASE WHEN w4 THEN \'w4\'||chr(10) ELSE \'\' END ||CASE WHEN w5 THEN \'w5\'||chr(10) ELSE \'\' END ||CASE WHEN w6 THEN \'w6\'||chr(10) ELSE \'\' END ||CASE WHEN w7 THEN \'w7\'||chr(10) ELSE \'\' END ||CASE WHEN w8 THEN \'w8\'||chr(10) ELSE \'\' END ||CASE WHEN wu1 THEN \'wu1\'||chr(10) ELSE \'\' END || CASE WHEN wu2 THEN \'wu2\'||chr(10) ELSE \'\' END ||CASE WHEN wu3 THEN \'wu3\'||chr(10) ELSE \'\' END ||CASE WHEN v1 THEN \'v1\'||chr(10) ELSE \'\' END || CASE WHEN v2 THEN \'v2\'||chr(10) ELSE \'\' END ||CASE WHEN v3 THEN \'v3\'||chr(10) ELSE \'\' END ||CASE WHEN v4 THEN \'v4\'||chr(10) ELSE \'\' END ||CASE WHEN v5 THEN \'v5\'||chr(10) ELSE \'\' END ||CASE WHEN v6 THEN \'v6\'||chr(10) ELSE \'\' END as eintraege FROM kontrollen k, regelkontrollen r WHERE k.kontrollid=r.kontrollid', 'regelkontrollen', '', 'baumkataster', '', '', '', '', '', NULL, NULL, '', @connection, '', '6', 'kontrollid', 'kontrollid', '10', 'pixels', '25833', '', '1', '100', NULL, '-1', '-1', '', 'EPSG:25833', '', '1.1.0', 'image/png', '60', '', '', '', '', '0', '0', '', '', '', '', '0', '', '0'); SET @last_layer_id7=LAST_INSERT_ID(); -- Attribut bemerkungen_krone des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'bemerkungen_krone', 'bemerkungen_krone', 'regelkontrollen', 'r', 'text', '', '', '1', NULL, NULL, '', 'Textfeld', '', 'Bemerkungen Krone', '', '', '', '', '', 'Krone', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '20', '0', '0'); -- Attribut bemerkungen_stamm des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'bemerkungen_stamm', 'bemerkungen_stamm', 'regelkontrollen', 'r', 'text', '', '', '1', NULL, NULL, '', 'Textfeld', '', 'Bemerkungen Stamm', '', '', '', '', '', 'Stamm', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '36', '0', '0'); -- Attribut bemerkungen_stammfuss des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'bemerkungen_stammfuss', 'bemerkungen_stammfuss', 'regelkontrollen', 'r', 'text', '', '', '1', NULL, NULL, '', 'Textfeld', '', 'Bemerkungen Stammfuß', '', '', '', '', '', 'Stammfuß/Wurzelanlauf', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '45', '0', '0'); -- Attribut bemerkungen_umfeld des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'bemerkungen_umfeld', 'bemerkungen_umfeld', 'regelkontrollen', 'r', 'text', '', '', '1', NULL, NULL, '', 'Textfeld', '', 'Bemerkungen Umfeld', '', '', '', '', '', 'Veränderungen im Bauumfeld;collapsed', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '56', '0', '0'); -- Attribut bemerkungen_wurzel des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'bemerkungen_wurzel', 'bemerkungen_wurzel', 'regelkontrollen', 'r', 'text', '', '', '1', NULL, NULL, '', 'Textfeld', '', 'Bemerkungen Wurzel', '', '', '', '', '', 'Wurzelbereich;collapsed', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '49', '0', '0'); -- Attribut eintraege des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'eintraege', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'Text', '', '', '', '', '', '', '', 'Eintrag;collapsed', '0', '0', NULL, '0', '0', NULL, '0', '', '', '', '58', '0', '0'); -- Attribut eintrag des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'eintrag', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'Text', '', '', '', '', '', '', '', 'Eintrag;collapsed', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '57', '0', '0'); -- Attribut k1 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'k1', 'k1', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'K1-Astab-/ausbrüche', '', '', '', '', '', 'Krone', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '2', '0', '0'); -- Attribut k10 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'k10', 'k10', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'K10-Lichtraumprofil', '', '', '', '', '', 'Krone', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '11', '0', '0'); -- Attribut k11 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'k11', 'k11', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'K11-Pilzbefall', '', '', '', '', 'Pilzart bei Bemerkung eintragen!', 'Krone', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '12', '0', '0'); -- Attribut k12 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'k12', 'k12', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'K12-Rindenschäden', '', '', '', '', '', 'Krone', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '13', '0', '0'); -- Attribut k13 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'k13', 'k13', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'K13-Totholzbildung', '', '', '', '', '', 'Krone', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '14', '0', '0'); -- Attribut k14 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'k14', 'k14', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'K14-Vergabelungen,Zwiesel', '', '', '', '', '', 'Krone', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '15', '0', '0'); -- Attribut k15 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'k15', 'k15', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'K15-Wipfeldürre', '', '', '', '', '', 'Krone', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '16', '0', '0'); -- Attribut k16 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'k16', 'k16', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'K16-Kronenauslichtung leicht (5%)', '', '', '', '', '', 'Krone', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '17', '0', '0'); -- Attribut k17 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'k17', 'k17', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'K17-Kronenauslichtung mittel (10%)', '', '', '', '', '', 'Krone', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '18', '0', '0'); -- Attribut k18 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'k18', 'k18', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'K18-Kronenauslichtung stark (15%)', '', '', '', '', '', 'Krone', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '19', '0', '0'); -- Attribut k2 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'k2', 'k2', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'K2-Astrisse', '', '', '', '', '', 'Krone', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '3', '0', '0'); -- Attribut k3 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'k3', 'k3', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'K3-Astungswunden/-fäulen', '', '', '', '', '', 'Krone', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '4', '0', '0'); -- Attribut k4 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'k4', 'k4', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'K4-Baumfremder_Bew.', '', '', '', '', '', 'Krone', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '5', '0', '0'); -- Attribut k5 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'k5', 'k5', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'K5-Belaubung/Auffälligk.', '', '', '', '', '', 'Krone', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '6', '0', '0'); -- Attribut k6 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'k6', 'k6', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'K6-Fehlentwicklung', '', '', '', '', '', 'Krone', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '7', '0', '0'); -- Attribut k7 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'k7', 'k7', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'K7-Höhlungen', '', '', '', '', '', 'Krone', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '8', '0', '0'); -- Attribut k8 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'k8', 'k8', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'K8-Kappungsstellen', '', '', '', '', '', 'Krone', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '9', '0', '0'); -- Attribut k9 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'k9', 'k9', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'K9-Kronensicherungen', '', '', '', '', '', 'Krone', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '10', '0', '0'); -- Attribut kontrollid des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'kontrollid', 'kontrollid', 'regelkontrollen', 'r', 'int4', '', '', '0', '32', '0', '', 'Text', '', 'Kontroll-ID', '', '', '', '', '', 'Krone', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '0', '0', '0'); -- Attribut s1 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 's1', 's1', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'S1-Anfahrschäden', '', '', '', '', '', 'Stamm', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '21', '0', '0'); -- Attribut s10 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 's10', 's10', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'S10-Schadinsekten', '', '', '', '', '', 'Stamm', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '30', '0', '0'); -- Attribut s11 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 's11', 's11', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'S11-Schrägstand', '', '', '', '', '', 'Stamm', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '31', '0', '0'); -- Attribut s12 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 's12', 's12', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'S12-Stammaustriebe', '', '', '', '', '', 'Stamm', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '32', '0', '0'); -- Attribut s13 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 's13', 's13', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'S13-Verletzungen', '', '', '', '', '', 'Stamm', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '33', '0', '0'); -- Attribut s14 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 's14', 's14', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'S14-Wuchsanomalien', '', '', '', '', '', 'Stamm', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '34', '0', '0'); -- Attribut s15 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 's15', 's15', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'S15', '', '', '', '', '', 'Stamm', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '35', '0', '0'); -- Attribut s2 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 's2', 's2', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'S2-Astungswunden', '', '', '', '', '', 'Stamm', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '22', '0', '0'); -- Attribut s3 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 's3', 's3', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'S3-Baumfremder_Bew.', '', '', '', '', '', 'Stamm', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '23', '0', '0'); -- Attribut s4 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 's4', 's4', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'S4-Fäulen', '', '', '', '', '', 'Stamm', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '24', '0', '0'); -- Attribut s5 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 's5', 's5', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'S5-Gewindestangen', '', '', '', '', '', 'Stamm', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '25', '0', '0'); -- Attribut s6 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 's6', 's6', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'S6-Höhlungen', '', '', '', '', '', 'Stamm', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '26', '0', '0'); -- Attribut s7 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 's7', 's7', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'S7-Pilzbefall', '', '', '', '', 'Pilzart bei Bemerkung eintragen!', 'Stamm', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '27', '0', '0'); -- Attribut s8 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 's8', 's8', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'S8-Rindenschäden', '', '', '', '', '', 'Stamm', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '28', '0', '0'); -- Attribut s9 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 's9', 's9', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'S9-Risse', '', '', '', '', '', 'Stamm', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '29', '0', '0'); -- Attribut v1 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'v1', 'v1', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'V1-Baugruben/-gräben', '', '', '', '', '', 'Veränderungen im Bauumfeld;collapsed', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '50', '0', '0'); -- Attribut v2 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'v2', 'v2', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'V2-Bodenauf-/-abtrag', '', '', '', '', '', 'Veränderungen im Bauumfeld;collapsed', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '51', '0', '0'); -- Attribut v3 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'v3', 'v3', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'V3-Bodenverdichtung', '', '', '', '', '', 'Veränderungen im Bauumfeld;collapsed', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '52', '0', '0'); -- Attribut v4 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'v4', 'v4', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'V4-Bodenversiegelung', '', '', '', '', '', 'Veränderungen im Bauumfeld;collapsed', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '53', '0', '0'); -- Attribut v5 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'v5', 'v5', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'V5-Freistellung', '', '', '', '', '', 'Veränderungen im Bauumfeld;collapsed', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '54', '0', '0'); -- Attribut v6 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'v6', 'v6', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'V6-Grundwasserabsenkung/-stau', '', '', '', '', '', 'Veränderungen im Bauumfeld;collapsed', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '55', '0', '0'); -- Attribut w1 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'w1', 'w1', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'W1-Adventiv-/Würgewurzeln', '', '', '', '', '', 'Stammfuß/Wurzelanlauf', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '37', '0', '0'); -- Attribut w2 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'w2', 'w2', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'W2-Höhlungen', '', '', '', '', '', 'Stammfuß/Wurzelanlauf', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '38', '0', '0'); -- Attribut w3 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'w3', 'w3', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'W3-Pilzbefall', '', '', '', '', 'Pilzart bei Bemerkung eintragen!', 'Stammfuß/Wurzelanlauf', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '39', '0', '0'); -- Attribut w4 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'w4', 'w4', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'W4-Rindenschäden', '', '', '', '', '', 'Stammfuß/Wurzelanlauf', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '40', '0', '0'); -- Attribut w5 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'w5', 'w5', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'W5-Risse', '', '', '', '', '', 'Stammfuß/Wurzelanlauf', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '41', '0', '0'); -- Attribut w6 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'w6', 'w6', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'W6-Verbreiterung', '', '', '', '', '', 'Stammfuß/Wurzelanlauf', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '42', '0', '0'); -- Attribut w7 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'w7', 'w7', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'W7-Stockaustriebe', '', '', '', '', '', 'Stammfuß/Wurzelanlauf', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '43', '0', '0'); -- Attribut w8 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'w8', 'w8', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'W8-Wuchsanomalien', '', '', '', '', '', 'Stammfuß/Wurzelanlauf', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '44', '0', '0'); -- Attribut wu1 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'wu1', 'wu1', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'Wu1-Bodenaufwölbungen', '', '', '', '', '', 'Wurzelbereich;collapsed', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '46', '0', '0'); -- Attribut wu2 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'wu2', 'wu2', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'Wu2-Bodenrisse', '', '', '', '', '', 'Wurzelbereich;collapsed', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '47', '0', '0'); -- Attribut wu3 des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'wu3', 'wu3', 'regelkontrollen', 'r', 'bool', '', '', '1', NULL, NULL, '', 'Checkbox', '', 'Wu3-Pilzbefall', '', '', '', '', 'Pilzart bei Bemerkung eintragen!', 'Wurzelbereich;collapsed', '1', '0', NULL, '0', '0', NULL, '1', '', '', '', '48', '0', '0'); -- Attribut zurueck des Layers 7 INSERT INTO layer_attributes (`layer_id`, `name`, `real_name`, `tablename`, `table_alias_name`, `type`, `geometrytype`, `constraints`, `nullable`, `length`, `decimal_length`, `default`, `form_element_type`, `options`, `alias`, `alias_low-german`, `alias_english`, `alias_polish`, `alias_vietnamese`, `tooltip`, `group`, `arrangement`, `labeling`, `raster_visibility`, `dont_use_for_new`, `mandatory`, `quicksearch`, `visible`, `vcheck_attribute`, `vcheck_operator`, `vcheck_value`, `order`, `privileg`, `query_tooltip`) VALUES (@last_layer_id7, 'zurueck', '', '', '', 'not_saveable', '', '', NULL, NULL, NULL, '', 'SubFormFK', '5,kontrollid;no_new_window', 'zur Kontrolle', '', '', '', '', '', 'Krone', '0', '0', NULL, '0', '0', NULL, '1', '', '', '', '1', '0', '0'); -- Replace attribute options for Layer 31 UPDATE layer_attributes SET options = REPLACE(options, 'layer_id=31', CONCAT('layer_id=', @last_layer_id31)) WHERE layer_id IN (@last_layer_id31, @last_layer_id4, @last_layer_id35, @last_layer_id37, @last_layer_id33, @last_layer_id34, @last_layer_id20, @last_layer_id3, @last_layer_id5, @last_layer_id6, @last_layer_id40, @last_layer_id39, @last_layer_id38, @last_layer_id7) AND form_element_type IN ('Autovervollständigungsfeld', 'Auswahlfeld', 'Link','dynamicLink'); UPDATE layer_attributes SET options = REPLACE(options, '31,', CONCAT(@last_layer_id31, ',')) WHERE layer_id IN (@last_layer_id31, @last_layer_id4, @last_layer_id35, @last_layer_id37, @last_layer_id33, @last_layer_id34, @last_layer_id20, @last_layer_id3, @last_layer_id5, @last_layer_id6, @last_layer_id40, @last_layer_id39, @last_layer_id38, @last_layer_id7) AND form_element_type IN ('SubFormPK', 'SubFormFK', 'SubFormEmbeddedPK'); -- Replace attribute options for Layer 4 UPDATE layer_attributes SET options = REPLACE(options, 'layer_id=4', CONCAT('layer_id=', @last_layer_id4)) WHERE layer_id IN (@last_layer_id31, @last_layer_id4, @last_layer_id35, @last_layer_id37, @last_layer_id33, @last_layer_id34, @last_layer_id20, @last_layer_id3, @last_layer_id5, @last_layer_id6, @last_layer_id40, @last_layer_id39, @last_layer_id38, @last_layer_id7) AND form_element_type IN ('Autovervollständigungsfeld', 'Auswahlfeld', 'Link','dynamicLink'); UPDATE layer_attributes SET options = REPLACE(options, '4,', CONCAT(@last_layer_id4, ',')) WHERE layer_id IN (@last_layer_id31, @last_layer_id4, @last_layer_id35, @last_layer_id37, @last_layer_id33, @last_layer_id34, @last_layer_id20, @last_layer_id3, @last_layer_id5, @last_layer_id6, @last_layer_id40, @last_layer_id39, @last_layer_id38, @last_layer_id7) AND form_element_type IN ('SubFormPK', 'SubFormFK', 'SubFormEmbeddedPK'); -- Replace attribute options for Layer 35 UPDATE layer_attributes SET options = REPLACE(options, 'layer_id=35', CONCAT('layer_id=', @last_layer_id35)) WHERE layer_id IN (@last_layer_id31, @last_layer_id4, @last_layer_id35, @last_layer_id37, @last_layer_id33, @last_layer_id34, @last_layer_id20, @last_layer_id3, @last_layer_id5, @last_layer_id6, @last_layer_id40, @last_layer_id39, @last_layer_id38, @last_layer_id7) AND form_element_type IN ('Autovervollständigungsfeld', 'Auswahlfeld', 'Link','dynamicLink'); UPDATE layer_attributes SET options = REPLACE(options, '35,', CONCAT(@last_layer_id35, ',')) WHERE layer_id IN (@last_layer_id31, @last_layer_id4, @last_layer_id35, @last_layer_id37, @last_layer_id33, @last_layer_id34, @last_layer_id20, @last_layer_id3, @last_layer_id5, @last_layer_id6, @last_layer_id40, @last_layer_id39, @last_layer_id38, @last_layer_id7) AND form_element_type IN ('SubFormPK', 'SubFormFK', 'SubFormEmbeddedPK'); -- Replace attribute options for Layer 37 UPDATE layer_attributes SET options = REPLACE(options, 'layer_id=37', CONCAT('layer_id=', @last_layer_id37)) WHERE layer_id IN (@last_layer_id31, @last_layer_id4, @last_layer_id35, @last_layer_id37, @last_layer_id33, @last_layer_id34, @last_layer_id20, @last_layer_id3, @last_layer_id5, @last_layer_id6, @last_layer_id40, @last_layer_id39, @last_layer_id38, @last_layer_id7) AND form_element_type IN ('Autovervollständigungsfeld', 'Auswahlfeld', 'Link','dynamicLink'); UPDATE layer_attributes SET options = REPLACE(options, '37,', CONCAT(@last_layer_id37, ',')) WHERE layer_id IN (@last_layer_id31, @last_layer_id4, @last_layer_id35, @last_layer_id37, @last_layer_id33, @last_layer_id34, @last_layer_id20, @last_layer_id3, @last_layer_id5, @last_layer_id6, @last_layer_id40, @last_layer_id39, @last_layer_id38, @last_layer_id7) AND form_element_type IN ('SubFormPK', 'SubFormFK', 'SubFormEmbeddedPK'); -- Replace attribute options for Layer 33 UPDATE layer_attributes SET options = REPLACE(options, 'layer_id=33', CONCAT('layer_id=', @last_layer_id33)) WHERE layer_id IN (@last_layer_id31, @last_layer_id4, @last_layer_id35, @last_layer_id37, @last_layer_id33, @last_layer_id34, @last_layer_id20, @last_layer_id3, @last_layer_id5, @last_layer_id6, @last_layer_id40, @last_layer_id39, @last_layer_id38, @last_layer_id7) AND form_element_type IN ('Autovervollständigungsfeld', 'Auswahlfeld', 'Link','dynamicLink'); UPDATE layer_attributes SET options = REPLACE(options, '33,', CONCAT(@last_layer_id33, ',')) WHERE layer_id IN (@last_layer_id31, @last_layer_id4, @last_layer_id35, @last_layer_id37, @last_layer_id33, @last_layer_id34, @last_layer_id20, @last_layer_id3, @last_layer_id5, @last_layer_id6, @last_layer_id40, @last_layer_id39, @last_layer_id38, @last_layer_id7) AND form_element_type IN ('SubFormPK', 'SubFormFK', 'SubFormEmbeddedPK'); -- Replace attribute options for Layer 34 UPDATE layer_attributes SET options = REPLACE(options, 'layer_id=34', CONCAT('layer_id=', @last_layer_id34)) WHERE layer_id IN (@last_layer_id31, @last_layer_id4, @last_layer_id35, @last_layer_id37, @last_layer_id33, @last_layer_id34, @last_layer_id20, @last_layer_id3, @last_layer_id5, @last_layer_id6, @last_layer_id40, @last_layer_id39, @last_layer_id38, @last_layer_id7) AND form_element_type IN ('Autovervollständigungsfeld', 'Auswahlfeld', 'Link','dynamicLink'); UPDATE layer_attributes SET options = REPLACE(options, '34,', CONCAT(@last_layer_id34, ',')) WHERE layer_id IN (@last_layer_id31, @last_layer_id4, @last_layer_id35, @last_layer_id37, @last_layer_id33, @last_layer_id34, @last_layer_id20, @last_layer_id3, @last_layer_id5, @last_layer_id6, @last_layer_id40, @last_layer_id39, @last_layer_id38, @last_layer_id7) AND form_element_type IN ('SubFormPK', 'SubFormFK', 'SubFormEmbeddedPK'); -- Replace attribute options for Layer 20 UPDATE layer_attributes SET options = REPLACE(options, 'layer_id=20', CONCAT('layer_id=', @last_layer_id20)) WHERE layer_id IN (@last_layer_id31, @last_layer_id4, @last_layer_id35, @last_layer_id37, @last_layer_id33, @last_layer_id34, @last_layer_id20, @last_layer_id3, @last_layer_id5, @last_layer_id6, @last_layer_id40, @last_layer_id39, @last_layer_id38, @last_layer_id7) AND form_element_type IN ('Autovervollständigungsfeld', 'Auswahlfeld', 'Link','dynamicLink'); UPDATE layer_attributes SET options = REPLACE(options, '20,', CONCAT(@last_layer_id20, ',')) WHERE layer_id IN (@last_layer_id31, @last_layer_id4, @last_layer_id35, @last_layer_id37, @last_layer_id33, @last_layer_id34, @last_layer_id20, @last_layer_id3, @last_layer_id5, @last_layer_id6, @last_layer_id40, @last_layer_id39, @last_layer_id38, @last_layer_id7) AND form_element_type IN ('SubFormPK', 'SubFormFK', 'SubFormEmbeddedPK'); -- Replace attribute options for Layer 3 UPDATE layer_attributes SET options = REPLACE(options, 'layer_id=3', CONCAT('layer_id=', @last_layer_id3)) WHERE layer_id IN (@last_layer_id31, @last_layer_id4, @last_layer_id35, @last_layer_id37, @last_layer_id33, @last_layer_id34, @last_layer_id20, @last_layer_id3, @last_layer_id5, @last_layer_id6, @last_layer_id40, @last_layer_id39, @last_layer_id38, @last_layer_id7) AND form_element_type IN ('Autovervollständigungsfeld', 'Auswahlfeld', 'Link','dynamicLink'); UPDATE layer_attributes SET options = REPLACE(options, '3,', CONCAT(@last_layer_id3, ',')) WHERE layer_id IN (@last_layer_id31, @last_layer_id4, @last_layer_id35, @last_layer_id37, @last_layer_id33, @last_layer_id34, @last_layer_id20, @last_layer_id3, @last_layer_id5, @last_layer_id6, @last_layer_id40, @last_layer_id39, @last_layer_id38, @last_layer_id7) AND form_element_type IN ('SubFormPK', 'SubFormFK', 'SubFormEmbeddedPK'); -- Replace attribute options for Layer 5 UPDATE layer_attributes SET options = REPLACE(options, 'layer_id=5', CONCAT('layer_id=', @last_layer_id5)) WHERE layer_id IN (@last_layer_id31, @last_layer_id4, @last_layer_id35, @last_layer_id37, @last_layer_id33, @last_layer_id34, @last_layer_id20, @last_layer_id3, @last_layer_id5, @last_layer_id6, @last_layer_id40, @last_layer_id39, @last_layer_id38, @last_layer_id7) AND form_element_type IN ('Autovervollständigungsfeld', 'Auswahlfeld', 'Link','dynamicLink'); UPDATE layer_attributes SET options = REPLACE(options, '5,', CONCAT(@last_layer_id5, ',')) WHERE layer_id IN (@last_layer_id31, @last_layer_id4, @last_layer_id35, @last_layer_id37, @last_layer_id33, @last_layer_id34, @last_layer_id20, @last_layer_id3, @last_layer_id5, @last_layer_id6, @last_layer_id40, @last_layer_id39, @last_layer_id38, @last_layer_id7) AND form_element_type IN ('SubFormPK', 'SubFormFK', 'SubFormEmbeddedPK'); -- Replace attribute options for Layer 6 UPDATE layer_attributes SET options = REPLACE(options, 'layer_id=6', CONCAT('layer_id=', @last_layer_id6)) WHERE layer_id IN (@last_layer_id31, @last_layer_id4, @last_layer_id35, @last_layer_id37, @last_layer_id33, @last_layer_id34, @last_layer_id20, @last_layer_id3, @last_layer_id5, @last_layer_id6, @last_layer_id40, @last_layer_id39, @last_layer_id38, @last_layer_id7) AND form_element_type IN ('Autovervollständigungsfeld', 'Auswahlfeld', 'Link','dynamicLink'); UPDATE layer_attributes SET options = REPLACE(options, '6,', CONCAT(@last_layer_id6, ',')) WHERE layer_id IN (@last_layer_id31, @last_layer_id4, @last_layer_id35, @last_layer_id37, @last_layer_id33, @last_layer_id34, @last_layer_id20, @last_layer_id3, @last_layer_id5, @last_layer_id6, @last_layer_id40, @last_layer_id39, @last_layer_id38, @last_layer_id7) AND form_element_type IN ('SubFormPK', 'SubFormFK', 'SubFormEmbeddedPK'); -- Replace attribute options for Layer 40 UPDATE layer_attributes SET options = REPLACE(options, 'layer_id=40', CONCAT('layer_id=', @last_layer_id40)) WHERE layer_id IN (@last_layer_id31, @last_layer_id4, @last_layer_id35, @last_layer_id37, @last_layer_id33, @last_layer_id34, @last_layer_id20, @last_layer_id3, @last_layer_id5, @last_layer_id6, @last_layer_id40, @last_layer_id39, @last_layer_id38, @last_layer_id7) AND form_element_type IN ('Autovervollständigungsfeld', 'Auswahlfeld', 'Link','dynamicLink'); UPDATE layer_attributes SET options = REPLACE(options, '40,', CONCAT(@last_layer_id40, ',')) WHERE layer_id IN (@last_layer_id31, @last_layer_id4, @last_layer_id35, @last_layer_id37, @last_layer_id33, @last_layer_id34, @last_layer_id20, @last_layer_id3, @last_layer_id5, @last_layer_id6, @last_layer_id40, @last_layer_id39, @last_layer_id38, @last_layer_id7) AND form_element_type IN ('SubFormPK', 'SubFormFK', 'SubFormEmbeddedPK'); -- Replace attribute options for Layer 39 UPDATE layer_attributes SET options = REPLACE(options, 'layer_id=39', CONCAT('layer_id=', @last_layer_id39)) WHERE layer_id IN (@last_layer_id31, @last_layer_id4, @last_layer_id35, @last_layer_id37, @last_layer_id33, @last_layer_id34, @last_layer_id20, @last_layer_id3, @last_layer_id5, @last_layer_id6, @last_layer_id40, @last_layer_id39, @last_layer_id38, @last_layer_id7) AND form_element_type IN ('Autovervollständigungsfeld', 'Auswahlfeld', 'Link','dynamicLink'); UPDATE layer_attributes SET options = REPLACE(options, '39,', CONCAT(@last_layer_id39, ',')) WHERE layer_id IN (@last_layer_id31, @last_layer_id4, @last_layer_id35, @last_layer_id37, @last_layer_id33, @last_layer_id34, @last_layer_id20, @last_layer_id3, @last_layer_id5, @last_layer_id6, @last_layer_id40, @last_layer_id39, @last_layer_id38, @last_layer_id7) AND form_element_type IN ('SubFormPK', 'SubFormFK', 'SubFormEmbeddedPK'); -- Replace attribute options for Layer 38 UPDATE layer_attributes SET options = REPLACE(options, 'layer_id=38', CONCAT('layer_id=', @last_layer_id38)) WHERE layer_id IN (@last_layer_id31, @last_layer_id4, @last_layer_id35, @last_layer_id37, @last_layer_id33, @last_layer_id34, @last_layer_id20, @last_layer_id3, @last_layer_id5, @last_layer_id6, @last_layer_id40, @last_layer_id39, @last_layer_id38, @last_layer_id7) AND form_element_type IN ('Autovervollständigungsfeld', 'Auswahlfeld', 'Link','dynamicLink'); UPDATE layer_attributes SET options = REPLACE(options, '38,', CONCAT(@last_layer_id38, ',')) WHERE layer_id IN (@last_layer_id31, @last_layer_id4, @last_layer_id35, @last_layer_id37, @last_layer_id33, @last_layer_id34, @last_layer_id20, @last_layer_id3, @last_layer_id5, @last_layer_id6, @last_layer_id40, @last_layer_id39, @last_layer_id38, @last_layer_id7) AND form_element_type IN ('SubFormPK', 'SubFormFK', 'SubFormEmbeddedPK'); -- Replace attribute options for Layer 7 UPDATE layer_attributes SET options = REPLACE(options, 'layer_id=7', CONCAT('layer_id=', @last_layer_id7)) WHERE layer_id IN (@last_layer_id31, @last_layer_id4, @last_layer_id35, @last_layer_id37, @last_layer_id33, @last_layer_id34, @last_layer_id20, @last_layer_id3, @last_layer_id5, @last_layer_id6, @last_layer_id40, @last_layer_id39, @last_layer_id38, @last_layer_id7) AND form_element_type IN ('Autovervollständigungsfeld', 'Auswahlfeld', 'Link','dynamicLink'); UPDATE layer_attributes SET options = REPLACE(options, '7,', CONCAT(@last_layer_id7, ',')) WHERE layer_id IN (@last_layer_id31, @last_layer_id4, @last_layer_id35, @last_layer_id37, @last_layer_id33, @last_layer_id34, @last_layer_id20, @last_layer_id3, @last_layer_id5, @last_layer_id6, @last_layer_id40, @last_layer_id39, @last_layer_id38, @last_layer_id7) AND form_element_type IN ('SubFormPK', 'SubFormFK', 'SubFormEmbeddedPK');