4

I display Polygons in the UMN Mapserver. With the OUTLINE-keyword I set a color for the outline of the polygons. How can I change the line width of this outline?

Mnementh
  • 1,155
  • 2
  • 12
  • 16

2 Answers2

6

Use OUTLINECOLOR

Example

STYLE # solid fill
  COLOR 255 0 0
END
STYLE # thick outline (could use a circle symbol with size too)
  OUTLINECOLOR 0 0 0
  WIDTH 3
  ANTIALIAS TRUE
END

How do I have a polygon that has both a fill and an outline with a width? http://mapserver.org/faq.html

Mapperz
  • 49,701
  • 9
  • 73
  • 132
  • Your answer helped, thanks. But please format the code-example (marking the example and click on the symbol with ones and zeros) for better readability. I didn't understood it at first. – Mnementh Nov 22 '10 at 16:05
  • done - formatting – Mapperz Nov 22 '10 at 17:40
0

I am guessing that the answer above works, but I think that the FAQ is a little out of date. For reference, below is an example that works for me on a recent version of MapServer.

LAYER
  NAME "watersheds"
  STATUS DEFAULT
  DATA 'majclip'
  TYPE POLYGON
    CLASS
       NAME "all_watersheds"
       STYLE
          COLOR "#EEE8AA"
          OUTLINECOLOR "#999999"
          WIDTH .5
       END
    END

END
DavidF
  • 4,862
  • 1
  • 26
  • 32