id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc 4205,serving DTED via WCS fails with GDAL/DTED driver,hammack,Frank Warmerdam,"I am trying to serve DTED data in its native format using WCS with mapserver 6.0.0 on Slackware 13.1. If I serve the data as a 16-bit GeoTIFF or do a WCS 2.0.0 GetCoverage with a PNG output, the images look good. But when I serve the same data using the GDAL/DTED driver the .dt1 file contains only 0 values for the data when using GetCoverage. Interestingly, shp2img gives me a file with nothing but 21074 (0x5252) for the data values. In both cases the output of gdalinfo looks okay. So it seems like mapserver is finding the data okay, but gdal (1.8.0) is not writing the dt1 file properly. ""gdal_translate -of DTED in.dt1 out.dt1"" works okay. ------------------------ # this works OUTPUTFORMAT NAME ""GEOTIFFINT16"" DRIVER ""GDAL/GTiff"" MIMETYPE ""image/tiff"" IMAGEMODE ""INT16"" EXTENSION ""tif"" END shp2img -m dted1.map -i PNG -l ""elevation"" -o fred.dt1 -e -90.0 30.0 -89.0 31.0 # works http://localhost/cgi-bin/mapserv?map=/mapserver/dted1.map&SERVICE=WCS&VERSION=2.0.0&REQUEST=GetCoverage&coverageid=elevation&format=png&subset=lon_axis,http://www.opengis.net/def/crs/EPSG/0/4326(-90.0,-89.0)&subset=lat_axis,http://www.opengis.net/def/crs/EPSG/0/4326(30.0,31.0) --------------------------- # this does not OUTPUTFORMAT NAME ""DTED"" DRIVER ""GDAL/DTED"" IMAGEMODE ""INT16"" EXTENSION ""dt1"" END shp2img -m dted1.map -i DTED -l ""elevation"" -o fred.dt1 -e -90.0 30.0 -89.0 31.0 # contains 0x5252 values only http://localhost/cgi-bin/mapserv?map=/mapserver/dted1.map&SERVICE=WCS&VERSION=2.0.0&REQUEST=GetCoverage&coverageid=elevation&format=DTED&subset=lon_axis,http://www.opengis.net/def/crs/EPSG/0/4326(-90.0,-89.0)&subset=lat_axis,http://www.opengis.net/def/crs/EPSG/0/4326(30.0,31.0) # contains zero values only ",defect,closed,normal,,GDAL_Raster,1.8.0,normal,invalid,DTED WCS,