How to set line width for a polygon layer. {Scanned} {Scanned}

Siki Zoltan siki at AGT.BME.HU
Wed Sep 13 14:29:29 EDT 2006


Hi,

You should give two style in the class and the size should be in the 
style. For example:

CLASS
	NAME "blabla"
	STYLE
		COLOR -1 -1 -1 # no fill color
	END
	STYLE
		OUTLINECOLOR 255 0 0 # red outline
		SYMBOL "circle"
		SIZE 3
	END
END #CLASS

Circle symbol definition:
  SYMBOL # standard circular brush
    NAME 'circle'
    TYPE ELLIPSE
    POINTS 1 1 END
    FILLED TRUE
  END

Bye
Zoltan

On Wed, 13 Sep 2006, Luca Manganelli wrote:

> Hi,
> 
> I have a poligon layer. I want it to be filled empty and to have a
> line with 3 pixels in width.
> 
> The FAQ:
> 
> http://mapserver.gis.umn.edu/docs/faq/linewidth
> 
> didn't work for me. At least, it works only with line layers, not for polygons.
> 
> Here's my solution:
> 
> 
> 	LAYER
> 		NAME "blabla"
> 		DATA "blabla"
> 		TYPE POLYGON
> 		STATUS OFF
> 		TEMPLATE void
> 		CLASS
> 			NAME "blabla"
> 			SIZE 3
> 			STYLE
> 				SYMBOL 'solid'
> 				OUTLINECOLOR 255 0 0
> 			END
> 		END
> 	END
> 
> HTH.
> 



More information about the mapserver-users mailing list