[mapserver-users] MapServer 7.4 - styleObj - pattern

Robert Pivalone robert.pivalone at gmail.com
Sun Jun 23 14:22:25 PDT 2019


 Hello,

I am testing MapServer 7.4.
I'm trying to modify in PHP the pattern of a styleObj via SWIG Mapscript.

I'm trying this :
$aPattern = [ 10.0, 10.0 ];
$styleObj->__set('pattern', $aPattern);

But I get this error.
Fatal error: Type error in argument 2 of styleObj_pattern_set.
Expected SWIGTYPE_p_double in mapscript.php on this line :
if (function_exists($func)) return
call_user_func($func,$this->_cPtr,$value);

In PHP, SWIGTYPE_p_double does not exist.
Could you tell me how to set pattern please ?

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20190623/2eee9658/attachment.html>


More information about the mapserver-users mailing list