Daniel,
problem is, that the COLOR object is *not* written to mapfile, when one
of the RGB components is set to "-1"
It can be seen in the script, I send in my previous e-mail and, I
created ticket to this
http://trac.osgeo.org/mapserver/ticket/4042
Thanks
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");
?>
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users