Permalink
Browse files

Add test for WMS MVT output (refs #5376)

  • Loading branch information...
rouault committed Mar 27, 2018
1 parent 4ee6817 commit 6ab90ce30119dab11b4eac805d2708a3120505f2
Showing with 99 additions and 0 deletions.
  1. BIN msautotest/wxs/expected/wms_mvt.mvt
  2. +99 −0 msautotest/wxs/wms_mvt.map
View
Binary file not shown.
View
@@ -0,0 +1,99 @@
#
# Test MapBox Vector Tile output
#
# REQUIRES: INPUT=GDAL SUPPORTS=PBF SUPPORTS=WMS
#
# RUN_PARMS: wms_mvt.mvt [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap&SRS=EPSG:3857&BBOX=-7514065.628545966,5009377.085697311,-6261721.357121638,6261721.357121639&WIDTH=256&HEIGHT=256&STYLES=&LAYERS=road&FORMAT=application/x-protobuf" > [RESULT_DEVERSION]
MAP
NAME WMS_TEST
STATUS ON
SIZE 400 300
#EXTENT 2018000 -73300 3410396 647400
#UNITS METERS
EXTENT -67.5725 42 -58.9275 48.5
UNITS DD
IMAGECOLOR 255 255 255
SHAPEPATH ./data
SYMBOLSET etc/symbols.sym
FONTSET etc/fonts.txt
#
# Start of web interface definition
#
WEB
IMAGEPATH "/tmp/ms_tmp/"
IMAGEURL "/ms_tmp/"
METADATA
"ows_updatesequence" "123"
"wms_title" "Test simple wms"
"wms_onlineresource" "http://localhost/path/to/wms_simple?"
"wms_srs" "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326"
"ows_schemas_location" "http://schemas.opengis.net"
"ows_keywordlist" "ogc,wms,mapserver"
"ows_service_onlineresource" "http://www.mapserver.org/"
"ows_fees" "None"
"ows_accessconstraints" "None"
"ows_addresstype" "postal"
"ows_address" "123 SomeRoad Road"
"ows_city" "Toronto"
"ows_stateorprovince" "Ontario"
"ows_postcode" "xxx-xxx"
"ows_country" "Canada"
"ows_contactelectronicmailaddress" "tomkralidis@xxxxxxx.xxx"
"ows_contactvoicetelephone" "+xx-xxx-xxx-xxxx"
"ows_contactfacsimiletelephone" "+xx-xxx-xxx-xxxx"
"ows_contactperson" "Tom Kralidis"
"ows_contactorganization" "MapServer"
"ows_contactposition" "self"
"ows_rootlayer_title" "My Layers"
"ows_rootlayer_abstract" "These are my layers"
"ows_rootlayer_keywordlist" "layers,list"
"ows_layerlimit" "1"
"ows_enable_request" "*"
"wms_getmap_formatlist" "image/png,image/png; mode=24bit,image/jpeg,image/gif,image/png; mode=8bit,image/tiff,application/x-protobuf"
END
END
PROJECTION
"init=epsg:4326"
#"init=./data/epsg2:42304"
END
#
# Start of layer definitions
#
LAYER
NAME road
DATA road
TEMPLATE "ttt"
METADATA
"wms_title" "road"
"wms_description" "Roads of I.P.E."
"wms_srs" "EPSG:43204 EPSG:3857"
"gml_include_items" "all"
END
TYPE LINE
STATUS ON
PROJECTION
"init=./data/epsg2:42304"
END
DUMP TRUE
CLASSITEM "Name_e"
CLASS
NAME "Roads"
SYMBOL 0
COLOR 220 0 0
END
END # Layer
END # Map File

0 comments on commit 6ab90ce

Please sign in to comment.