[Mapserver-users] Two colors in a line

Steve Lime steve.lime at dnr.state.mn.us
Mon Dec 15 10:08:21 PST 2003


The overlay sizes need to be smaller the the main size, otherwise one obscures the other. Note that with 4.0 the OVERLAY... parameters are depricated in favor of styles.

Steve

>>> Stéphane RIFF <stephane.riff at cerene.fr> 12/15/2003 7:11:46 AM >>>
And like this is it better ???

LAYER 
  NAME "roads"
  DATA "roads_shp"
  STATUS ON
  TYPE LINE
  FILTERITEM COD_ITINER
  CLASS 
  	NAME "the_roads"
    	COLOR 255 0 0		# --> red line
	SYMBOL 2
	SIZE 4
	OVERLAYOUTLINECOLOR 0 0 0	# --> black overlay
	OVERLAYSYMBOL 2
	OVERLAYSIZE 6
	OVERLAYMAXSIZE 6
  END
END



Manuel Marichal Pérez wrote:

>Hi, all.
>
>I'm trying to give two colors to a layer of type "line" (i.e: one color
>to the line and another one to the border line).
>
>I've tryed with this line, buit doen't work:
>
>LAYER 
>  NAME "roads"
>  DATA "roads_shp"
>  STATUS ON
>  TYPE LINE
>  FILTERITEM COD_ITINER
>  CLASS 
>  	NAME "the_roads"
>    	COLOR 255 0 0		# --> red line
>	SYMBOL 2
>	SIZE 4
>	OVERLAYOUTLINECOLOR 0 0 0	# --> black overlay
>	OVERLAYSYMBOL 2
>	OVERLAYSIZE 4
>	OVERLAYMAXSIZE 4
>  END
>END
>
>Any idea?
>
>Thanks in advance.
>Manuel Marichal Pérez.
>
>
>
>
>_______________________________________________
>Mapserver-users mailing list
>Mapserver-users at lists.gis.umn.edu 
>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users 
>
>
>  
>


_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu 
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users





More information about the MapServer-users mailing list