Skip to content

Commit

Permalink
add simple tests for dpi/resolution dpendant rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
tbonfort committed Aug 9, 2013
1 parent 99267cc commit 715683b
Show file tree
Hide file tree
Showing 10 changed files with 110 additions and 0 deletions.
Binary file added renderers/expected/resolution_line_1.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/resolution_line_2.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/resolution_line_4.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/resolution_point_1.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/resolution_point_2.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/resolution_point_4.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/resolution_polygon_1.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/resolution_polygon_2.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/resolution_polygon_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
110 changes: 110 additions & 0 deletions renderers/resolution.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
# RUN_PARMS: resolution_point_1.png [MAPSERV] QUERY_STRING="map.resolution=72&WIDTH=25&HEIGHT=25&map=[MAPFILE]&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap&SRS=EPSG:4326&BBOX=0,0,100,100&FORMAT=image/png&STYLES=&LAYERS=point" > [RESULT_DEMIME]
# RUN_PARMS: resolution_point_2.png [MAPSERV] QUERY_STRING="map.resolution=144&WIDTH=50&HEIGHT=50&map=[MAPFILE]&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap&SRS=EPSG:4326&BBOX=0,0,100,100&FORMAT=image/png&STYLES=&LAYERS=point" > [RESULT_DEMIME]
# RUN_PARMS: resolution_point_4.png [MAPSERV] QUERY_STRING="map.resolution=288&WIDTH=100&HEIGHT=100&map=[MAPFILE]&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap&SRS=EPSG:4326&BBOX=0,0,100,100&FORMAT=image/png&STYLES=&LAYERS=point" > [RESULT_DEMIME]
# RUN_PARMS: resolution_line_1.png [MAPSERV] QUERY_STRING="map.resolution=72&WIDTH=25&HEIGHT=25&map=[MAPFILE]&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap&SRS=EPSG:4326&BBOX=0,0,100,100&FORMAT=image/png&STYLES=&LAYERS=line" > [RESULT_DEMIME]
# RUN_PARMS: resolution_line_2.png [MAPSERV] QUERY_STRING="map.resolution=144&WIDTH=50&HEIGHT=50&map=[MAPFILE]&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap&SRS=EPSG:4326&BBOX=0,0,100,100&FORMAT=image/png&STYLES=&LAYERS=line" > [RESULT_DEMIME]
# RUN_PARMS: resolution_line_4.png [MAPSERV] QUERY_STRING="map.resolution=288&WIDTH=100&HEIGHT=100&map=[MAPFILE]&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap&SRS=EPSG:4326&BBOX=0,0,100,100&FORMAT=image/png&STYLES=&LAYERS=line" > [RESULT_DEMIME]
# RUN_PARMS: resolution_polygon_1.png [MAPSERV] QUERY_STRING="map.resolution=72&WIDTH=25&HEIGHT=25&map=[MAPFILE]&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap&SRS=EPSG:4326&BBOX=0,0,100,100&FORMAT=image/png&STYLES=&LAYERS=polygon" > [RESULT_DEMIME]
# RUN_PARMS: resolution_polygon_2.png [MAPSERV] QUERY_STRING="map.resolution=144&WIDTH=50&HEIGHT=50&map=[MAPFILE]&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap&SRS=EPSG:4326&BBOX=0,0,100,100&FORMAT=image/png&STYLES=&LAYERS=polygon" > [RESULT_DEMIME]
# RUN_PARMS: resolution_polygon_4.png [MAPSERV] QUERY_STRING="map.resolution=288&WIDTH=100&HEIGHT=100&map=[MAPFILE]&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap&SRS=EPSG:4326&BBOX=0,0,100,100&FORMAT=image/png&STYLES=&LAYERS=polygon" > [RESULT_DEMIME]
#
# REQUIRES: OUTPUT=PNG
#
MAP

STATUS ON
EXTENT 0 0 99 99
SIZE 50 50
FONTSET "../misc/fonts.lst"
IMAGETYPE png24
DEFRESOLUTION 72

PROJECTION
"init=epsg:4326"
END

WEB
METADATA
"ows_srs" "epsg:4326"
"ows_enable_request" "*"
END
END

symbol
name "circle"
type ellipse
points 1 1 end
filled true
end

LAYER
NAME "point"
TYPE point
STATUS on
CLASS
NAME "test1"
STYLE
SYMBOL "circle"
COLOR 0 0 255
SIZE 10
MAXSIZE 15
END
END
FEATURE
POINTS
50 50
END
END
END

LAYER
NAME "line"
TYPE line
STATUS on
CLASS
NAME "test1"
STYLE
COLOR 0 0 0
WIDTH 1
END
STYLE
SYMBOL "circle"
COLOR 0 0 255
SIZE 4
MAXSIZE 5
GAP 10
END
END
FEATURE
POINTS
0 0 100 100
END
END
END

LAYER
NAME "polygon"
TYPE polygon
STATUS on
CLASS
NAME "test1"
STYLE
COLOR 0 0 0
OUTLINECOLOR 255 0 0
WIDTH 1
END
STYLE
SYMBOL "circle"
COLOR 0 0 255
SIZE 4
MAXSIZE 5
END
END
FEATURE
POINTS
20 20 20 80 80 80 80 20 20 20
END
END
END

END

0 comments on commit 715683b

Please sign in to comment.