# HG changeset patch # User Raimund Renkert # Date 1367923625 -7200 # Node ID 37a0f4f7c54f63f55e8fa23ea31c8c3db6ef14ad # Parent 81bdb5c4414d4932c2ca0c22ae671409f61d5117 Added output mode and generator to config and create facet for export. diff -r 81bdb5c4414d -r 37a0f4f7c54f artifacts/doc/conf/artifacts/winfo.xml --- a/artifacts/doc/conf/artifacts/winfo.xml Tue May 07 12:45:57 2013 +0200 +++ b/artifacts/doc/conf/artifacts/winfo.xml Tue May 07 12:47:05 2013 +0200 @@ -570,6 +570,11 @@ + + + + + diff -r 81bdb5c4414d -r 37a0f4f7c54f artifacts/doc/conf/conf.xml --- a/artifacts/doc/conf/conf.xml Tue May 07 12:45:57 2013 +0200 +++ b/artifacts/doc/conf/conf.xml Tue May 07 12:47:05 2013 +0200 @@ -374,6 +374,7 @@ org.dive4elements.river.exports.ATExporter org.dive4elements.river.exports.ATExporter org.dive4elements.river.exports.fixings.FixATExport + org.dive4elements.river.exports.ShapeExporter diff -r 81bdb5c4414d -r 37a0f4f7c54f artifacts/src/main/java/org/dive4elements/river/artifacts/states/FloodMapState.java --- a/artifacts/src/main/java/org/dive4elements/river/artifacts/states/FloodMapState.java Tue May 07 12:45:57 2013 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/states/FloodMapState.java Tue May 07 12:47:05 2013 +0200 @@ -360,6 +360,7 @@ // TODO // setWspTag(artifact, job); + facetCreator.createExportFacet("zip"); try { job.toFile(paraFile); diff -r 81bdb5c4414d -r 37a0f4f7c54f artifacts/src/main/java/org/dive4elements/river/wsplgen/FacetCreator.java --- a/artifacts/src/main/java/org/dive4elements/river/wsplgen/FacetCreator.java Tue May 07 12:45:57 2013 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/wsplgen/FacetCreator.java Tue May 07 12:47:05 2013 +0200 @@ -20,6 +20,7 @@ import org.dive4elements.river.artifacts.access.RangeAccess; import org.dive4elements.river.artifacts.D4EArtifact; import org.dive4elements.river.artifacts.model.FacetTypes; +import org.dive4elements.river.artifacts.model.map.ShapeFacet; import org.dive4elements.river.artifacts.model.map.WMSLayerFacet; import org.dive4elements.river.artifacts.model.map.WSPLGENLayerFacet; import org.dive4elements.river.artifacts.resources.Resources; @@ -208,5 +209,10 @@ public void finish() { facets.addAll(getFacets()); } + + public void createExportFacet(String type) { + ShapeFacet facet = new ShapeFacet(type, type); + tmpFacets.add(facet); + } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :