# # Test WCS. # # REQUIRES: INPUT=GDAL OUTPUT=PNG SUPPORTS=WCS # # # General tests # # Exception # RUN_PARMS: wcs_post_exception1.xml [MAPSERV] -nv [POST][/POST] > [RESULT_DEVERSION] [RESULT_DEMIME] # RUN_PARMS: wcs_post_exception2.xml [MAPSERV] -nv [POST][/POST] > [RESULT_DEVERSION] [RESULT_DEMIME] # # WCS 1.1 POST tests # # Capabilities 1.1 updatesequence (less than) # RUN_PARMS: wcs11_post_caps_updatesequence.xml [MAPSERV] -nv [POST]1999-10-21T12:22:33Z[/POST] > [RESULT_DEMIME] # Capabilities 1.1 updatesequence exception (equal) # RUN_PARMS: wcs11_post_exception_updatesequence1.xml [MAPSERV] -nv [POST]2007-10-30T14:23:38Z[/POST] > [RESULT_DEMIME] # Capabilities 1.1 updatesequence exception (higher) # RUN_PARMS: wcs11_post_exception_updatesequence2.xml [MAPSERV] -nv [POST]2008-01-13T14:23:38Z[/POST] > [RESULT_DEMIME] # # Capabilities 1.1 selected section # RUN_PARMS: wcs11_post_caps_section1.xml [MAPSERV] -nv [POST]OperationsMetadataContents[/POST] > [RESULT_DEMIME] # Capabilities 1.1 selected sections # RUN_PARMS: wcs11_post_caps_section2.xml [MAPSERV] -nv [POST]ServiceIdentificationServiceProvider[/POST] > [RESULT_DEMIME] # Capabilities 1.1 selected sections # RUN_PARMS: wcs11_post_caps_section3.xml [MAPSERV] -nv [POST]All[/POST] > [RESULT_DEMIME] # # Capabilities 1.1 # RUN_PARMS: wcs11_post_cap.xml [MAPSERV] -nv [POST][/POST] > [RESULT_DEVERSION] [RESULT_DEMIME] # # Coverage description 1.1 # RUN_PARMS: wcs11_post_describe.xml [MAPSERV] -nv [POST]grey[/POST] > [RESULT_DEMIME] # # GetCoverage to AAIGRID 1.1 (normal CRS) # RUN_PARMS: wcs11_post_getcov_grd.dat [MAPSERV] -nv [POST]grey0 0400 300urn:ogc:def:crs:OGC::imageCRSurn:ogc:def:method:WCS:1.1:2dGridIn2dCrs0 29530 -30[/POST] > [RESULT] # # GetCoverage to AAIGRID 1.1 (imageCRS) # RUN_PARMS: wcs11_post_getcov_grd_imagecrs.dat [MAPSERV] -nv [POST]grey0 039 29urn:ogc:def:crs:OGC::imageCRSurn:ogc:def:method:WCS:1.1:2dGridIn2dCrs0 03 3[/POST] > [RESULT] # # GetCoverage to AAIGRID 1.1 (EPSG 4326 with reversed axes) # RUN_PARMS: wcs11_post_getcov_grd_4326.dat [MAPSERV] -nv [POST]grey0 -121.488743889680.0027058261133485 -121.48516027717urn:ogc:def:crs:OGC::imageCRSurn:ogc:def:method:WCS:1.1:2dGridIn2dCrs0.0027058261133485 -121.48874388968-0.0003 0.0003[/POST] > [RESULT] # # GetCoverage to AAIGRID 1.1 (WGS84 (non-EPSG - normal axes) # RUN_PARMS: wcs11_post_getcov_grd_wgs84.dat [MAPSERV] -nv [POST]grey-121.48874388968 0-121.48516027717 0.0027058261133485urn:ogc:def:crs:OGC::imageCRSurn:ogc:def:method:WCS:1.1:2dGridIn2dCrs-121.48874388968 0.00270582611334850.0003 -0.0003[/POST] > [RESULT] # # GetCoverage to GDPNG 1.1 (Test non-GDAL output) # RUN_PARMS: wcs11_post_getcov_gdpng8.dat [MAPSERV] -nv [POST]grey0 -121.488743889680.0027058261133485 -121.48516027717urn:ogc:def:crs:OGC::imageCRSurn:ogc:def:method:WCS:1.1:2dGridIn2dCrs0.0027058261133485 -121.48874388968-0.0003 0.0003[/POST] > [RESULT] # # InvalidParameterValue # RUN_PARMS: wcs11_post_exception_invalidparam_request.xml [MAPSERV] -nv [POST][/POST] > [RESULT_DEMIME] # RUN_PARMS: wcs11_post_exception_invalidparam_coverage.xml [MAPSERV] -nh [POST]invalid0 -121.488743889680.0027058261133485 -121.48516027717urn:ogc:def:crs:OGC::imageCRSurn:ogc:def:method:WCS:1.1:2dGridIn2dCrs0.0027058261133485 -121.48874388968-0.0003 0.0003[/POST] > [RESULT_DEMIME] # RUN_PARMS: wcs11_post_exception_invalidparam_format.xml [MAPSERV] -nh [POST]grey0 -121.488743889680.0027058261133485 -121.48516027717urn:ogc:def:crs:OGC::imageCRSurn:ogc:def:method:WCS:1.1:2dGridIn2dCrs0.0027058261133485 -121.48874388968-0.0003 0.0003[/POST] > [RESULT_DEMIME] # # MissingParameterValue # RUN_PARMS: wcs11_post_exception_missingparam_coverage.xml [MAPSERV] -nh [POST]0 -121.488743889680.0027058261133485 -121.48516027717urn:ogc:def:crs:OGC::imageCRSurn:ogc:def:method:WCS:1.1:2dGridIn2dCrs0.0027058261133485 -121.48874388968-0.0003 0.0003[/POST] > [RESULT_DEMIME] # RUN_PARMS: wcs11_post_exception_missingparam_format.xml [MAPSERV] -nh [POST]grey0 -121.488743889680.0027058261133485 -121.48516027717urn:ogc:def:crs:OGC::imageCRSurn:ogc:def:method:WCS:1.1:2dGridIn2dCrs0.0027058261133485 -121.48874388968-0.0003 0.0003[/POST] > [RESULT_DEMIME] # # # WCS 2.0.0 POST tests # # RUN_PARMS: wcs_20_post_cap.xml [MAPSERV] -nh [POST][/POST] > [RESULT_DEMIME] # # RUN_PARMS: wcs_20_post_desc.xml [MAPSERV] -nh [POST]grey[/POST] > [RESULT_DEMIME] # # Subsetting # RUN_PARMS: wcs_20_post_getcov_trim_x_min.tif [MAPSERV] -nh [POST]image/tiffgreyx20[/POST] > [RESULT_DEMIME] # RUN_PARMS: wcs_20_post_getcov_trim_x_max.tif [MAPSERV] -nh [POST]image/tiffgreyx20[/POST] > [RESULT_DEMIME] # RUN_PARMS: wcs_20_post_getcov_trim_x_both.tif [MAPSERV] -nh [POST]image/tiffgreyx1020[/POST] > [RESULT_DEMIME] # RUN_PARMS: wcs_20_post_getcov_trim_y_max.tif [MAPSERV] -nh [POST]image/tiffgreyy20[/POST] > [RESULT_DEMIME] # RUN_PARMS: wcs_20_post_getcov_trim_y_min.tif [MAPSERV] -nh [POST]image/tiffgreyy20[/POST] > [RESULT_DEMIME] # RUN_PARMS: wcs_20_post_getcov_trim_y_both.tif [MAPSERV] -nh [POST]image/tiffgreyy1020[/POST] > [RESULT_DEMIME] # RUN_PARMS: wcs_20_post_getcov_trim_x_y_both.tif [MAPSERV] -nh [POST]image/tiffgreyx1020y1020[/POST] > [RESULT_DEMIME] # (#3857): # RUN_PARMS: wcs_20_post_getcov_trim_x_y_both_1px.tif [MAPSERV] -nh [POST]image/tiffgreyx1010.1y1010.1[/POST] > [RESULT_DEMIME] # RUN_PARMS: wcs_20_post_getcov_full_multipart.dat [MAPSERV] -nh [POST]image/tiffgreymultipart/mixed[/POST] > [RESULT_DEMIME] # # Subsetting in diverse CRS # RUN_PARMS: wcs_20_post_getcov_imageCRS.tif [MAPSERV] -nh [POST]image/tiffgreyx010y010[/POST] > [RESULT_DEMIME] # RUN_PARMS: wcs_20_post_getcov_origCRS.tif [MAPSERV] -nh [POST]image/tiffgreyx050y050[/POST] > [RESULT_DEMIME] # RUN_PARMS: wcs_20_post_getcov_reproj.tif [MAPSERV] -nh [POST]image/tiffgreylon-121.488-121.487lat0.0000.001[/POST] > [RESULT_DEMIME] # # Scaling # RUN_PARMS: wcs_20_post_getcov_scaling_size_full.tif [MAPSERV] -nh [POST]image/tiffgrey1020[/POST] > [RESULT_DEMIME] # RUN_PARMS: wcs_20_post_getcov_scaling_resolution_full.tif [MAPSERV] -nh [POST]image/tiffgrey2020[/POST] > [RESULT_DEMIME] # RUN_PARMS: wcs_20_post_getcov_scaling_size_trim_both.tif [MAPSERV] -nh [POST]image/tiffgrey4040x1030y1030[/POST] > [RESULT_DEMIME] # RUN_PARMS: wcs_20_post_getcov_scaling_resolution_trim_both.tif [MAPSERV] -nh [POST]image/tiffgrey55x1030y1030[/POST] > [RESULT_DEMIME] # # Scaling in imageCRS # RUN_PARMS: wcs_20_post_getcov_imageCRS_scaling_size_trim_both.tif [MAPSERV] -nh [POST]image/tiffgrey2030x1020y1030[/POST] > [RESULT_DEMIME] # RUN_PARMS: wcs_20_post_getcov_imageCRS_scaling_resolution_trim_both.tif [MAPSERV] -nh [POST]image/tiffgrey205x010y010[/POST] > [RESULT_DEMIME] # # Scaling in Original CRS # RUN_PARMS: wcs_20_post_getcov_origCRS_scaling_size_trim_both.tif [MAPSERV] -nh [POST]image/tiffgrey3035x050y050[/POST] > [RESULT_DEMIME] # RUN_PARMS: wcs_20_post_getcov_origCRS_scaling_resolution_trim_both.tif [MAPSERV] -nh [POST]image/tiffgrey52x050y050[/POST] > [RESULT_DEMIME] # # Reprojected Scaling # RUN_PARMS: wcs_20_post_getcov_reproj_scaling_size_trim_both.tif [MAPSERV] -nh [POST]image/tiffgrey3040lon-121.488-121.487lat0.0000.001[/POST] > [RESULT_DEMIME] # RUN_PARMS: wcs_20_post_getcov_reproj_scaling_resolution_trim_both.tif [MAPSERV] -nh [POST]image/tiffgrey0.000020.00005lon-121.488-121.487lat0.0000.001[/POST] > [RESULT_DEMIME] # # Size and Resolution # RUN_PARMS: wcs_20_post_getcov_scaling_size_resolution.tif [MAPSERV] -nh [POST]image/tiffgrey105[/POST] > [RESULT_DEMIME] # RUN_PARMS: wcs_20_post_getcov_scaling_resolution_size.tif [MAPSERV] -nh [POST]image/tiffgrey510[/POST] > [RESULT_DEMIME] # # Interpolation # RUN_PARMS: wcs_20_post_getcov_interpolation_nearest.tif [MAPSERV] -nh [POST]image/tiffgrey2020NEAREST[/POST] > [RESULT_DEMIME] # RUN_PARMS: wcs_20_post_getcov_interpolation_average.tif [MAPSERV] -nh [POST]image/tiffgrey2020AVERAGE[/POST] > [RESULT_DEMIME] # RUN_PARMS: wcs_20_post_getcov_interpolation_bilinear.tif [MAPSERV] -nh [POST]image/tiffgrey2020BILINEAR[/POST] > [RESULT_DEMIME] # # InvalidParameterValue # RUN_PARMS: wcs_20_post_exception_invalidparam_request.xml [MAPSERV] -nh [POST][/POST] > [RESULT_DEMIME] # RUN_PARMS: wcs_20_post_exception_invalidparam_coverage.xml [MAPSERV] -nh [POST]image/tiffinvalid[/POST] > [RESULT_DEMIME] # RUN_PARMS: wcs_20_post_exception_invalidparam_format.xml [MAPSERV] -nh [POST]image/invalidgrey[/POST] > [RESULT_DEMIME] # RUN_PARMS: wcs_20_post_exception_invalidparam_interpolation.xml [MAPSERV] -nh [POST]image/tiffINVALIDINTERPOLATIONgrey[/POST] > [RESULT_DEMIME] # # MissingParameterValue # RUN_PARMS: wcs_20_post_exception_missingparam_coverage.xml [MAPSERV] -nh [POST]image/tiff[/POST] > [RESULT_DEMIME] # RUN_PARMS: wcs_20_post_exception_missingparam_format.xml [MAPSERV] -nh [POST]grey[/POST] > [RESULT_DEMIME] # # TooManyParameterValues # RUN_PARMS: wcs_20_post_exception_toomanyparams_coverage.xml [MAPSERV] -nh [POST]image/tiffgreygrey2[/POST] > [RESULT_DEMIME] # # ExtentError # RUN_PARMS: wcs_20_post_exception_extent_nooverlap.xml [MAPSERV] -nh [POST]image/tiffgreyx10002000y10002000[/POST] > [RESULT_DEMIME] # # ScalingError # RUN_PARMS: wcs_20_post_exception_scaling.xml [MAPSERV] -nh [POST]image/tiffgrey2020[/POST] > [RESULT_DEMIME] # MAP NAME TEST SIZE 400 300 EXTENT 0 0 400 300 IMAGETYPE PNG TRANSPARENT OFF SHAPEPATH "data" OUTPUTFORMAT NAME GEOTIFF_BYTE DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE BYTE EXTENSION "tif" END OUTPUTFORMAT NAME GDPNG DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END OUTPUTFORMAT NAME GDPNGGREY DRIVER "GD/PNG" MIMETYPE "image/png; mode=8bit" IMAGEMODE PC256 EXTENSION "png" END OUTPUTFORMAT NAME AAIGRID DRIVER "GDAL/AAIGRID" MIMETYPE "image/x-aaigrid" IMAGEMODE INT16 EXTENSION "grd" END PROJECTION "init=epsg:32611" END WEB METADATA # OWS stuff for server "ows_updatesequence" "2007-10-30T14:23:38Z" "ows_title" "First Test Service" "ows_fees" "NONE" "ows_accessconstraints" "NONE" "ows_abstract" "Test Abstract" "ows_keywordlist" "keyword,list" "ows_service_onlineresource" "http://198.202.74.215/cgi-bin/wcs_demo" "ows_contactorganization" "OSGeo" "ows_contactperson" "Frank Warmerdam" "ows_contactposition" "Software Developer" "ows_contactvoicetelephone" "(613) 754-2041" "ows_contactfacsimiletelephone" "(613) 754-2041x343" "ows_address" "3594 Foymount Rd" "ows_city" "Eganville" "ows_stateorprovince" "Ontario" "ows_postcode" "K0J 1T0" "ows_country" "Canada" "ows_contactelectronicmailaddress" "warmerdam@pobox.com" "ows_hoursofservice" "0800h - 1600h EST" "ows_contactinstructions" "during hours of service" "ows_role" "staff" "ows_enable_request" "*" # OGC:WCS "wcs_label" "Test Label" "wcs_description" "Test description" "wcs_onlineresource" "http://devgeo.cciw.ca/cgi-bin/mapserv/ecows" "wcs_metadatalink_href" "http://devgeo.cciw.ca/index.html" END END LAYER NAME grey TYPE raster STATUS ON DUMP TRUE TILEINDEX "wcs_index.shp" TILEITEM "location" PROJECTION "init=epsg:32611" END METADATA "ows_extent" "0 0 400 300" "wcs_label" "Test label" "ows_srs" "EPSG:32611 EPSG:4326" "wcs_resolution" "10 10" "wcs_bandcount" "1" "wcs_formats" "GEOTIFF_BYTE GDPNG AAIGRID" "wcs_nativeformat" "GeoTIFF" "wcs_description" "Test description" "wcs_metadatalink_href" "http://www.gdal.org/metadata_test_link.html" "wcs_keywordlist" "test,mapserver" "wcs_abstract" "Category: Image Product: IKONOS-2 PAN/MSI Acquisition: 1999-10-11 18:47" "wcs_rangeset_axes" "bands" "wcs_rangeset_name" "Landsat 5 TM Bands" "wcs_rangeset_label" "Bands" "wcs_rangeset_description" "Bands for Landsat 5 TM" "wcs_rangeset_nullvalue" "-99" "wcs_imagemode" "BYTE" END END END