# HG changeset patch # User Tim Englich # Date 1263300173 0 # Node ID 62fc63d0f71d979be00d5e40f560f4b447b0c7ba # Parent 7ba4c72222655130a42fcb74c1a5cb38c454beec Added a new State in Product Verticalprofile in Timeseriespoints. Now it will be displayed the Years where measurements happened and than only the dates of the chosen Year will be fetched and displayed. gnv-artifacts/trunk@532 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 7ba4c7222265 -r 62fc63d0f71d gnv-artifacts/ChangeLog --- a/gnv-artifacts/ChangeLog Tue Jan 12 11:34:25 2010 +0000 +++ b/gnv-artifacts/ChangeLog Tue Jan 12 12:42:53 2010 +0000 @@ -1,5 +1,17 @@ 2010-01-12 Tim Englich + * doc/conf/queries.properties: + Added Query for Years in VerticalProfiles in TimeSeriesPoints. + Modified the Query for Dates in VerticalProfiles in TimeSeriesPoints. + + * doc/conf/products/verticalprofile/conf_timeseriespoint.xml: + Added State for choosing the year and than it will only display + the Dates which are within the coosen year. + + * src/main/resources/lang/artifactMessages*.properties: + Added Ressource for diaplaying year. + +2010-01-12 Tim Englich * src/main/java/de/intevation/gnv/artifacts/context/GNVArtifactContextFactory.java (configureHorizontalCrossSection): Added the Method to load the Configurationsettings for horizontal-cross-sections from the global Configuartion and put it into the Context. diff -r 7ba4c7222265 -r 62fc63d0f71d gnv-artifacts/doc/conf/products/verticalprofile/conf_timeseriespoint.xml --- a/gnv-artifacts/doc/conf/products/verticalprofile/conf_timeseriespoint.xml Tue Jan 12 11:34:25 2010 +0000 +++ b/gnv-artifacts/doc/conf/products/verticalprofile/conf_timeseriespoint.xml Tue Jan 12 12:42:53 2010 +0000 @@ -87,6 +87,23 @@ + + + + + verticalprofile_year + yearid + true + + + + + + + + + + @@ -97,6 +114,7 @@ + diff -r 7ba4c7222265 -r 62fc63d0f71d gnv-artifacts/doc/conf/queries.properties --- a/gnv-artifacts/doc/conf/queries.properties Tue Jan 12 11:34:25 2010 +0000 +++ b/gnv-artifacts/doc/conf/queries.properties Tue Jan 12 12:42:53 2010 +0000 @@ -261,6 +261,19 @@ M.FEATUREID = ? and \ TS.PARAMETERID IN ( ? ) + +verticalprofile_year=select distinct \ + to_char(tsv.TIMEVALUE,'YYYY') KEY, \ + to_char(tsv.TIMEVALUE,'YYYY') VALUE \ + from MEDIAN.TIMESERIES ts, \ + MEDIAN.TIMESERIESVALUE tsv, \ + MEDIAN.MEASUREMENT m \ + where ts.TIMESERIESID = tsv.TIMESERIESID and \ + m.MEASUREMENTID = tsv.MEASUREMENTID and \ + m.FEATUREID = ? and \ + ts.PARAMETERID IN ( ? ) \ + order by to_char(tsv.TIMEVALUE,'YYYY') + verticalprofile_date=select distinct \ tsv.TIMEVALUE KEY, \ tsv.TIMEVALUE VALUE \ @@ -270,7 +283,8 @@ where ts.TIMESERIESID = tsv.TIMESERIESID and \ m.MEASUREMENTID = tsv.MEASUREMENTID and \ m.FEATUREID = ? and \ - ts.PARAMETERID IN ( ? ) \ + ts.PARAMETERID IN ( ? ) and \ + to_char(tsv.TIMEVALUE,'YYYY') IN (?) \ order by tsv.TIMEVALUE verticalprofile_chart_data= SELECT M.ZLOCATION XORDINATE, \ diff -r 7ba4c7222265 -r 62fc63d0f71d gnv-artifacts/src/main/resources/lang/artifactMessages.properties --- a/gnv-artifacts/src/main/resources/lang/artifactMessages.properties Tue Jan 12 11:34:25 2010 +0000 +++ b/gnv-artifacts/src/main/resources/lang/artifactMessages.properties Tue Jan 12 12:42:53 2010 +0000 @@ -33,6 +33,7 @@ mindepthid = Deepest Layer maxdepthid = Highest Layer parameterid = Parameter +yearid = Year timeinterval = Time period minvalue = from maxvalue = to diff -r 7ba4c7222265 -r 62fc63d0f71d gnv-artifacts/src/main/resources/lang/artifactMessages_de.properties --- a/gnv-artifacts/src/main/resources/lang/artifactMessages_de.properties Tue Jan 12 11:34:25 2010 +0000 +++ b/gnv-artifacts/src/main/resources/lang/artifactMessages_de.properties Tue Jan 12 12:42:53 2010 +0000 @@ -33,6 +33,7 @@ mindepthid = Untere Grenzschicht maxdepthid = Obere Grenzschicht parameterid = Parameter +yearid = Jahr timeinterval = Zeitfenster minvalue = von maxvalue = bis diff -r 7ba4c7222265 -r 62fc63d0f71d gnv-artifacts/src/main/resources/lang/artifactMessages_de_DE.properties --- a/gnv-artifacts/src/main/resources/lang/artifactMessages_de_DE.properties Tue Jan 12 11:34:25 2010 +0000 +++ b/gnv-artifacts/src/main/resources/lang/artifactMessages_de_DE.properties Tue Jan 12 12:42:53 2010 +0000 @@ -33,6 +33,7 @@ mindepthid = Untere Grenzschicht maxdepthid = Obere Grenzschicht parameterid = Parameter +yearid = Jahr timeinterval = Zeitfenster minvalue = von maxvalue = bis diff -r 7ba4c7222265 -r 62fc63d0f71d gnv-artifacts/src/main/resources/lang/artifactMessages_en.properties --- a/gnv-artifacts/src/main/resources/lang/artifactMessages_en.properties Tue Jan 12 11:34:25 2010 +0000 +++ b/gnv-artifacts/src/main/resources/lang/artifactMessages_en.properties Tue Jan 12 12:42:53 2010 +0000 @@ -33,6 +33,7 @@ mindepthid = Deepest Layer maxdepthid = Highest Layer parameterid = Parameter +yearid = Year timeinterval = Time period minvalue = from maxvalue = to