Mercurial > dive4elements > river
changeset 1782:93fe7debd687
Re-create FLYS mapfile when FloodMapState.endOfLife() is called.
flys-artifacts/trunk@3104 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 28 Oct 2011 09:39:03 +0000 |
parents | ef2300b450bf |
children | 376c81aa7d55 |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/FloodMapState.java |
diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Fri Oct 28 09:26:54 2011 +0000 +++ b/flys-artifacts/ChangeLog Fri Oct 28 09:39:03 2011 +0000 @@ -1,3 +1,9 @@ +2011-10-28 Ingo Weinzierl <ingo@intevation.de> + + * src/main/java/de/intevation/flys/artifacts/states/FloodMapState.java: + Trigger the re-creation of FLYS mapfile if endOfLife() of this state is + called. + 2011-10-28 Ingo Weinzierl <ingo@intevation.de> * doc/conf/mapserver/mapfile.vm: The "layers" injected by VelocityEngine is
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/FloodMapState.java Fri Oct 28 09:26:54 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/FloodMapState.java Fri Oct 28 09:39:03 2011 +0000 @@ -46,6 +46,7 @@ import de.intevation.flys.artifacts.states.DefaultState.ComputeType; import de.intevation.flys.exports.WstWriter; import de.intevation.flys.utils.FLYSUtils; +import de.intevation.flys.utils.MapfileGenerator; import de.intevation.flys.utils.GeometryUtils; import de.intevation.flys.wsplgen.FacetCreator; import de.intevation.flys.wsplgen.JobObserver; @@ -193,6 +194,8 @@ FLYSArtifact flys = (FLYSArtifact) artifact; removeDirectory(flys); + + MapfileGenerator.getInstance().update(); }