Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added test for UTFGrid Renderer #24

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions renderers/expected/line_simple.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"grid":[" "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," !!!!!!!!! "," !!!!!!!!!!!! !! "," !!!!!!!!!!!! !!! "," !!!!!!! !!! "," ! !!! "," ! !!! "," !! !! "," !! $ "," ! $$$$$ "," ! $$$ $$$ ! "," !! $$$ $$$ !! "," !! $$$ !! ## "," ! $$ !! ### "," !! $$$ ! ### "," !! $$$ ! #### "," ! $$$ ! ### "," ! $$$ ! ## "," !! $$$ ! ## "," !! $$$ ! ### "," ! $$$ !! ## ","!! $$ !! ## #","!! $$$ !! ## ##","! $$$ !!! ## ##","! $$ !!!!! ## ## ","! !!!!! #### ## ","!!! !!!!! ####### ## "," !!!! !!!!! ### ## "," !!!! !!!!! ## ## "," !!!! !!!!! ## ## "," !!!! !!!!! ### # "," !!!! !!!!! ####### # "," !!!!!! ####### # "," #### "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "],"keys":["","1","2","3"],"data":{}}
1 change: 1 addition & 0 deletions renderers/expected/point_ellipse_utfgrid.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"grid":[" "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," !!!!!! "," !!!!!!!!!! "," !!!!!!!!!!! "," !!!!!!!!!!! "," !!!!!!!!!! "," !!!!!!! "," "," "," "],"keys":["","1"],"data":{}}
1 change: 1 addition & 0 deletions renderers/expected/point_pixmap_utfgrid.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"grid":[" "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," !!!!!!!!! "," !!!!!!!!! "," !!!!!!!!! "," !!!!!!!!! "," !!!!!!!!! "," !!!!!!!!! "," !!!!!!!!! "," !!!!!!!!! "," !!!!!!!!! "," "],"keys":["","1"],"data":{}}
1 change: 1 addition & 0 deletions renderers/expected/point_vector_utfgrid.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"grid":[" "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," !! "," !! "," "," "," "," "," "],"keys":["","1"],"data":{}}
1 change: 1 addition & 0 deletions renderers/expected/polygon-simple.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"grid":[" "," "," "," "," "," "," "," "," "," #### "," ######### "," ########## "," $$$$ ######## "," $$$$$$$$$$ !! ###### "," $$$$$$$$$$$$$$ !!!!! ############ "," $$$$$$$$$$$$$$ !!!! ################"," $$$$$$$$$$$$$ !!!! "," $$$$$$$$$$ ! "," $$$$$$$$ "," $$$$$ "," $$$ %%%%%%% "," %%%%%%%%%%%%%% "," %%%%%%%%%%%%%%%%%%%%%% "," %%%%%%%%%%%%%% %%%%%%%%%%%% ","%%%%%%%%%%%%%%%%%%%%%%%%%% "," %%%%%%%%%%%%%%%%%%%%% "," %%%%%%%%%%%%%% "," %%%%%%% "," "," "," "," "," "," "," "," "," "],"keys":["","1","2","3","4"],"data":{}}
1 change: 1 addition & 0 deletions renderers/line_simple.map
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# RUN_PARMS: line_simple.svg [SHP2IMG] -m [MAPFILE] -i svg -o [RESULT]
# RUN_PARMS: line_simple.cairo.png [SHP2IMG] -m [MAPFILE] -i cairopng -o [RESULT]
# RUN_PARMS: line_simple.cairo.jpg [SHP2IMG] -m [MAPFILE] -i cairojpeg -o [RESULT]
# RUN_PARMS: line_simple.json [SHP2IMG] -m [MAPFILE] -i json -o [RESULT]
#
map

Expand Down
37 changes: 37 additions & 0 deletions renderers/point_ellipse_utfgrid.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# RUN_PARMS: point_ellipse_utfgrid.json [SHP2IMG] -m [MAPFILE] -i json -o [RESULT]
#
# entity-encoded text rendering test.
# this test may potentially segfault
#
#
MAP

STATUS ON
EXTENT 0 0 400 300
SIZE 200 150
FONTSET "../misc/fonts.lst"
IMAGETYPE png24
symbolset "symbolset"

CONFIG MS_ERRORFILE "stderr"

LAYER
NAME "symbol"
TYPE point
STATUS default
CLASS
NAME "test1"
STYLE
SYMBOL "ellipse"
COLOR 0 0 255
SIZE 20
END
END
FEATURE
POINTS
50 50
END
END
END

END
35 changes: 35 additions & 0 deletions renderers/point_pixmap_utfgrid.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# RUN_PARMS: point_pixmap_utfgrid.json [SHP2IMG] -m [MAPFILE] -i json -o [RESULT]
#
#
# entity-encoded text rendering test.
# this test may potentially segfault
#
MAP

STATUS ON
EXTENT 0 0 400 300
SIZE 200 150
FONTSET "../misc/fonts.lst"
IMAGETYPE png24
symbolset "symbolset"

CONFIG MS_ERRORFILE "stderr"

LAYER
NAME "symbol"
TYPE point
STATUS default
CLASS
NAME "test1"
STYLE
SYMBOL "gdalicon"
END
END
FEATURE
POINTS
50 50
END
END
END

END
35 changes: 35 additions & 0 deletions renderers/point_vector_utfgrid.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# RUN_PARMS: point_vector_utfgrid.json [SHP2IMG] -m [MAPFILE] -i json -o [RESULT]
#
#
# entity-encoded text rendering test.
# this test may potentially segfault
#
MAP

STATUS ON
EXTENT 0 0 400 300
SIZE 200 150
FONTSET "../misc/fonts.lst"
IMAGETYPE png24
symbolset "symbolset"

LAYER
NAME "symbol"
TYPE point
STATUS default
CLASS
NAME "test1"
STYLE
SYMBOL "vector arrow"
COLOR 0 0 0
SIZE 5
END
END
FEATURE
POINTS
50 50
END
END
END

END
1 change: 1 addition & 0 deletions renderers/polygon-simple.map
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# RUN_PARMS: polygon-simple.pdf [SHP2IMG] -m [MAPFILE] -i pdf -o [RESULT]
# RUN_PARMS: polygon-simple.svg [SHP2IMG] -m [MAPFILE] -i svg -o [RESULT]
# RUN_PARMS: polygon-simple.cairo.png [SHP2IMG] -m [MAPFILE] -i cairopng -o [RESULT]
# RUN_PARMS: polygon-simple.json [SHP2IMG] -m [MAPFILE] -i json -o [RESULT]
#
#
# entity-encoded text rendering test.
Expand Down