[mapserver-users] Style pattern on mapscript

Andrea Peri aperi2007 at gmail.com
Tue Jun 17 06:53:50 PDT 2014


Hi,

it seem to exist,
but every sintax I try , I'm have an error.
like this:

new_style.pattern = [1.0, 2.0]

>Traceback (most recent call last):
>  File "generator.py", line 136, in <module>
>    new_style.pattern = [1.0, 2.0]
>  File "C:\my-programs\osgeo4w\apps\Python27\lib\site-packages\mapscript.py", li
>ne 538, in <lambda>
>    __setattr__ = lambda self, name, value: _swig_setattr(self, styleObj, name,
>value)
>  File "C:\my-programs\osgeo4w\apps\Python27\lib\site-packages\mapscript.py", li
>ne 48, in _swig_setattr
>    return _swig_setattr_nondynamic(self,class_type,name,value,0)
>  File "C:\my-programs\osgeo4w\apps\Python27\lib\site-packages\mapscript.py", li
>ne 41, in _swig_setattr_nondynamic
>    if method: return method(self,value)
>TypeError: in method 'styleObj_pattern_set', argument 2 of type 'double [MS_MAXP
>ATTERNLENGTH]'

I don't understand if is a bug or a my wrong on python use ff pattern.

Unfortunately it seem not documentated at all.

any help is welcome, thx.

Andrea.


2014-06-17 11:42 GMT+02:00 Andrea Peri <aperi2007 at gmail.com>:
> Hi,
>
> Is available the style pattern in mapscript ?
>
> Thx,
>
> --
> -----------------
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -----------------



-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------



More information about the MapServer-users mailing list