Mercurial > dive4elements > river
changeset 1053:bfc2ed20b87c
Prepared the FloodMapState to save geometries.
flys-artifacts/trunk@2519 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 22 Aug 2011 10:40:15 +0000 |
parents | eeebf8514c7f |
children | 1f3e944a805c |
files | flys-artifacts/ChangeLog flys-artifacts/doc/conf/artifacts/winfo.xml flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/FloodMapState.java |
diffstat | 3 files changed, 29 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Fri Aug 19 15:52:03 2011 +0000 +++ b/flys-artifacts/ChangeLog Mon Aug 22 10:40:15 2011 +0000 @@ -1,3 +1,12 @@ +2011-08-22 Ingo Weinzierl <ingo@intevation.de> + + * doc/conf/artifacts/winfo.xml: Defined an input value for the GeoJSON + string to save user defined barriers in the map. + + * src/main/java/de/intevation/flys/artifacts/states/FloodMapState.java: + Added a computeFeed() method. In addition, this state now prefers the + "noinput" UI provider. + 2011-08-19 Ingo Weinzierl <ingo@intevation.de> * doc/conf/conf.xml: Each river requires a SRID definition. This
--- a/flys-artifacts/doc/conf/artifacts/winfo.xml Fri Aug 19 15:52:03 2011 +0000 +++ b/flys-artifacts/doc/conf/artifacts/winfo.xml Mon Aug 22 10:40:15 2011 +0000 @@ -277,6 +277,7 @@ </transition> <state id="state.winfo.uesk.uesk" description="state.winfo.uesk.uesk" state="de.intevation.flys.artifacts.states.FloodMapState"> + <data name="uesk.barriers" type="String" /> <outputmodes> <outputmode name="floodmap" description="output.uesk.map.description" type="map"> <facets>
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/FloodMapState.java Fri Aug 19 15:52:03 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/FloodMapState.java Mon Aug 22 10:40:15 2011 +0000 @@ -22,6 +22,11 @@ @Override + protected String getUIProvider() { + return "noinput"; + } + + @Override public Object computeAdvance( FLYSArtifact artifact, String hash, @@ -33,5 +38,19 @@ return null; } + + + @Override + public Object computeFeed( + FLYSArtifact artifact, + String hash, + CallContext context, + List<Facet> facets, + Object old + ) { + facets.add(new WSPLGENFacet(0, FLOODMAP_WSPLGEN, "WSPLGEN")); + + return null; + } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :