[mapserver-users] bug in mapscript colorObj ?

Jachym Cepicky jachym.cepicky at gmail.com
Mon Oct 3 13:12:31 EDT 2011


Daniel,


I have prepared another set of scripts and input data (attached)

And it seems to me, that it works in this basic environment.

I'll do another check, to find out, why it does not work in the more 
complex script.

Thanks Daniel for your time

Jachym

On 1.10.2011 16:45, Daniel Morissette wrote:
> On 11-09-30 07:12 AM, Jachym Cepicky wrote:
>> Hi,
>>
>> I try to set transparent color to REFERENCE map, so that the box is
>> outlined-only.
>>
>> According to documentation, i use -1 for indication, that the color
>> should be transparent
>>
>> color = mapscript.colorObj(-1,-1,-1)
>>
>
> How do you set/assign the color value to the reference map object? What
> if you set another color than -1,-1,-1, does it get through?
>
> The following works fine for me in PHP MapScript. Perhaps make a similar
> test with the version of MapScript you are using (Python?), and then
> look at the output of /tmp/test.map to comfirm that the color is set as
> expected.
>
> <?php
> $map = ms_newMapObj("/path/to/my.map");
> $map->reference->color->setRGB(-1,-1,-1);
> $map->save("/tmp/test.map");
> ?>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reference.tgz
Type: application/x-compressed-tar
Size: 30280 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20111003/623aec32/reference-0001.bin


More information about the mapserver-users mailing list