# HG changeset patch # User Andre Heinecke # Date 1363881127 -3600 # Node ID 51db7fbc2e773675fc1e6ce5a7f962efd0172f68 # Parent 7b35f2c070c3f0715cdbd4184138a56b7d565ad7 Add HWS Lines and HWS Points folder structures to the datacage diff -r 7b35f2c070c3 -r 51db7fbc2e77 flys-artifacts/doc/conf/meta-data.xml --- a/flys-artifacts/doc/conf/meta-data.xml Thu Mar 21 17:37:41 2013 +0100 +++ b/flys-artifacts/doc/conf/meta-data.xml Thu Mar 21 16:52:07 2013 +0100 @@ -1260,40 +1260,264 @@ - - - - SELECT count(*) as km_exists, name as name - FROM hws_lines WHERE river_id = ${river_id} GROUP BY name - - - - - - - - - + + + + Call from a context where fed_name hws_kind hws_name and river_id is + availble + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT DISTINCT + fs.name AS fed_name, + fs.id AS fed_id + FROM hws_lines hws + JOIN fed_states fs ON hws.fed_state_id = fs.id + WHERE river_id = ${river_id} + AND hws.official=1 + + + + + SELECT DISTINCT + name AS hws_name, + kind_id AS hws_kind + FROM hws_lines + WHERE river_id = ${river_id} + AND official=1 + AND fed_state_id = ${fed_id} ORDER BY name + + + + + + + + + + + SELECT distinct + name AS hws_name, + kind_id AS hws_kind + FROM hws_lines + WHERE river_id = ${river_id} + AND official=1 + AND fed_state_id IS NULL + ORDER BY name + + + + + + + + + + SELECT DISTINCT + fs.name AS fed_name, + fs.id AS fed_id + FROM hws_lines hws + JOIN fed_states fs ON hws.fed_state_id = fs.id + WHERE river_id = ${river_id} + AND hws.official=0 + + + + + SELECT DISTINCT + name AS hws_name, + kind_id AS hws_kind + FROM hws_lines + WHERE river_id = ${river_id} + AND official=0 + AND fed_state_id = ${fed_id} ORDER BY name + + + + + + + + + + + SELECT distinct + name AS hws_name, + kind_id AS hws_kind + FROM hws_lines + WHERE river_id = ${river_id} + AND official=0 + AND fed_state_id IS NULL ORDER BY name + + + + + + + + + + + + Call from a context where fed_name hws_kind hws_name and river_id is + availble + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - SELECT count(*) as km_exists, name as name - FROM hws_points WHERE river_id = ${river_id} GROUP BY name - - - - - - - - - - - - + + + + + SELECT DISTINCT + fs.name AS fed_name, + fs.id AS fed_id + FROM hws_points hws + JOIN fed_states fs ON hws.fed_state_id = fs.id + WHERE river_id = ${river_id} + AND hws.official=1 + + + + + SELECT DISTINCT + name AS hws_name, + kind_id AS hws_kind + FROM hws_points + WHERE river_id = ${river_id} + AND official=1 + AND fed_state_id = ${fed_id} ORDER BY name + + + + + + + + + + + SELECT distinct + name AS hws_name, + kind_id AS hws_kind + FROM hws_points + WHERE river_id = ${river_id} + AND official=1 + AND fed_state_id IS NULL + ORDER BY name + + + + + + + + + + SELECT DISTINCT + fs.name AS fed_name, + fs.id AS fed_id + FROM hws_points hws + JOIN fed_states fs ON hws.fed_state_id = fs.id + WHERE river_id = ${river_id} + AND hws.official=0 + + + + + SELECT DISTINCT + name AS hws_name, + kind_id AS hws_kind + FROM hws_points + WHERE river_id = ${river_id} + AND official=0 + AND fed_state_id = ${fed_id} ORDER BY name + + + + + + + + + + + SELECT distinct + name AS hws_name, + kind_id AS hws_kind + FROM hws_points + WHERE river_id = ${river_id} + AND official=0 + AND fed_state_id IS NULL ORDER BY name + + + + + + + + + + @@ -1454,12 +1678,8 @@ - - - - - - + + diff -r 7b35f2c070c3 -r 51db7fbc2e77 flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java Thu Mar 21 17:37:41 2013 +0100 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java Thu Mar 21 16:52:07 2013 +0100 @@ -1162,6 +1162,8 @@ String hws_points(); + String hws_fed_unknown(); + } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : diff -r 7b35f2c070c3 -r 51db7fbc2e77 flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties --- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties Thu Mar 21 17:37:41 2013 +0100 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties Thu Mar 21 16:52:07 2013 +0100 @@ -460,6 +460,7 @@ custom_lines = Own Digitalizations hws_lines = Lines hws_points = Points +hws_fed_unknown = Unknown State startcolor = Colorrange start color endcolor = Colorrange end color diff -r 7b35f2c070c3 -r 51db7fbc2e77 flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties --- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties Thu Mar 21 17:37:41 2013 +0100 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties Thu Mar 21 16:52:07 2013 +0100 @@ -461,6 +461,7 @@ custom_lines = Eigene Digitalisierungen hws_lines = Liniendaten hws_points = Punktdaten +hws_fed_unknown = Unbekanntes Bundesland startcolor = Farbverlauf Startfarbe endcolor = Farbverlauf Endfarbe