# # Test WFS enabling/disabling # # REQUIRES: SUPPORTS=WFS # # The following tests exists primarily to test the ability of enabling/disabling # WFS service (see RFC 67). # # RUN_PARMS: ows_wfs_capabilities.xml [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetCapabilities" > [RESULT_DEVERSION] # RUN_PARMS: ows_wfs_getfeature.xml [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=province" > [RESULT_DEVERSION] # RUN_PARMS: ows_wfs_describefeaturetype.xml [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=1.1.0&REQUEST=DescribeFeatureType" > [RESULT_DEVERSION] # Results expected # getcapabilities: disabled at map level # getfeature: enabled at layer level # describefeaturetype: disabled at layer level # other requests: disabled MAP NAME WFS_TEST STATUS ON SIZE 400 300 #EXTENT 2018000 -73300 3410396 647400 EXTENT -67.5725 42 -58.9275 48.5 UNITS METERS 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" "wfs_title" "Test simple wfs" "wfs_onlineresource" "http://localhost/path/to/wfs_simple?" "wfs_srs" "EPSG:4326 EPSG:4269" "ows_abstract" "Test WFS Abstract" "ows_keywordlist" "ogc,wfs,gml,om" "ows_service_onlineresource" "http://localhost" "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_hoursofservice" "0800h - 1600h EST" "ows_contactinstructions" "during hours of service" "ows_role" "staff" "ows_enable_request" "GetCapabilities" # GetCapabilities disabled because of wfs_enable_request "wfs_enable_request" "!GetCapabilities DescribeFeatureType" # DescribeFeatureType disabled for province, it is specified at layer level END END PROJECTION "init=epsg:4326" # "init=./data/epsg2:42304" # "init=epsg:42304" END # # Start of layer definitions # LAYER NAME province DATA province METADATA "wfs_title" "province" "wfs_description" "province" "wfs_result_fields" "NAME_E YEAR_EST AREA_KMSQ" "wfs_featureid" "NAME_E" "ows_enable_request" "!GetFeature !DescribeFeatureType" # GetFeature enabled because of wfs_enable_request "wfs_enable_request" "GetFeature" END TYPE POINT STATUS ON PROJECTION "init=./data/epsg2:42304" # "init=epsg:42304" END DUMP TRUE CLASSITEM "Name_e" CLASS NAME "Province" COLOR 200 255 0 OUTLINECOLOR 120 120 120 END END # Layer END # Map File