[mapserver-users] change outline color programmatically

Jean-François Gigand jean-francois at gigand.fr
Mon Feb 7 11:06:49 EST 2011


Hi,

If you don't use a symbol and set the layer type to MS_LAYER_POLYGON,
it should work...
The "width" property specifies the outline width.

Jeff

2011/2/7  <ahmettemiz88 at gmail.com>:
> 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
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>


More information about the mapserver-users mailing list