<div dir="ltr"><div><div><div><div>thx Thomas now it work !<br><br></div>My wrong was use the wrong name in wcs_formats.<br><br></div><div>Instead the wcs_formats need to have the value from NAME element of outputformat or from the MIMETYPE element.<br>
<br></div><div>So the right setting is:<br><br> OUTPUTFORMAT<br> NAME GEOTIFF_16<br> DRIVER "GDAL/GTiff"<br> MIMETYPE "image/tiff"<br> IMAGEMODE FLOAT32<br> EXTENSION "tif"<br>
END<br><br> OUTPUTFORMAT<br> NAME AAIGRID<br> DRIVER "GDAL/AAIGRID"<br> MIMETYPE "image/x-aaigrid"<br> IMAGEMODE INT16<br> EXTENSION "grd"<br> FORMATOPTION "FILENAME=result.grd"<br>
END<br><br><br></div><div>and at layer level:<br><br> "wcs_formats" "GEOTIFF_16 AAIGRID"<br></div><div>or otherwise (same result):<br></div><div> "wcs_formats" "image/tiff image/x-aaigrid"</div>
<div><br></div><br></div>Many thx for your precious help.<br></div><br>Andrea.<br><div><br><div><div><br></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014/1/17 Thomas Bonfort <span dir="ltr"><<a href="mailto:thomas.bonfort@gmail.com" target="_blank">thomas.bonfort@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Where does your FORMAT=GTiff come from? Try with FORMAT=image/tiff or FORMAT=GEOTIFF_16<br>
<br>
--<br>
thomas<br>
<div><div class="h5"><br>
On 17 janv. 2014, at 11:25, Andrea Peri <<a href="mailto:aperi2007@gmail.com">aperi2007@gmail.com</a>> wrote:<br>
<br>
> Hi,<br>
><br>
> I'm try to set a wcs server using mapserver.<br>
> using mapserver-trunk version.<br>
><br>
> I try to set an output of kind FLOAT 32 GDAL/Tiff<br>
><br>
> To do this I use this setting:<br>
><br>
> OUTPUTFORMAT<br>
> NAME GEOTIFF_16<br>
> DRIVER "GDAL/GTiff"<br>
> MIMETYPE "image/tiff"<br>
> IMAGEMODE FLOAT32<br>
> EXTENSION "tif"<br>
> END<br>
><br>
> and at layer level I set this values:<br>
><br>
> "wcs_srs" "EPSG:3003"<br>
> "wcs_resolution" "75 75"<br>
> "wcs_bandcount" "1"<br>
> "wcs_formats" "GDAL/GTiff AAIGrid"<br>
> "wcs_nativeformat" " AAIGrid "<br>
> "wcs_rangeset_name" "Range 1"<br>
> "wcs_rangeset_label" "My Lable"<br>
><br>
> But when I retrieve the image,<br>
><br>
> <a href="http://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" target="_blank">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</a><br>
><br>
> I retrieve an 8bit tif.<br>
> :(<br>
><br>
> Perhaps is missing something in definition ?<br>
><br>
> Thx<br>
><br>
><br>
> --<br>
> -----------------<br>
> Andrea Peri<br>
> . . . . . . . . .<br>
> qwerty àèìòù<br>
> -----------------<br>
</div></div>> _______________________________________________<br>
> mapserver-users mailing list<br>
> <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>-----------------<br>Andrea Peri<br>. . . . . . . . . <br>qwerty àèìòù<br>-----------------<br>
</div>