Skip to content

Commit

Permalink
add test for line markers with anchorpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
tbonfort committed Aug 11, 2013
1 parent c978c77 commit 89d59a4
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 0 deletions.
Binary file added renderers/expected/line_anchorpoint.cairo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added renderers/expected/line_anchorpoint.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
72 changes: 72 additions & 0 deletions renderers/line_anchorpoint.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# RUN_PARMS: line_anchorpoint.png [SHP2IMG] -m [MAPFILE] -i png -o [RESULT]
# RUN_PARMS: line_anchorpoint.cairo.png [SHP2IMG] -m [MAPFILE] -i cairopng -o [RESULT]

MAP
IMAGECOLOR 255 255 255
IMAGETYPE "PNG"
NAME "mf"
SIZE 256 256
EXTENT 0 0 110 110
STATUS ON
UNITS DD

symbol
name "vert"
type vector
points 0 0 0 1 end
anchorpoint 0 0
end

LAYER
NAME "poly"
TYPE POLYGON
STATUS DEFAULT
FEATURE
POINTS
30 30
30 80
80 80
80 30
30 30
END #POINTS
END #FEATURE
CLASS
STYLE
COLOR 200 200 200
OUTLINECOLOR 0 255 0
END
STYLE
OUTLINECOLOR 0 255 0
SYMBOL "vert"
GAP -10
SIZE 5
END
END #CLASS
END
LAYER
NAME "line"
TYPE LINE
STATUS DEFAULT
FEATURE
POINTS
0 0
50 50
80 100
100 100
100 20
END #POINTS
END #FEATURE
CLASS
STYLE
COLOR 0 0 0
WIDTH 1
END
STYLE
COLOR 255 0 0
SYMBOL "vert"
GAP -10
SIZE 5
END
END #CLASS
END
END #MAP

0 comments on commit 89d59a4

Please sign in to comment.