[mapserver-users] Subsitute for styled in 3.5 symbol file?

Stephen Lime steve.lime at dnr.state.mn.us
Fri Oct 26 13:26:00 PDT 2001


Assuming there is also a definition like:

SYMBOL
  NAME 'circle'
  TYPE ELLIPSE
  POINTS 1 1 END
  FILLED
END

That def with the one below would allow you to do the following
in a CLASS:

  SYMBOL 'circle'
  SIZE 3
  COLOR 0 0 0
  OVERLAYSYMBOL 'dashed1'
  OVERLAYSIZE 1
  OVERLAYCOLOR 255 255 255

Would give you a 3 pixel width black line with a dashed white center
line. This whole thing is itself scaleable as well.

Steve

>>> "Bart van Heijningen" <bart at atsence.nl> 10/26/01 04:12AM >>>
Steve,

I just do not succeed in getting my good old highway line back using the
symbol file in 3.4 instead of the styled option which was available in 3.3.
I know that you said you posted the solution already but I only found the
following:


"
SYMBOL
  NAME 'dashed1'
  TYPE ELLIPSE
  POINTS 1 1 END
  FILLED
  STYLE 10 5 5 10 END # 10 pixels on, 5 off, 5 on, 10 off
END

Steve

"

But this does not tell me how to make a triple line (two thick reds on the
outside and one yellow in the middle we use for highways)

Any ideas?

Bart




-----Oorspronkelijk bericht-----
Van: owner-mapserver-users at lists.gis.umn.edu 
[mailto:owner-mapserver-users at lists.gis.umn.edu]Namens Stephen Lime
Verzonden: woensdag 26 september 2001 19:22
Aan: bart at atsence.nl; mapserver-users at lists.gis.umn.edu 
Onderwerp: Re: [mapserver-users] Subsitute for styled in 3.5 symbol
file?


I posted the solution to this in a previous thread (several months ago) so
please see that for code snippets and so on. Basically you need to use
overlayed symbols (i.e. a thin line over a thick line) to achieve that
effect.
The only difference between the approaches is that the center of a line
is no longer transparent.

Steve

Stephen Lime
Data & Applications Manager

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937

Stephen Lime
Data & Applications Manager

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937

>>> "Bart van Heijningen" <bart at atsence.nl> 09/26/01 09:18AM >>>
Hi all,

Now the styled option is no longer available in the symbol.sym from version
3.5 I have not succeeded in making an highway as was possible with the
STYLED option in the line.sym file.

Like:

Symbol
Type STYLED
SYLE
    -1 1 8
     0 0 0
     1 1 8
END
END

Any suggestions will be highly appreciated.

Bart





More information about the MapServer-users mailing list