|
@@ -70,10 +70,11 @@ class OWS:
|
|
|
# 1.0.0 works
|
|
# 1.0.0 works
|
|
|
# 1.1.0 reverses axes, while OGR is requesting the FeatureType
|
|
# 1.1.0 reverses axes, while OGR is requesting the FeatureType
|
|
|
# using BBOX FILTER
|
|
# using BBOX FILTER
|
|
|
- if "version" in params:
|
|
|
|
|
- params["version"] = "1.0.0"
|
|
|
|
|
- else:
|
|
|
|
|
- params["VERSION"] = "1.0.0"
|
|
|
|
|
|
|
+ if self.service == "WFS":
|
|
|
|
|
+ if "version" in params:
|
|
|
|
|
+ params["version"] = "1.0.0"
|
|
|
|
|
+ else:
|
|
|
|
|
+ params["VERSION"] = "1.0.0"
|
|
|
|
|
|
|
|
|
|
|
|
|
url = urlparse.urlunparse((self.parsedUrl[0],
|
|
url = urlparse.urlunparse((self.parsedUrl[0],
|
|
@@ -122,7 +123,6 @@ class OWS:
|
|
|
params["owsService"] = self.service
|
|
params["owsService"] = self.service
|
|
|
params["map"] = self.getMapfileLocation(mapfilename)
|
|
params["map"] = self.getMapfileLocation(mapfilename)
|
|
|
|
|
|
|
|
-
|
|
|
|
|
location = urlparse.urlunparse((o[0],o[1],o[2],o[3],urllib.urlencode(params,True),o[5]))
|
|
location = urlparse.urlunparse((o[0],o[1],o[2],o[3],urllib.urlencode(params,True),o[5]))
|
|
|
logging.debug("Setting OnlineResource to %s"% location)
|
|
logging.debug("Setting OnlineResource to %s"% location)
|
|
|
return location
|
|
return location
|
|
@@ -263,3 +263,4 @@ def getService():
|
|
|
from wcs import WCS
|
|
from wcs import WCS
|
|
|
return WCS(owsUrl,qstring)
|
|
return WCS(owsUrl,qstring)
|
|
|
|
|
|
|
|
|
|
+
|