[mapserver-users] Issues with Python Mapscript
Even Rouault
even.rouault at mines-paris.org
Tue Jul 15 11:35:10 PDT 2014
> 4) I can't seem to set a pattern. It looks like mapscript.py includes the
> functionality, but it's giving an error. Traceback from when my code hands
> it off:
> ...
> mStyle.pattern = "5 5 5 5"
> File "/usr/lib/python2.7/site-packages/mapscript.py", line 535, in
> <lambda>
> __setattr__ = lambda self, name, value: _swig_setattr(self, styleObj,
> name, value)
> File "/usr/lib/python2.7/site-packages/mapscript.py", line 51, in
> _swig_setattr
> return _swig_setattr_nondynamic(self,class_type,name,value,0)
> File "/usr/lib/python2.7/site-packages/mapscript.py", line 44, in
> _swig_setattr_nondynamic
> if method: return method(self,value)
> TypeError: in method 'styleObj_pattern_set', argument 2 of type 'double
> [MS_MAXPATTERNLENGTH]'
I've fixed that issue in master very recently :
https://github.com/mapserver/mapserver/issues/4943
> ...
>
> Am I doing something wrong, or are these issues with the library/Python
> implementation?
>
> Thank you.
--
Geospatial professional services
http://even.rouault.free.fr/services.html
More information about the MapServer-users
mailing list