Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
4863:f2e7f07f608d | 4864:dc0d37715e16 |
---|---|
719 | 719 |
720 public static String createMapserverStyle(Document theme) { | 720 public static String createMapserverStyle(Document theme) { |
721 String symbol = getSymbol(theme); | 721 String symbol = getSymbol(theme); |
722 String backcolor = getLabelBackgroundColorString(theme); | 722 String backcolor = getLabelBackgroundColorString(theme); |
723 String linecolor = getLineColorString(theme); | 723 String linecolor = getLineColorString(theme); |
724 if (linecolor == null || "".equals(linecolor)) { | |
725 logger.warn("createMapserverStyle: linecolor String is empty"); | |
726 linecolor = "0,128,255"; | |
727 } | |
724 | 728 |
725 int linewidth = parseLineWidth(theme); | 729 int linewidth = parseLineWidth(theme); |
726 | 730 |
727 MapserverStyle ms = new MapserverStyle(); | 731 MapserverStyle ms = new MapserverStyle(); |
728 | 732 |
729 Clazz c = new Clazz(" "); | 733 Clazz c = new Clazz(" "); |
730 | 734 |
731 Style s = new Style(); | 735 Style s = new Style(); |
732 s.setOutlineColor(linecolor.replace(",", "")); | 736 s.setOutlineColor(linecolor.replace(",", " ")); |
733 | 737 |
734 if (backcolor != null && backcolor.length() > 0) { | 738 if (backcolor != null && backcolor.length() > 0) { |
735 s.setColor(backcolor.replace(",", "")); | 739 s.setColor(backcolor.replace(",", " ")); |
736 } | 740 } |
737 | 741 |
738 s.setSize(linewidth); | 742 s.setSize(linewidth); |
739 s.setSymbol(symbol); | 743 s.setSymbol(symbol); |
740 c.addItem(s); | 744 c.addItem(s); |
742 String textcolor = getTextColorString(theme); | 746 String textcolor = getTextColorString(theme); |
743 int textsize = parseTextSize(theme); | 747 int textsize = parseTextSize(theme); |
744 | 748 |
745 if (textcolor != null && textcolor.length() > 0 && textsize > 0) { | 749 if (textcolor != null && textcolor.length() > 0 && textsize > 0) { |
746 Label l = new Label(); | 750 Label l = new Label(); |
747 l.setColor(textcolor.replace(",", "")); | 751 l.setColor(textcolor.replace(",", " ")); |
748 l.setSize(textsize); | 752 l.setSize(textsize); |
749 c.addItem(l); | 753 c.addItem(l); |
750 } | 754 } |
751 | 755 |
752 ms.addClazz(c); | 756 ms.addClazz(c); |