Benutzerspezifische Werkzeuge
Sie sind hier: Startseite Documentation FAQs How do I have a polygon that has both a fill and an outline with a width?

How do I have a polygon that has both a fill and an outline with a width?

Artikelaktionen
Zum Inhaltsverzeichnis
How do I have a polygon that has both a fill and an outline with a width? Whenever I put both a color (fill) and an outlinecolor with a width on a polygon within a single STYLE, the outline width isn't respected.

For historical reasons, width has two meanings within the context of filling polygons and stroke widths for the outline. If a polygon is filled, then the width defines the width of the symbol inside the filled polygon. In this event, the outline width is disregarded, and it is always set to 1. To acheive the effect of both a fill and an outline width, you need to use two styles in your class.

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

Diese FAQ betrifft: MapServer 4.8, MapServer 4.10

von Howard ButlerZuletzt verändert: 17.08.2006 11:52
Mitwirkende: Steve Lime

A similar problem

Kommentar von Francisco Javier Ruiz Oliva am 19.07.2007 13:21
I also have a similar problem is also polygon, I have a layer and a class within the class I have style where within this this the color, but the oulinecolor I do not want it and me she does not respect it gives the contour me of the same color instead of which she clears it, that I can do this me this clearing long time


LAYER
NAME "Potencial-Medio"
STATUS ON
DATA "ajos/ajoceb-Medio"
TYPE POLYGON
CLASSITEM "GRIDCODE"
CLASS
NAME "Medio"
EXPRESSION "3"
STYLE
COLOR 255 173 0
OUTLINECOLOR -1 -1 -1 <----me it does not respect it, I want to clear the line or the contour and to leave to nothing but the bottom -->
END
END
END
 

Powered by Plone