[Schmitzm-commits] r1237 - trunk/src/skrueger/geotools/io

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Nov 5 11:08:22 CET 2010


Author: alfonx
Date: 2010-11-05 11:08:21 +0100 (Fri, 05 Nov 2010)
New Revision: 1237

Modified:
   trunk/src/skrueger/geotools/io/WfsServerSettings.java
Log:
Made the WFS connector working  a bit with deegree 3

Modified: trunk/src/skrueger/geotools/io/WfsServerSettings.java
===================================================================
--- trunk/src/skrueger/geotools/io/WfsServerSettings.java	2010-11-05 09:32:13 UTC (rev 1236)
+++ trunk/src/skrueger/geotools/io/WfsServerSettings.java	2010-11-05 10:08:21 UTC (rev 1237)
@@ -7,7 +7,6 @@
 import java.util.regex.Pattern;
 
 import org.apache.commons.lang.ArrayUtils;
-import org.geotools.data.DataUtilities;
 import org.geotools.data.wfs.WFSDataStoreFactory;
 import org.jfree.util.Log;
 
@@ -394,10 +393,16 @@
 			return false;
 
 		try {
-			URL fullUrl = DataUtilities.extendURL(getBaseUrl(),
-					"?service=wfs&version=" + getVersion().getVersionString()
-							+ "&request=GetCapabilities");
+			URL base = getBaseUrl();
 
+			String a = base.toExternalForm();
+			if (a.endsWith("/"))
+				a = a.substring(0, a.length() - 1);
+
+			URL fullUrl = new URL(a + "?service=WFS&version="
+					+ getVersion().getVersionString()
+					+ "&request=GetCapabilities");
+
 			put(WFSDataStoreFactory.URL.key, fullUrl);
 
 			return true;



More information about the Schmitzm-commits mailing list