[gdal-dev] gdal_translate using a wms as input

Andrea Peri aperi2007 at gmail.com
Sat Apr 13 13:10:07 PDT 2013


Hi,

I'm try-ing to get a raster from a wms service using gdal_translate

this is the call I'm doing:

gdal_translate -of GTiff -co "TFW=Y
ES" -srcwin 0 0 377 283 "WMS:
http://www502.regione.toscana.it/cartografia/wmsras
ter/com.rt.wms.RTmap/wms?map=wmsofc&language=ita&&SERVICE=WMS&VERSION=1.3.0&REQU
EST=GetMap&BBOX=1671200.0,4680000.0,1672800.0,4681200.0&CRS=EPSG:3003&WIDTH=377&
HEIGHT=283&LAYERS=rt_ofc.10k10&STYLES=&FORMAT=image/jpeg&DPI=96&MAP_RESOLUTION=9
6&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE" output_01J31.tif

But it give me this error:

Input file size is 1073741824, 805306368
0ERROR 2:
jpeg&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE,
band 2: Out of memory in InitBlockInfo().
ERROR 2:
jpeg&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE, b
and 3: Out of memory in InitBlockInfo().
ERROR 2:
jpeg&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE, b
and 4: Out of memory in InitBlockInfo().
ERROR 2:
jpeg&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE, b
and 2: Out of memory in InitBlockInfo().
ERROR 2:
jpeg&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE, b
and 2: Out of memory in InitBlockInfo().
ERROR 2:
jpeg&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE, b
and 2: Out of memory in InitBlockInfo().
ERROR 2:
jpeg&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE, b
and 3: Out of memory in InitBlockInfo().
ERROR 2:
jpeg&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE, b
and 3: Out of memory in InitBlockInfo().
ERROR 2:
jpeg&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE, b
and 3: Out of memory in InitBlockInfo().
ERROR 2:
jpeg&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE, b
and 4: Out of memory in InitBlockInfo().
ERROR 2:
jpeg&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE, b
and 4: Out of memory in InitBlockInfo().
ERROR 2:
jpeg&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE, b
and 4: Out of memory in InitBlockInfo().
ERROR 2:
jpeg&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE, b
and 2: Out of memory in InitBlockInfo().
ERROR 2:
jpeg&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE, b
and 2: Out of memory in InitBlockInfo().
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0

If I try the sam wms request on a browser it work so
I don't understand what is wrong.

Any help is welcome,
thx

-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130413/6279e13d/attachment.html>


More information about the gdal-dev mailing list