Hello All, I'm running Mapserver 5.6.3 and have a WCS service configured. I'm finding that a GetCoverage request like:
http://mapserver.ngdc.noaa.gov/cgi-bin/public/etopo1/etopo1.tif?request=GetCoverage&service=WCS&version=1.1.1&COVERAGE=etopo1&crs=EPSG:4326&format=geotiff&resx=0.0083333333&resy=0.0083333333&bbox=-95,25,-75,40 delivers a corrupted geotiff that appears to have header information prepended to the TIFF, e.g. --wcs Content-Type: text/xml Content-ID: wcs.xml <?xml version="1.0" encoding="UTF-8"?> <Coverages xmlns="http://www.opengis.net/wcs/1.1" xmlns:ows="http://www.opengis.net/ows" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/ows/1.1 ../owsCoverages.xsd"> <Coverage> <Reference xlink:href="cid:coverage/out.tif"/> </Coverage> </Coverages> --wcs Content-Type: image/tiff Content-Description: coverage data Content-Transfer-Encoding: binary Content-ID: coverage/out.tif Content-Disposition: INLINE I've included the complete mapfile below. I'm assuming that I have something misconfigured in either Mapserver or Apache - can someone please help me here? Thanks! --john MAP NAME WCS_server STATUS ON SIZE 500 250 #SYMBOLSET ../etc/symbols.sym EXTENT -180 -90 180 90 UNITS dd SHAPEPATH "/nfs/gisdata/rasters" IMAGECOLOR 255 255 255 FONTSET "/nfs/eogmapdata/fontset.txt" # # Start of web interface definition # WEB IMAGEPATH "/data/mapserver-vhost/html/tmp/" IMAGEURL "/tmp/" METADATA "wcs_label" "GMap WCS Demo Server" ### required "wcs_description" "Some text description of the service" "wcs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv.exe?" ### recommended "wcs_service_onlineresource" "http://127.0.0.1/cgi-bin/mapserv.exe?" END END PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME GEOTIFF DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE "BYTE" EXTENSION "tif" FORMATOPTION "COMPRESS=LZW" END OUTPUTFORMAT NAME GEOTIFF_FLOAT DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE "FLOAT32" EXTENSION "tif" FORMATOPTION "COMPRESS=LZW" END LAYER NAME etopo1 METADATA "wcs_label" "Elevation/Bathymetry" ### required "wcs_rangeset_name" "Range 1" ### required to support DescribeCoverage request "wcs_rangeset_label" "My Label" ### required to support DescribeCoverage request END TYPE RASTER ### required STATUS ON DATA ETOPO1_Ice_g.tif PROJECTION "init=epsg:4326" END DUMP TRUE ### required END END # Map File _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
