[mapserver-users] Abandoned railroad symbol

thomas bonfort thomas.bonfort at gmail.com
Thu Sep 22 08:20:49 PDT 2011


SYMBOL
  NAME "tie"
  TYPE TRUETYPE
  FONT "path/to/arial.ttf"
  CHARACTER "|"
END


CLASS
    EXPRESSION ('[STATUS]' = '3')
# The crossties:
    STYLE
      COLOR 200 200 200
      SIZE 4
      SYMBOL "tie"
      GAP -10
    END
# The centerline:
    STYLE
      COLOR 200 200 200
      WIDTH 1
      PATTERN
        5 10
      END
    END

  END

On Thu, Sep 22, 2011 at 17:15, Bistrais, Bob <Bob.Bistrais at maine.gov> wrote:
> I’ve been playing around with the symbology but I’m not getting my spacing
> right.  I’m trying to create a symbol for abandoned railroad track, looks
> like the standard RR symbol, a line with the crossties, but dashed.  Here is
> my code.  Problem is, although I get a dashed line and the crossties, the
> interval isn’t correct, and I was wondering if anyone had advice on making
> it more consistent so the crossties are always on the dashed line:
>
>
>
>   CLASS
>
>     EXPRESSION ('[STATUS]' = '3')
>
> # The crossties:
>
>     STYLE
>
>       COLOR 200 200 200
>
>       WIDTH 4
>
>       LINECAP BUTT
>
>       ANGLE 90
>
>       PATTERN
>
>         1 10
>
>       END
>
>     END
>
> # The centerline:
>
>     STYLE
>
>       COLOR 200 200 200
>
>       WIDTH 1
>
>       PATTERN
>
>         5 10
>
>       END
>
>     END
>
>
>
>   END
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>



More information about the MapServer-users mailing list