[mapserver-users] change the color using updateFromstring

Lime, Steve D (DNR) Steve.Lime at state.mn.us
Tue Sep 14 11:18:41 EDT 2010


You probably need to update the first style of the first class and not the layer itself.

Steve

From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of ahmet temiz
Sent: Saturday, September 11, 2010 6:26 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] change the color using updateFromstring

hello

how can I change the color of this layer(line)  using updateFromstring in a java  program ?

Layer.updateFromString(upstring);

how is upstring is constructed to change its color

LAYER
  NAME  "es_yukseklik"
LABELITEM "elev"

  DATA  "/usr/local/hsunucu/scontour92"
  STATUS OFF
  TYPE LINE
  #LABELITEM "level"
  CLASS
  COLOR 199 199 199
  LABEL

      POSITION auto
      #SIZE TINY
      SIZE MEDIUM
      #OUTLINECOLOR 247 234 168
      COLOR 149 149 149
    END

  END # end of yukseklik object
END # end of es_yukseklik layer


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


More information about the mapserver-users mailing list