[mapserver-users] change outline color programmatically

ahmettemiz88 at gmail.com ahmettemiz88 at gmail.com
Mon Feb 7 07:33:00 EST 2011


hello

I tried to change outline color of the polygons programmatically.
But nothing happens.

here is my map file's fragment.
~~~~~~~~
NAME "DAIRESEL-AKMA"
EXPRESSION "Dairesel+Akma"
SIZE 1
OUTLINECOLOR 0 0 0
SYMBOL 'CIRCLE'
COLOR 123 0 255
LABEL
MINFEATURESIZE 30
MINDISTANCE 150
POSITION CC
#SIZE TINY
SIZE MEDIUM
OUTLINECOLOR 247 234 168
COLOR 1 1 1
END
~~~~~~~~

and

my java code fragment concerned:

~~~~~~~~~
layerObj heyLayer = new layerObj(map0);
heyLayer = map0.getLayerByName("hey_layer");
String upstring = "LAYER CLASS NAME \"DAIRESEL-AKMA\" OUTLINECOLOR 255 255  
255 END END";
heyLayer.updateFromString(upstring);
heyLayer.setStatus(1);
~~~~~~~~~

what do I have to do ?

regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110207/e7aa65d5/attachment.html


More information about the mapserver-users mailing list