Mercurial > dive4elements > river
changeset 8283:dfdd006da30b
merged.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 17 Sep 2014 09:04:30 +0200 |
parents | b5bef15c982e (diff) b52d30e24e1a (current diff) |
children | a89ebe3f1739 2c20907f8dd0 |
files | |
diffstat | 14 files changed, 128 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/doc/conf/artifacts/minfo.xml Tue Sep 16 18:48:34 2014 +0200 +++ b/artifacts/doc/conf/artifacts/minfo.xml Wed Sep 17 09:04:30 2014 +0200 @@ -372,6 +372,16 @@ <facet name="sq_f_outlier_measurement" description="A facet for sq outlier measurement"/> </facets> </outputmode> + <outputmode name="sq_relation_g" description="output.sq_relation" type="chart"> + <facets> + <facet name="sq_g_measurement" description="A facet for sq measurements"/> + <facet name="sq_relation_g.manualpoints" /> + <facet name="sq_g_outlier" description="A facet fo sq outliers"/> + <facet name="sq_g_curve" description="A facet for sq curve"/> + <facet name="sq_g_outlier_curve" description="A facet for sq outlier curve"/> + <facet name="sq_g_outlier_measurement" description="A facet for sq outlier measurement"/> + </facets> + </outputmode> <outputmode name="sq_overview" description="output.sq_overview" type="chart"> <facets> <facet name="sq_a_measurement_overview" description="A facet for sq measurements"/> @@ -410,6 +420,12 @@ <facet name="sq_f_curve_overview" description="A facet for sq curve"/> <facet name="sq_f_outlier_curve_overview" description="A facet for sq outlier curve"/> <facet name="sq_f_outlier_measurement_overview" description="A facet for sq outlier measurement"/> + <facet name="sq_g_measurement_overview" description="A facet for sq measurements"/> + <facet name="sq_relation_g.manualpoints" /> + <facet name="sq_g_outlier_overview" description="A facet fo sq outliers"/> + <facet name="sq_g_curve_overview" description="A facet for sq curve"/> + <facet name="sq_g_outlier_curve_overview" description="A facet for sq outlier curve"/> + <facet name="sq_g_outlier_measurement_overview" description="A facet for sq outlier measurement"/> </facets> </outputmode> <outputmode name="sq_relation_export" description="output.sq_relation_export" type="export">
--- a/artifacts/doc/conf/artifacts/sqrelation.xml Tue Sep 16 18:48:34 2014 +0200 +++ b/artifacts/doc/conf/artifacts/sqrelation.xml Wed Sep 17 09:04:30 2014 +0200 @@ -41,6 +41,12 @@ <facet name="sq_f_curve" description="A facet for sq curve"/> </facets> </outputmode> + <outputmode name="sq_relation_g" description="output.sq_relation" type="chart"> + <facets> + <facet name="sq_relation_g.manualpoints" /> + <facet name="sq_g_curve" description="A facet for sq curve"/> + </facets> + </outputmode> <outputmode name="sq_overview" description="output.sq_overview" type="overview"> <facets> <facet name="sq_chart_overview" description="A facet for sq chart overview"/>
--- a/artifacts/doc/conf/generators/discharge-diagrams.xml Tue Sep 16 18:48:34 2014 +0200 +++ b/artifacts/doc/conf/generators/discharge-diagrams.xml Wed Sep 17 09:04:30 2014 +0200 @@ -37,4 +37,10 @@ <output-generator names="sq_relation_f,sq_relation_f_chartinfo" class="org.dive4elements.river.exports.DiagramGenerator" converter="org.dive4elements.river.exports.DiagramAttributes"><title key="chart.sq_relation_f.title" default=""/> &sqrelation-defaults; </output-generator> + <output-generator names="sq_relation_g,sq_relation_g_chartinfo" class="org.dive4elements.river.exports.DiagramGenerator" converter="org.dive4elements.river.exports.DiagramAttributes"><title key="chart.sq_relation_f.title" default=""/> + &sqrelation-defaults; + </output-generator> + <output-generator names="sq_overview,sq_overview_chartinfo" class="org.dive4elements.river.exports.DiagramGenerator" converter="org.dive4elements.river.exports.DiagramAttributes"><title key="chart.sq_relation_f.title" default=""/> + &sqrelation-defaults; + </output-generator> </discharge-diagrams>
--- a/artifacts/doc/conf/generators/discharge-diagrams2.xml Tue Sep 16 18:48:34 2014 +0200 +++ b/artifacts/doc/conf/generators/discharge-diagrams2.xml Wed Sep 17 09:04:30 2014 +0200 @@ -100,6 +100,12 @@ <title key="chart.sq_relation_f.title" default=""/> &sqrelation-defaults; </output-generator> + <output-generator names="sq_relation_g,sq_relation_g_chartinfo" + class="org.dive4elements.river.exports.DischargeGenerator" + converter="org.dive4elements.river.exports.DiagramAttributes"> + <title key="chart.sq_relation_f.title" default=""/> + &sqrelation-defaults; + </output-generator> <output-generator names="sq_overview,sq_overview_chartinfo" class="org.dive4elements.river.exports.DischargeGenerator" converter="org.dive4elements.river.exports.DiagramAttributes">
--- a/artifacts/doc/conf/themes.xml Tue Sep 16 18:48:34 2014 +0200 +++ b/artifacts/doc/conf/themes.xml Wed Sep 17 09:04:30 2014 +0200 @@ -273,6 +273,11 @@ <mapping from="sq_f_curve" to="SQCurve" /> <mapping from="sq_f_outlier_curve" to="SQCurve" /> <mapping from="sq_f_outlier_measurement" to="SQMeasurements" /> + <mapping from="sq_g_measurement" to="SQMeasurements" /> + <mapping from="sq_g_outlier" to="SQOutliers" /> + <mapping from="sq_g_curve" to="SQCurve" /> + <mapping from="sq_g_outlier_curve" to="SQCurve" /> + <mapping from="sq_g_outlier_measurement" to="SQMeasurements" /> <mapping from="sq_a_measurement_overview" to="SQMeasurementsA" /> <mapping from="sq_a_outlier_overview" to="SQOutliersA" /> <mapping from="sq_a_curve_overview" to="SQCurveA" /> @@ -303,6 +308,11 @@ <mapping from="sq_f_curve_overview" to="SQCurveF" /> <mapping from="sq_f_outlier_curve_overview" to="SQCurveF" /> <mapping from="sq_f_outlier_measurement_overview" to="SQMeasurementsF" /> + <mapping from="sq_g_measurement_overview" to="SQMeasurementsG" /> + <mapping from="sq_g_outlier_overview" to="SQOutliersG" /> + <mapping from="sq_g_curve_overview" to="SQCurveG" /> + <mapping from="sq_g_outlier_curve_overview" to="SQCurveG" /> + <mapping from="sq_g_outlier_measurement_overview" to="SQMeasurementsG" /> <mapping from="fix_sector_average_wq_0" to="FixingSectorAverageWQ0" /> <mapping from="fix_sector_average_wq_1" to="FixingSectorAverageWQ1" /> <mapping from="fix_sector_average_wq_2" to="FixingSectorAverageWQ2" />
--- a/artifacts/doc/conf/themes/default.xml Tue Sep 16 18:48:34 2014 +0200 +++ b/artifacts/doc/conf/themes/default.xml Wed Sep 17 09:04:30 2014 +0200 @@ -2557,6 +2557,14 @@ <field name="pointcolor" type="color" default="255, 0, 0" /> </fields> </theme> + <theme name="SQMeasurementsG"> + <inherits> + <inherit from="SQMeasurements" /> + </inherits> + <fields> + <field name="pointcolor" type="color" default="0, 0, 0" /> + </fields> + </theme> <theme name="SQOutliersA"> <inherits> @@ -2606,6 +2614,14 @@ <field name="pointcolor" type="color" default="255, 100, 100" /> </fields> </theme> + <theme name="SQOutliersG"> + <inherits> + <inherit from="SQOutliers" /> + </inherits> + <fields> + <field name="pointcolor" type="color" default="100, 100, 100" /> + </fields> + </theme> <theme name="SQCurveA"> @@ -2656,4 +2672,12 @@ <field name="linecolor" type="color" default="175, 0, 0" /> </fields> </theme> + <theme name="SQCurveG"> + <inherits> + <inherit from="SQCurve" /> + </inherits> + <fields> + <field name="linecolor" type="color" default="175, 175, 175" /> + </fields> + </theme> </themegroup>
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/FacetTypes.java Tue Sep 16 18:48:34 2014 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/FacetTypes.java Wed Sep 17 09:04:30 2014 +0200 @@ -65,24 +65,28 @@ || type.equals(SQ_D_CURVE) || type.equals(SQ_E_CURVE) || type.equals(SQ_F_CURVE) + || type.equals(SQ_G_CURVE) || type.equals(SQ_A_OUTLIER_CURVE) || type.equals(SQ_B_OUTLIER_CURVE) || type.equals(SQ_C_OUTLIER_CURVE) || type.equals(SQ_D_OUTLIER_CURVE) || type.equals(SQ_E_OUTLIER_CURVE) || type.equals(SQ_F_OUTLIER_CURVE) + || type.equals(SQ_G_OUTLIER_CURVE) || type.equals(SQ_A_CURVE_OV) || type.equals(SQ_B_CURVE_OV) || type.equals(SQ_C_CURVE_OV) || type.equals(SQ_D_CURVE_OV) || type.equals(SQ_E_CURVE_OV) || type.equals(SQ_F_CURVE_OV) + || type.equals(SQ_G_CURVE_OV) || type.equals(SQ_A_OUTLIER_CURVE_OV) || type.equals(SQ_B_OUTLIER_CURVE_OV) || type.equals(SQ_C_OUTLIER_CURVE_OV) || type.equals(SQ_D_OUTLIER_CURVE_OV) || type.equals(SQ_E_OUTLIER_CURVE_OV) || type.equals(SQ_F_OUTLIER_CURVE_OV) + || type.equals(SQ_G_OUTLIER_CURVE_OV) ) { return true; @@ -97,24 +101,28 @@ || type.equals(SQ_D_MEASUREMENT) || type.equals(SQ_E_MEASUREMENT) || type.equals(SQ_F_MEASUREMENT) + || type.equals(SQ_G_MEASUREMENT) || type.equals(SQ_A_OUTLIER_MEASUREMENT) || type.equals(SQ_B_OUTLIER_MEASUREMENT) || type.equals(SQ_C_OUTLIER_MEASUREMENT) || type.equals(SQ_D_OUTLIER_MEASUREMENT) || type.equals(SQ_E_OUTLIER_MEASUREMENT) || type.equals(SQ_F_OUTLIER_MEASUREMENT) + || type.equals(SQ_G_OUTLIER_MEASUREMENT) || type.equals(SQ_A_MEASUREMENT_OV) || type.equals(SQ_B_MEASUREMENT_OV) || type.equals(SQ_C_MEASUREMENT_OV) || type.equals(SQ_D_MEASUREMENT_OV) || type.equals(SQ_E_MEASUREMENT_OV) || type.equals(SQ_F_MEASUREMENT_OV) + || type.equals(SQ_G_MEASUREMENT_OV) || type.equals(SQ_A_OUTLIER_MEASUREMENT_OV) || type.equals(SQ_B_OUTLIER_MEASUREMENT_OV) || type.equals(SQ_C_OUTLIER_MEASUREMENT_OV) || type.equals(SQ_D_OUTLIER_MEASUREMENT_OV) || type.equals(SQ_E_OUTLIER_MEASUREMENT_OV) || type.equals(SQ_F_OUTLIER_MEASUREMENT_OV) + || type.equals(SQ_G_OUTLIER_MEASUREMENT_OV) ) { return true; @@ -129,12 +137,14 @@ || type.equals(SQ_D_OUTLIER) || type.equals(SQ_E_OUTLIER) || type.equals(SQ_F_OUTLIER) + || type.equals(SQ_G_OUTLIER) || type.equals(SQ_A_OUTLIER_OV) || type.equals(SQ_B_OUTLIER_OV) || type.equals(SQ_C_OUTLIER_OV) || type.equals(SQ_D_OUTLIER_OV) || type.equals(SQ_E_OUTLIER_OV) - || type.equals(SQ_F_OUTLIER_OV)) + || type.equals(SQ_F_OUTLIER_OV) + || type.equals(SQ_G_OUTLIER_OV)) { return true; } @@ -372,6 +382,12 @@ String SQ_F_OUTLIER_CURVE = "sq_f_outlier_curve"; String SQ_F_OUTLIER_MEASUREMENT = "sq_f_outlier_measurement"; + String SQ_G_CURVE = "sq_g_curve"; + String SQ_G_MEASUREMENT = "sq_g_measurement"; + String SQ_G_OUTLIER = "sq_g_outlier"; + String SQ_G_OUTLIER_CURVE = "sq_g_outlier_curve"; + String SQ_G_OUTLIER_MEASUREMENT = "sq_g_outlier_measurement"; + String SQ_A_CURVE_OV = "sq_a_curve_overview"; String SQ_A_MEASUREMENT_OV = "sq_a_measurement_overview"; String SQ_A_OUTLIER_OV = "sq_a_outlier_overview"; @@ -408,6 +424,12 @@ String SQ_F_OUTLIER_CURVE_OV = "sq_f_outlier_curve_overview"; String SQ_F_OUTLIER_MEASUREMENT_OV = "sq_f_outlier_measurement_overview"; + String SQ_G_CURVE_OV = "sq_g_curve_overview"; + String SQ_G_MEASUREMENT_OV = "sq_g_measurement_overview"; + String SQ_G_OUTLIER_OV = "sq_g_outlier_overview"; + String SQ_G_OUTLIER_CURVE_OV = "sq_g_outlier_curve_overview"; + String SQ_G_OUTLIER_MEASUREMENT_OV = "sq_g_outlier_measurement_overview"; + String RELATIVE_POINT = "relativepoint"; String FIX_ANALYSIS_EVENTS_DWT = "fix_analysis_events_dwt";
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/Measurements.java Tue Sep 16 18:48:34 2014 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/Measurements.java Wed Sep 17 09:04:30 2014 +0200 @@ -63,6 +63,13 @@ } }; + public static final SExtractor S_BL2_EXTRACTOR = new SExtractor() { + @Override + public double getS(Measurement measument) { + return measument.S_BL_2(); + } + }; + protected List<Measurement> measuments; protected List<Measurement> accumulated; @@ -131,6 +138,10 @@ return extractSQ(accumulated, S_BL_EXTRACTOR); } + public List<SQ> S_BL2() { + return extractSQ(accumulated, S_BL2_EXTRACTOR); + } + public List<SQ> getSQs(int index) { switch (index) { case 0: return S_SF(); @@ -139,6 +150,7 @@ case 3: return S_BL_FG(); case 4: return S_BL_CG(); case 5: return S_BL(); + case 6: return S_BL2(); } log.error("THIS SHOULD NOT HAPPEN: Tried to access SQ[" + index + "]"); return new ArrayList<SQ>(0);
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/SQResult.java Tue Sep 16 18:48:34 2014 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/SQResult.java Wed Sep 17 09:04:30 2014 +0200 @@ -14,7 +14,7 @@ public class SQResult implements Serializable { - public static final int NUMBER_FRACTIONS = 6; + public static final int NUMBER_FRACTIONS = 7; public static final int FRACTION_A = 0; public static final int FRACTION_B = 1; @@ -22,6 +22,7 @@ public static final int FRACTION_D = 3; public static final int FRACTION_E = 4; public static final int FRACTION_F = 5; + public static final int FRACTION_G = 6; protected double km; protected SQFractionResult[] fractions; @@ -48,7 +49,7 @@ } public static final String [] FRACTION_NAMES = { - "A", "B", "C", "D", "E", "F" + "A", "B", "C", "D", "E", "F", "G" }; public String getFractionName(int idx) {
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/states/SQRelation.java Tue Sep 16 18:48:34 2014 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/states/SQRelation.java Wed Sep 17 09:04:30 2014 +0200 @@ -72,39 +72,44 @@ public static final String [][] FACET_NAMES = { { SQ_A_CURVE, SQ_B_CURVE, SQ_C_CURVE, - SQ_D_CURVE, SQ_E_CURVE, SQ_F_CURVE + SQ_D_CURVE, SQ_E_CURVE, SQ_F_CURVE, SQ_G_CURVE }, { SQ_A_MEASUREMENT, SQ_B_MEASUREMENT, SQ_C_MEASUREMENT, - SQ_D_MEASUREMENT, SQ_E_MEASUREMENT, SQ_F_MEASUREMENT + SQ_D_MEASUREMENT, SQ_E_MEASUREMENT, SQ_F_MEASUREMENT, SQ_G_MEASUREMENT }, { SQ_A_OUTLIER, SQ_B_OUTLIER, SQ_C_OUTLIER, - SQ_D_OUTLIER, SQ_E_OUTLIER, SQ_F_OUTLIER + SQ_D_OUTLIER, SQ_E_OUTLIER, SQ_F_OUTLIER, SQ_G_OUTLIER }, { SQ_A_OUTLIER_CURVE, SQ_B_OUTLIER_CURVE, SQ_C_OUTLIER_CURVE, - SQ_D_OUTLIER_CURVE, SQ_E_OUTLIER_CURVE, SQ_F_OUTLIER_CURVE + SQ_D_OUTLIER_CURVE, SQ_E_OUTLIER_CURVE, SQ_F_OUTLIER_CURVE, + SQ_G_OUTLIER_CURVE }, { SQ_A_OUTLIER_MEASUREMENT, SQ_B_OUTLIER_MEASUREMENT, SQ_C_OUTLIER_MEASUREMENT, SQ_D_OUTLIER_MEASUREMENT, - SQ_E_OUTLIER_MEASUREMENT, SQ_F_OUTLIER_MEASUREMENT + SQ_E_OUTLIER_MEASUREMENT, SQ_F_OUTLIER_MEASUREMENT, + SQ_G_OUTLIER_MEASUREMENT } }; public static final String [][] OV_FACET_NAMES = { { SQ_A_CURVE_OV, SQ_B_CURVE_OV, SQ_C_CURVE_OV, - SQ_D_CURVE_OV, SQ_E_CURVE_OV, SQ_F_CURVE_OV + SQ_D_CURVE_OV, SQ_E_CURVE_OV, SQ_F_CURVE_OV, SQ_G_CURVE_OV }, { SQ_A_MEASUREMENT_OV, SQ_B_MEASUREMENT_OV, SQ_C_MEASUREMENT_OV, - SQ_D_MEASUREMENT_OV, SQ_E_MEASUREMENT_OV, SQ_F_MEASUREMENT_OV + SQ_D_MEASUREMENT_OV, SQ_E_MEASUREMENT_OV, SQ_F_MEASUREMENT_OV, + SQ_G_MEASUREMENT_OV }, { SQ_A_OUTLIER_OV, SQ_B_OUTLIER_OV, SQ_C_OUTLIER_OV, - SQ_D_OUTLIER_OV, SQ_E_OUTLIER_OV, SQ_F_OUTLIER_OV + SQ_D_OUTLIER_OV, SQ_E_OUTLIER_OV, SQ_F_OUTLIER_OV, SQ_G_OUTLIER_OV }, { SQ_A_OUTLIER_CURVE_OV, SQ_B_OUTLIER_CURVE_OV, SQ_C_OUTLIER_CURVE_OV, - SQ_D_OUTLIER_CURVE_OV, SQ_E_OUTLIER_CURVE_OV, SQ_F_OUTLIER_CURVE_OV + SQ_D_OUTLIER_CURVE_OV, SQ_E_OUTLIER_CURVE_OV, SQ_F_OUTLIER_CURVE_OV, + SQ_G_OUTLIER_CURVE_OV }, { SQ_A_OUTLIER_MEASUREMENT_OV, SQ_B_OUTLIER_MEASUREMENT_OV, SQ_C_OUTLIER_MEASUREMENT_OV, SQ_D_OUTLIER_MEASUREMENT_OV, - SQ_E_OUTLIER_MEASUREMENT_OV, SQ_F_OUTLIER_MEASUREMENT_OV + SQ_E_OUTLIER_MEASUREMENT_OV, SQ_F_OUTLIER_MEASUREMENT_OV, + SQ_G_OUTLIER_MEASUREMENT_OV } };
--- a/artifacts/src/main/java/org/dive4elements/river/exports/injector/DischargeInjector.java Tue Sep 16 18:48:34 2014 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/injector/DischargeInjector.java Wed Sep 17 09:04:30 2014 +0200 @@ -27,6 +27,9 @@ @Override public void injectContext(CallContext ctx, Artifact artifact, Document doc) { RangeAccess access = new RangeAccess((D4EArtifact)artifact); + if (!access.hasFrom()) { + return; + } double km = access.getFrom(); Gauge gauge = access.getRiver().determineGaugeByStation( km - GAUGE_EPSILON, km + GAUGE_EPSILON);
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.java Tue Sep 16 18:48:34 2014 +0200 +++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants.java Wed Sep 17 09:04:30 2014 +0200 @@ -598,6 +598,8 @@ String sq_relation_f(); + String sq_relation_g(); + String sq_relation_export(); String sq_relations();
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants_de.properties Tue Sep 16 18:48:34 2014 +0200 +++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants_de.properties Wed Sep 17 09:04:30 2014 +0200 @@ -245,6 +245,7 @@ sq_relation_d = D Fein- und Mittelkies sq_relation_e = E Grobkornanteil (> Mittelkies) sq_relation_f = F Geschiebetransport Gesamt +sq_relation_g = G Geschiebetransport Gesamt (Sohlh\u00f6henrelevant) sq_relation_export = SQ Export cross_section = Querprofil cross_sections = Querprofile
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants_en.properties Tue Sep 16 18:48:34 2014 +0200 +++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/FLYSConstants_en.properties Wed Sep 17 09:04:30 2014 +0200 @@ -244,6 +244,7 @@ sq_relation_d = D Fein- und Mittelkies sq_relation_e = E Grobkornanteil (> Mittelkies) sq_relation_f = F Geschiebetransport Gesamt +sq_relation_g = G Geschiebetransport Gesamt (Sohlh\u00f6henrelevant) sq_relation_export = SQ Export cross_section = Cross Section cross_sections = Cross Sections