changeset 6331:91dfd6425f11

Use group layer instead of adding two layers to barriers facet The facet has a hard layers.get(0) in it's toXML function so this code was completly useless.
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 13 Jun 2013 17:23:51 +0200
parents 36dc11244ec3
children f5bb53106ae8
files artifacts/src/main/java/org/dive4elements/river/wsplgen/FacetCreator.java
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/wsplgen/FacetCreator.java	Thu Jun 13 17:17:45 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/wsplgen/FacetCreator.java	Thu Jun 13 17:23:51 2013 +0200
@@ -168,10 +168,7 @@
             hash,
             getUrl());
 
-        barriers.addLayer(MapfileGenerator.MS_LAYER_PREFIX +
-            MapfileGenerator.MS_BARRIERS_PREFIX + "lines" + artifact.identifier());
-        barriers.addLayer( MapfileGenerator.MS_LAYER_PREFIX +
-            MapfileGenerator.MS_BARRIERS_PREFIX + "poly" + artifact.identifier());
+        barriers.addLayer(MapfileGenerator.MS_BARRIERS_PREFIX + artifact.identifier());
 
         barriers.setSrid(getSrid());
         barriers.setExtent(getBounds());

http://dive4elements.wald.intevation.org