|
|
@@ -50,10 +50,10 @@ class WFS(OWS):
|
|
|
lyrobj.setMetaData("wfs_typename", name)
|
|
|
lyrobj.setMetaData("wfs_version",self.capabilities.version)
|
|
|
lyrobj.setMetaData("gml_include_items","all")
|
|
|
- lyrobj.setConnectionType(mapscript.MS_OGR,'')
|
|
|
- lyrobj.connection = self.layerDefFile
|
|
|
+ lyrobj.setMetaData("wfs_request_method","GET")
|
|
|
+ lyrobj.setConnectionType(mapscript.MS_WFS,'')
|
|
|
+ lyrobj.connection = self.getLayerUrl()
|
|
|
lyrobj.data = name
|
|
|
-
|
|
|
if ds:
|
|
|
ogrLayer = ds.GetLayerByName(name)
|
|
|
extent = self.getLayerExtent(layer,layer.crsOptions[0])
|