[mapserver-users] Help with wcs output format

Andrea Peri aperi2007 at gmail.com
Fri Jan 17 02:41:55 PST 2014


thx Thomas now it work !

My wrong was use the wrong name in wcs_formats.

Instead the wcs_formats need to have the value from NAME element of
outputformat or from the MIMETYPE element.

So the right setting is:

  OUTPUTFORMAT
    NAME GEOTIFF_16
    DRIVER "GDAL/GTiff"
    MIMETYPE "image/tiff"
    IMAGEMODE FLOAT32
    EXTENSION "tif"
  END

  OUTPUTFORMAT
    NAME AAIGRID
    DRIVER "GDAL/AAIGRID"
    MIMETYPE "image/x-aaigrid"
    IMAGEMODE INT16
    EXTENSION "grd"
    FORMATOPTION "FILENAME=result.grd"
  END


and at layer level:

      "wcs_formats" "GEOTIFF_16 AAIGRID"
or otherwise (same result):
     "wcs_formats" "image/tiff image/x-aaigrid"


Many thx for your precious help.

Andrea.




2014/1/17 Thomas Bonfort <thomas.bonfort at gmail.com>

> Where does your FORMAT=GTiff come from? Try with FORMAT=image/tiff or
> FORMAT=GEOTIFF_16
>
> --
> thomas
>
> On 17 janv. 2014, at 11:25, Andrea Peri <aperi2007 at gmail.com> wrote:
>
> > Hi,
> >
> > I'm try to set a wcs server using mapserver.
> > using mapserver-trunk version.
> >
> > I try to set an output of kind FLOAT 32 GDAL/Tiff
> >
> > To do this I use this setting:
> >
> >   OUTPUTFORMAT
> >     NAME GEOTIFF_16
> >     DRIVER "GDAL/GTiff"
> >     MIMETYPE "image/tiff"
> >     IMAGEMODE FLOAT32
> >     EXTENSION "tif"
> >   END
> >
> > and at layer level I set this values:
> >
> >       "wcs_srs" "EPSG:3003"
> >       "wcs_resolution" "75 75"
> >       "wcs_bandcount" "1"
> >       "wcs_formats" "GDAL/GTiff AAIGrid"
> >       "wcs_nativeformat" "     AAIGrid "
> >       "wcs_rangeset_name"  "Range 1"
> >       "wcs_rangeset_label" "My Lable"
> >
> > But when I retrieve the image,
> >
> >
> www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wcsdem&&SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCoverage&FORMAT=GTiff&COVERAGE=rt_dem.iddtm.10m.rt&BBOX=1552445.86499726003967226,4672361.01880083978176117,1787087.97314971010200679,4930453.35410698968917131&CRS=EPSG:3003&RESPONSE_CRS=EPSG:3003&WIDTH=490&HEIGHT=538
> >
> > I retrieve an 8bit tif.
> > :(
> >
> > Perhaps is missing something in definition ?
> >
> > Thx
> >
> >
> > --
> > -----------------
> > Andrea Peri
> > . . . . . . . . .
> > qwerty àèìòù
> > -----------------
> > _______________________________________________
> > mapserver-users mailing list
> > mapserver-users at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>


-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140117/907ca196/attachment.html>


More information about the mapserver-users mailing list