[mapserver-users] python-mapscript: layer.getFeature() AttributeError
Tim Banchi
tim.banchi at gmail.com
Thu Oct 11 01:16:53 PDT 2012
Hello,
I have a problem with the python-mapscript library v6.0.1-2ubuntu1 with
swig2.0.4 and python 2.7 installed (I'm running ubuntu 12.04)
If the function layer.getFeature is called, I get the following error:
File
"/home/xxx/Documents/xxx_python/xxxx/src/resdbcore/kaarten/mappreview.py",
line 306, in gather_data
resultaat = importlayer.getFeature(i)
File "/usr/lib/python2.7/dist-packages/mapscript.py", line 1192, in <lambda>
__getattr__ = lambda self, name: _swig_getattr(self, layerObj, name)
File "/usr/lib/python2.7/dist-packages/mapscript.py", line 34, in
_swig_getattr
raise AttributeError,name
AttributeError: getFeature
the application runs fine on Windows but I try to get it running on linux
with eclipse. the only relevant thing I found is that the layer.getFeature
function has been temporarily removed from mapscript but should be
available again >=6.
altough I have swig2 installed, in the file
/usr/lib/python2.7/dist-packages/mapscript.py in the head it is mentioned
that this file has been automatically generated by SWIG 1.3.36. Could that
be the problem, because AFAIK python-mapscript needs swig2?
Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20121011/0e52a82e/attachment.htm>
More information about the MapServer-users
mailing list