Skip to content

Instantly share code, notes, and snippets.

@aborruso
Created February 5, 2022 17:05
Show Gist options
  • Save aborruso/f40da26ec0cb9daa8cb7b308189ce3b3 to your computer and use it in GitHub Desktop.
Save aborruso/f40da26ec0cb9daa8cb7b308189ce3b3 to your computer and use it in GitHub Desktop.
MAP
NAME "sample"
STATUS ON
SIZE 600 600
EXTENT 133.50282 -45.29796 156.30504 -13.83750
UNITS DD
SHAPEPATH "./"
IMAGECOLOR 255 255 255
SYMBOLSET "./symbol.txt"
LAYER
NAME 'countries'
TYPE POLYGON
CONNECTIONTYPE OGR
CONNECTION "ne_110m_admin_0_countries.shp"
STATUS DEFAULT
CLASS
NAME "countries"
STYLE
COLOR "#EEE8AA"
OUTLINECOLOR "#999999"
WIDTH .5
END
END
END # LAYER
LAYER
NAME 'data'
TYPE POINT
CONNECTIONTYPE OGR
CONNECTION "data.vrt"
VALIDATION
'year' '^[0-9]{4,10}$'
'default_year' '1976'
END
STATUS DEFAULT
CLASS
NAME "Passed"
EXPRESSION ([year] < 1976)
STYLE
SYMBOL "circlef"
COLOR 0 0 255
SIZE 4
END # STYLE
END # CLASS
CLASS
NAME "Current"
EXPRESSION ([year] = 1976)
STYLE
SYMBOL "circlef"
COLOR 255 0 0
SIZE 4
END # STYLE
END # CLASS
END # LAYER
END # MAP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment