Browse Source

force WFS to 1.0.0, until the bug is fixed

www-data 14 years ago
parent
commit
01edb4ef37
1 changed files with 3 additions and 0 deletions
  1. 3 0
      wfs/__init__.py

+ 3 - 0
wfs/__init__.py

@@ -64,6 +64,9 @@ class WFS(OWS):
             lyrobj.setMetaData("wfs_typename", name)
             lyrobj.setMetaData("wfs_typename", name)
             logging.debug("WFS version %s",self.capabilities.version)
             logging.debug("WFS version %s",self.capabilities.version)
             lyrobj.setMetaData("wfs_version",self.capabilities.version)
             lyrobj.setMetaData("wfs_version",self.capabilities.version)
+	    if self.capabilities.version == "1.1.0":
+		    logging.debug("WFS is 1.1.1 -> using 1.0 instead")
+		    lyrobj.setMetaData("wfs_version","1.0.0")
             lyrobj.setMetaData("gml_include_items","all")
             lyrobj.setMetaData("gml_include_items","all")
             lyrobj.setMetaData("wfs_request_method","GET")
             lyrobj.setMetaData("wfs_request_method","GET")
             lyrobj.setConnectionType(mapscript.MS_WFS,'')
             lyrobj.setConnectionType(mapscript.MS_WFS,'')