diff artifacts/src/main/java/org/dive4elements/river/artifacts/context/RiverContextFactory.java @ 9753:7227621f8496 3.2.x

Get rid of duplicate MapServer URL configurations
author Tom Gottfried <tom@intevation.de>
date Tue, 11 Oct 2022 14:02:20 +0200
parents 0a5239a1e46e
children
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/context/RiverContextFactory.java	Tue Oct 11 12:40:36 2022 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/context/RiverContextFactory.java	Tue Oct 11 14:02:20 2022 +0200
@@ -51,6 +51,7 @@
 import org.dive4elements.river.themes.ThemeFactory;
 import org.dive4elements.river.themes.ThemeGroup;
 import org.dive4elements.river.themes.ThemeMapping;
+import org.dive4elements.river.utils.RiverUtils;
 
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
@@ -595,7 +596,7 @@
             Element e = (Element) rivers.item(i);
 
             String river = e.getAttribute("name");
-            String url   = XMLUtils.xpathString(e, "river-wms/@url", null);
+            String url   = RiverUtils.getUserWMSUrl();
 
             if (river != null && url != null) {
                 riverWMS.put(river, url);

http://dive4elements.wald.intevation.org