Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/utils/ThemeUtil.java @ 4864:dc0d37715e16
Floodmap uses the static River-WMS instead of User-WMS via RiverAxisArtifact.
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Thu, 24 Jan 2013 15:04:01 +0100 |
parents | 85876e3a5346 |
children | 53a2ceeae9a3 |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/utils/ThemeUtil.java Thu Jan 24 10:02:45 2013 +0100 +++ b/flys-artifacts/src/main/java/de/intevation/flys/utils/ThemeUtil.java Thu Jan 24 15:04:01 2013 +0100 @@ -721,6 +721,10 @@ String symbol = getSymbol(theme); String backcolor = getLabelBackgroundColorString(theme); String linecolor = getLineColorString(theme); + if (linecolor == null || "".equals(linecolor)) { + logger.warn("createMapserverStyle: linecolor String is empty"); + linecolor = "0,128,255"; + } int linewidth = parseLineWidth(theme); @@ -729,10 +733,10 @@ Clazz c = new Clazz(" "); Style s = new Style(); - s.setOutlineColor(linecolor.replace(",", "")); + s.setOutlineColor(linecolor.replace(",", " ")); if (backcolor != null && backcolor.length() > 0) { - s.setColor(backcolor.replace(",", "")); + s.setColor(backcolor.replace(",", " ")); } s.setSize(linewidth); @@ -744,7 +748,7 @@ if (textcolor != null && textcolor.length() > 0 && textsize > 0) { Label l = new Label(); - l.setColor(textcolor.replace(",", "")); + l.setColor(textcolor.replace(",", " ")); l.setSize(textsize); c.addItem(l); }