Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WCS and netCDF input/output: automatically create a 3D netCDF file fo…
…r GDAL/netCDF output metadata if the input dataset is itself a 3D netCDF file (if wcs_outputformat_netCDF_mdi_ not defined)
- Loading branch information
Showing
5 changed files
with
177 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file modified
BIN
+172 Bytes
(110%)
msautotest/wxs/expected/wcs_netcdf_input_output_wcs10_get_coverage.nc
Binary file not shown.
Binary file modified
BIN
+172 Bytes
(110%)
msautotest/wxs/expected/wcs_netcdf_input_output_wcs20_get_coverage.nc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
# | ||
# Test WCS. | ||
# | ||
# REQUIRES: INPUT=GDAL OUTPUT=PNG SUPPORTS=WCS | ||
|
||
# RUN_PARMS: wcs_netcdf_3d_input_output.nc [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WCS&VERSION=2.0.1&REQUEST=GetCoverage&COVERAGEID=multi&FORMAT=application/x-netCDF&RANGESUBSET=2,3" > [RESULT_DEMIME][IGNORE_COMPARISON_RESULT_ON_TRAVIS] | ||
|
||
MAP | ||
|
||
NAME TEST | ||
SIZE 105 61 | ||
EXTENT 14.4702712 47.8188382 18.0111282 49.8911432 | ||
|
||
#CONFIG "MS_ERRORFILE" "stderr" | ||
|
||
OUTPUTFORMAT | ||
NAME netCDF | ||
DRIVER "GDAL/netCDF" | ||
MIMETYPE "application/x-netCDF" | ||
IMAGEMODE Float32 | ||
EXTENSION "nc" | ||
END | ||
|
||
PROJECTION | ||
"init=epsg:4326" | ||
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 #METADATA | ||
END #WEB | ||
|
||
LAYER | ||
NAME multi | ||
TYPE raster | ||
STATUS ON | ||
|
||
DATA expected/wcs_netcdf_3d_output.nc | ||
|
||
PROJECTION | ||
"init=epsg:4326" | ||
END | ||
METADATA | ||
"ows_extent" "14.4702712 47.8188382 18.0111282 49.8911432" | ||
"wcs_size" "105 61" | ||
|
||
"wcs_label" "Test label" | ||
"wcs_formats" "netCDF" | ||
"wcs_native_format" "image/tiff" | ||
"wcs_description" "Test description" | ||
"wcs_metadatalink_href" "http://www.gdal.org/metadata_test_link.html" | ||
"wcs_keywordlist" "test,mapserver" | ||
"wcs_abstract" "abstract" | ||
"wcs_imagemode" "BYTE" | ||
|
||
"wcs_bandcount" "3" | ||
"wcs_rangeset_axes" "bands" | ||
"wcs_rangeset_name" "name" | ||
"wcs_rangeset_label" "Bands" | ||
"wcs_rangeset_description" "description" | ||
"wcs_rangeset_nullvalue" "0" | ||
END | ||
END | ||
|
||
END |