comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/FloodMapState.java @ 4654:861c47e0a8a0

Refactor Mapserver mapfile generation. Prepares the existing mapfile generation code for a river axis mapfile generator. Removes unused asynchronous mapfile generation to reduce complexity.
author Christian Lins <christian.lins@intevation.de>
date Sat, 08 Dec 2012 00:19:29 +0100
parents 276d9bd3c77d
children 442fbb290fa8
comparison
equal deleted inserted replaced
4653:a93699cb31eb 4654:861c47e0a8a0
99 ) { 99 ) {
100 logger.info("Initialize State with Artifact: " + orig.identifier()); 100 logger.info("Initialize State with Artifact: " + orig.identifier());
101 101
102 copyShapeDir(orig, owner); 102 copyShapeDir(orig, owner);
103 modifyFacets(orig, owner, context, callMeta); 103 modifyFacets(orig, owner, context, callMeta);
104
105 MapfileGenerator.getInstance().update();
106 } 104 }
107 105
108 106
109 protected void copyShapeDir(Artifact orig, Artifact owner) { 107 protected void copyShapeDir(Artifact orig, Artifact owner) {
110 File origDir = getDirectory((FLYSArtifact) orig); 108 File origDir = getDirectory((FLYSArtifact) orig);
264 262
265 FLYSArtifact flys = (FLYSArtifact) artifact; 263 FLYSArtifact flys = (FLYSArtifact) artifact;
266 264
267 Scheduler scheduler = Scheduler.getInstance(); 265 Scheduler scheduler = Scheduler.getInstance();
268 scheduler.cancelJob(flys.identifier()); 266 scheduler.cancelJob(flys.identifier());
269
270 MapfileGenerator.getInstance().update();
271 } 267 }
272 268
273 269
274 protected WSPLGENJob prepareWSPLGENJob( 270 protected WSPLGENJob prepareWSPLGENJob(
275 FLYSArtifact artifact, 271 FLYSArtifact artifact,

http://dive4elements.wald.intevation.org