[Dive4elements-commits] [PATCH 3 of 4] Use group layer instead of adding two layers to barriers facet

Wald Commits scm-commit at wald.intevation.org
Thu Jun 13 17:25:47 CEST 2013


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1371137031 -7200
# Node ID 91dfd6425f1181d9457cded2ae25175efeeaf1d1
# Parent  36dc11244ec3f165da735a1bbc6a303010b6bad1
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.

diff -r 36dc11244ec3 -r 91dfd6425f11 artifacts/src/main/java/org/dive4elements/river/wsplgen/FacetCreator.java
--- 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());


More information about the Dive4elements-commits mailing list