Explorar el Código

Merge branch 'master' of git+ssh://git.ccss.cz/hsrs/owsproxy

Jachym Cepicky hace 14 años
padre
commit
4b53988255
Se han modificado 1 ficheros con 7 adiciones y 6 borrados
  1. 7 6
      OWS.py

+ 7 - 6
OWS.py

@@ -360,14 +360,15 @@ class OWS:
 
         # cut off the opening and closing <Filter> tag
         # - this is needed for mapserver
-        root = etree.XML(fes)
-        msFilter = ""
-        for child in root:
-            msFilter += etree.tostring(child)
-        logging.debug("Setting the filter %s" % msFilter)
+        #root = etree.XML(fes)
+        #msFilter = ""
+        #for child in root:
+        #    msFilter += etree.tostring(child)
+        #logging.debug("Setting the filter %s" % msFilter)
 
         # set the filter
-        layerobj.setMetaData("wfs_filter",msFilter)
+        layerobj.setMetaData("wfs_filter",fes)
+        #layerobj.setMetaData("wfs_filter",msFilter)
 
         # save the mapfile - debugging
         mapobj.save("mapfile.fes")