[mapserver-users] Issues with Python Mapscript

forums forums at craniumjuice.com
Tue Jul 15 11:53:23 PDT 2014


Thanks, Even.  I hadn't come across that issue/solution yet.




On Tue, Jul 15, 2014 at 1:35 PM, Even Rouault <even.rouault at mines-paris.org>
wrote:

>
> > 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
>



-- 
A computer without Windows is like chocolate cake without mustard.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140715/9b0d6374/attachment.html>


More information about the mapserver-users mailing list