I retrieve wcs-dem.

curl --trace -i -H "Content-Type: application/image" -XGET ",35.813051,44.81901235734796,42.106463&WIDTH=1600&HEIGHT=1066&FORMAT=GTiff" > dem.tif

But, it generates 3 bands without having any dem value as :

(gdalinfo dem.tif)

Band 1 Block=1600x1 Type=Byte, ColorInterp=Red Band 2 Block=1600x1 Type=Byte, ColorInterp=Green Band 3 Block=1600x1 Type=Byte, ColorInterp=Blue

shp2img produces proper results :

Band 1 Block=2707x3 Type=Byte, ColorInterp=Gray

What am I doing possibly wrong ? What do I have to do to get raw wcs-dem value?

  • 1
    How have you defined the GTiff outputformat in your mapfile? – user30184 Oct 19 '15 at 9:52
  • like this:OUTPUTFORMAT NAME "GEOTIFF_16" DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE "INT16" EXTENSION "tif" END – atemiz88 Oct 20 '15 at 6:33
  • What version of MapServer do you have? Does it support WCS version 2.0.0? – nmtoken Mar 21 '16 at 22:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.