[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mapserver-users
Subject:    Re: [mapserver-users] Issues with Python Mapscript
From:       forums <forums () craniumjuice ! com>
Date:       2014-07-15 18:53:23
Message-ID: CACC0xJJXqgtHD_j1yrdH_7G6-CpyAzEQ3Aq0KcvAvTUS9fdZxQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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




On Tue, Jul 15, 2014 at 1:35 PM, Even Rouault <even.rouault@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.

[Attachment #5 (text/html)]

<div dir="ltr">Thanks, Even.   I hadn&#39;t come across that issue/solution \
yet.<div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div \
class="gmail_quote">On Tue, Jul 15, 2014 at 1:35 PM, Even Rouault <span \
dir="ltr">&lt;<a href="mailto:even.rouault@mines-paris.org" \
target="_blank">even.rouault@mines-paris.org</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div class=""><br> &gt; 4)   I can&#39;t seem to set a \
pattern.   It looks like mapscript.py includes the<br> &gt; functionality, but \
it&#39;s giving an error.   Traceback from when my code hands<br> &gt; it off:<br>
&gt; ...<br>
&gt;       mStyle.pattern = &quot;5 5 5 5&quot;<br>
&gt;    File &quot;/usr/lib/python2.7/site-packages/mapscript.py&quot;, line 535, \
in<br> &gt; &lt;lambda&gt;<br>
&gt;       __setattr__ = lambda self, name, value: _swig_setattr(self, styleObj,<br>
&gt; name, value)<br>
&gt;    File &quot;/usr/lib/python2.7/site-packages/mapscript.py&quot;, line 51, \
in<br> &gt; _swig_setattr<br>
&gt;       return _swig_setattr_nondynamic(self,class_type,name,value,0)<br>
&gt;    File &quot;/usr/lib/python2.7/site-packages/mapscript.py&quot;, line 44, \
in<br> &gt; _swig_setattr_nondynamic<br>
&gt;       if method: return method(self,value)<br>
&gt; TypeError: in method &#39;styleObj_pattern_set&#39;, argument 2 of type \
&#39;double<br> &gt; [MS_MAXPATTERNLENGTH]&#39;<br>
<br>
</div>I&#39;ve fixed that issue in master very recently :<br>
<a href="https://github.com/mapserver/mapserver/issues/4943" \
target="_blank">https://github.com/mapserver/mapserver/issues/4943</a><br> <div \
class=""><br> &gt; ...<br>
&gt;<br>
&gt; Am I doing something wrong, or are these issues with the library/Python<br>
&gt; implementation?<br>
&gt;<br>
&gt; Thank you.<br>
<br>
--<br>
</div>Geospatial professional services<br>
<a href="http://even.rouault.free.fr/services.html" \
target="_blank">http://even.rouault.free.fr/services.html</a><br> \
</blockquote></div><br><br clear="all"><div><br></div>-- <br>A computer without \
Windows is like chocolate cake without mustard. </div>



_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic