Created
October 12, 2017 07:36
-
-
Save LarsSchy/9b697cb02c0a4637512a1b1026069352 to your computer and use it in GitHub Desktop.
Test with polygon border decorations with native symbol in Mapserver
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MAP | |
# | |
# Lars Schylberg - 2017-10-12 | |
# Test with polygon border decorations with native symbol in Mapserver | |
# | |
# Run tests with: shp2img -m polygon_border_with_marker.map -o polygon_border_with_marker.png | |
# | |
SIZE 800 500 | |
IMAGETYPE png24 | |
EXTENT -10 0 60 30 | |
UNITS DD | |
SYMBOL | |
NAME "square_filled" | |
TYPE VECTOR | |
POINTS | |
0 0 0 1 1 1 1 0 0 0 | |
END | |
FILLED TRUE | |
END | |
LAYER # Simple polygon with fill | |
STATUS DEFAULT | |
TYPE POLYGON | |
FEATURE | |
POINTS | |
5 25 25 20 45 20 35 15 50 0 0 5 5 25 | |
END # Points | |
END # Feature | |
CLASS | |
NAME "Polygon fill" | |
STYLE | |
COLOR 204 204 204 | |
END #Style | |
END # Class | |
END # Layer | |
LAYER # Same polygon, now with line decoration | |
STATUS DEFAULT | |
TYPE LINE | |
FEATURE | |
POINTS | |
5 25 25 20 45 20 35 15 50 0 0 5 5 25 | |
END # Points | |
END # Feature | |
CLASS | |
NAME "Border decoration" | |
STYLE | |
SYMBOL "square_filled" | |
COLOR 255 235 190 | |
SIZE 5 | |
INITIALGAP 10 | |
GAP -30 | |
OUTLINECOLOR 130 130 130 | |
WIDTH 1.8 | |
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