annotate flys-artifacts/README @ 4183:1755a1bfe5ce

Merged
author Christian Lins <christian.lins@intevation.de>
date Fri, 19 Oct 2012 09:20:52 +0200
parents
children
rev   line source
4183
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
1 From ChangeLog:
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
2
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
3 2012-04-04 Sascha L. Teichmann <sascha.teichmann@intevation.de>
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
4
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
5 * src/main/java/de/intevation/flys/artifacts/services/FixingsKMChartService.java:
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
6 New. Service to generate a chart of fixings for given river and km applied
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
7 some filters.
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
8
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
9 Usage:
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
10 $ curl http://localhost:8181/service/fixings-km-chart \
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
11 -d @fix-overview.xml > chart.png
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
12
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
13 The input XML is nearly the same as for the overview service.
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
14 Besides the river, filters and range it accepts elements
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
15 <km value="..."/> for passing the river km,
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
16 <extent width="..." height="..."/> for the extent of the output chart,
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
17 <mime type="..."/> for type of result. Currently ignored.
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
18
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
19 ATM only a static fixed sized PNG image is delivered.
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
20
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
21 2012-02-27 Sascha L. Teichmann <sascha.teichmann@intevation.de>
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
22
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
23 Added functions to be used for fitting in
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
24 the "Fixierungsanalyse" and "Extremwertermittlung".
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
25
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
26 [...]
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
27
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
28 * src/main/java/de/intevation/flys/artifacts/math/fitting/App.java: New.
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
29 Small test driver to check if the fitting is working. The points to
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
30 fit are read from stdin the function to fit is determined by the
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
31 system property 'function'. Example usage:
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
32
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
33 $ mvn -e \
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
34 -Dfunction=linear \
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
35 -Dexec.mainClass=de.intevation.flys.artifacts.math.fitting.App exec:java <<EOF
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
36 357.390696917 7546.72096163
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
37 61.4291036312 1334.54835721
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
38 799.962128234 16836.7698076
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
39 126.52761023 2703.69789985
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
40 900.448553398 18955.0578748
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
41 EOF
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
42
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
43 2012-02-21 Sascha L. Teichmann <sascha.teichmann@intevation.de>
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
44
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
45 * src/main/java/de/intevation/flys/artifacts/model/FixingsOverview.java:
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
46 - Calculate the extent of the river by the extents of the fixings.
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
47 Reason: The river Elbe has only has fixings up to km 351. The other half
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
48 of the river is empty which results in a sparse looking overview.
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
49 - Add the name of the river as name attribute to resulting <river> element.
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
50
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
51 * contrib/fixoverview2html.xsl: New. Demo XSL transformation to turn
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
52 the output of the overview service directly into HTML. Used in the
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
53 client a variant of this script could be used for producing the content
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
54 of the assistance widget. Usage:
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
55
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
56 $ curl http://localhost:8181/service/fixings-overview \
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
57 -d @fix-overview.xml | \
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
58 xsltproc contrib/fixoverview2html.xsl - \
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
59 > fixings-overview.html
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
60
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
61 2011-07-20 Sascha L. Teichmann <sascha.teichmann@intevation.de>
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
62
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
63 * src/main/java/de/intevation/flys/artifacts/services/meta/App.java: New.
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
64 Standalone app to debug the datacage template. To use in a maven environment:
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
65
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
66 -Dmeta.data.template=PATH_TO_META_DATA-TEMPLATE.XML \
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
67 -Dmeta.data.parameters=river:Mosel \
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
68 -Dmeta.data.output=OUTPUT.XML \
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
69 -Dflys.backend.user=DB_USER \
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
70 -Dflys.backend.password=DB_PASSWORD \
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
71 -Dflys.backend.url=DB_CONNECTION_URL \
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
72 -Dexec.mainClass=de.intevation.flys.artifacts.services.meta.App
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
73
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
74 2011-07-13 Sascha L. Teichmann <sascha.teichmann@intevation.de>
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
75
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
76 * src/main/java/de/intevation/flys/artifacts/charts/CrossSectionApp.java:
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
77 New. Standalone Swing-App to test cross sections from database without the
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
78 hassles of our complete software stack. Runnable from a maven environment:
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
79
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
80 $ mvn -e \
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
81 -Dflys.backend.user=DB_USER \
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
82 -Dflys.backend.password=DB_PASSWD \
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
83 -Dflys.backend.url=DB_CONNECTION_URL \
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
84 -Dexec.mainClass=de.intevation.flys.artifacts.charts.CrossSectionApp \
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
85 exec:java
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
86
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
87 You can set the river to be used with the system property 'river'.
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
88 Defaults to 'Mosel'.
Christian Lins <christian.lins@intevation.de>
parents:
diff changeset
89

http://dive4elements.wald.intevation.org