|
|
@@ -10,12 +10,14 @@ import urlparse
|
|
|
import logging
|
|
|
from osgeo import ogr
|
|
|
import os
|
|
|
+import re
|
|
|
|
|
|
class WFS(OWS):
|
|
|
|
|
|
service = "WFS"
|
|
|
wfsns = "http://www.opengis.net/wfs"
|
|
|
layerDefFile = None
|
|
|
+ lyrobj = None
|
|
|
|
|
|
def __init__(self,url=None,qstring=None,configFiles=None):
|
|
|
OWS.__init__(self,url,qstring)
|
|
|
@@ -53,7 +55,7 @@ class WFS(OWS):
|
|
|
lyrobj.setMetaData("wfs_request_method","GET")
|
|
|
lyrobj.setConnectionType(mapscript.MS_WFS,'')
|
|
|
lyrobj.connection = self.getLayerUrl()
|
|
|
- lyrobj.data = name
|
|
|
+ lyrobj.data = re.sub(r".*:","",name)
|
|
|
if ds:
|
|
|
ogrLayer = ds.GetLayerByName(name)
|
|
|
extent = self.getLayerExtent(layer,layer.crsOptions[0])
|
|
|
@@ -132,4 +134,3 @@ class WFS(OWS):
|
|
|
return mapscript.MS_LAYER_LINE
|
|
|
else:
|
|
|
return mapscript.MS_LAYER_POINT
|
|
|
-
|