Mercurial > dive4elements > gnv-client
diff gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontalcrosssection/HorizontalCrossSectionMeshOutputState.java @ 1111:19182eaccc8d
Added a prefix for WMS layers to prevent the mapserver from generating invalid xml that would end in a bug (issue314, issue315).
gnv-artifacts/trunk@1245 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 29 Jun 2010 16:35:36 +0000 |
parents | 7096a2e13676 |
children | 9a24c743efa6 |
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontalcrosssection/HorizontalCrossSectionMeshOutputState.java Tue Jun 29 09:58:44 2010 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontalcrosssection/HorizontalCrossSectionMeshOutputState.java Tue Jun 29 16:35:36 2010 +0000 @@ -445,7 +445,7 @@ * @return the name of the layer. */ protected String getLayerName(String uuid, String type) { - return uuid + "-" + type; + return "GNV_" + uuid + "-" + type; } /** @@ -456,7 +456,7 @@ * @return the title of the layer. */ protected String getLayerTitle(String prefix, String type) { - return "" + prefix + "-" + type; + return "GNV_" + prefix + "-" + type; }