Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/WMSDBArtifact.java @ 4656:442fbb290fa8
Introduce river mapfile generation (WARNING: Changes in config xml files required!).
On startup the RiverMapfileGeneratorStarter is called by the server app.
The starter invokes a call to RiverMapfileGenerator.generate() which
reads all available rivers from the database and generates
layers for each river (in theory...uncompleted) in a
river.map file.
The old MapfileGenerator which generates layers that have
artifact dependencies is now in ArtifactMapfileGenerator.
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Tue, 11 Dec 2012 15:24:24 +0100 |
parents | 861c47e0a8a0 |
children | ad0990a82ab8 |
comparison
equal
deleted
inserted
replaced
4655:cd44d28d0fbc | 4656:442fbb290fa8 |
---|---|
342 | 342 |
343 @Override | 343 @Override |
344 public void endOfLife(Artifact owner, Object context) { | 344 public void endOfLife(Artifact owner, Object context) { |
345 logger.info("Destroy WMSDBState: " + getID()); | 345 logger.info("Destroy WMSDBState: " + getID()); |
346 | 346 |
347 String p = FLYSUtils.getXPathString(FLYSUtils.XPATH_SHAPEFILE_DIR); | 347 String p = FLYSUtils.getXPathString(FLYSUtils.XPATH_FLOODMAP_SHAPEFILE_DIR); |
348 File dir = new File(p, owner.identifier()); | 348 File dir = new File(p, owner.identifier()); |
349 | 349 |
350 if (dir != null && dir.exists()) { | 350 if (dir != null && dir.exists()) { |
351 logger.debug("Try to delete directory '" + dir + "'"); | 351 logger.debug("Try to delete directory '" + dir + "'"); |
352 | 352 |