Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

up vote 5 down vote accepted

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

share|improve this answer
    
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

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
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.