User Tools

Site Tools


tecnica:gps_cartografia_gis:mapserver_styles

This is an old revision of the document!


MapServer Styles

Railway

IMAGETYPE agg_png

SYMBOL
  NAME "circle"
  TYPE ELLIPSE
  FILLED TRUE
  POINTS
    1 1
  END
END

SYMBOL
  NAME "rectangle-railway"
  TYPE ELLIPSE
  POINTS
    1 1
  END
  FILLED TRUE
  STYLE
    8 12 8 12
  END
END

LAYER
  NAME "Railways"
  STATUS DEFAULT
  TYPE LINE
  DATA "railways.shp"
  CLASS
    MAXSCALEDENOM 500000
    STYLE
      COLOR 102 102 102
      SYMBOL "circle"
      SIZE 4
    END
    STYLE
      COLOR 255 255 255
      SYMBOL "rectangle-railway"
      SIZE 2
    END
  END
  CLASS
    MAXSCALEDENOM 10000000
    STYLE
      COLOR 102 102 102
    END
  END
END

Repeated Vector Symbol

See also this page about vector symbols which follow the line orientation (negative GAP).

SYMBOL
  NAME 'triangle'
  TYPE VECTOR
  POINTS
    0 0
    0 1
    1 0
    0 0
  END
  FILLED TRUE
  GAP 2
END

LAYER
  NAME "curves"
  STATUS DEFAULT
  TYPE LINE
  DATA "curves.shp"
  CLASS
    STYLE
      COLOR 128 16 16
    END
    STYLE
      COLOR 212 32 32
      SYMBOL 'triangle'
      ANGLE 35
      SIZE 12
    END
  END
END
tecnica/gps_cartografia_gis/mapserver_styles.1283791065.txt.gz · Last modified: 2010/09/06 18:37 by niccolo