[mapserver-users] MapServer 7.4 - styleObj - pattern
Jeff McKenna
jmckenna at gatewaygeomatics.com
Mon Jun 24 10:50:03 PDT 2019
I believe that you have found a new issue. You should file this as a
new ticket (be sure to include your commands and errors) at
https://github.com/mapserver/mapserver/issues
For now you can instead call updateFromString() as a workaround:
$oStyle->updateFromString('PATTERN 10.0 10.0 END');
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
https://gatewaygeomatics.com/
On 2019-06-23 6:22 PM, Robert Pivalone wrote:
> 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.
>
More information about the MapServer-users
mailing list