[gdal-dev] [gdal_retile]reshape ecw

christian.mueller at nvoe.at christian.mueller at nvoe.at
Wed Oct 20 10:54:37 EDT 2010


The error does not occur in the gdal_retile.py  python code, it occurs  
in the gdal C code.  Your tile size
is really large producing images with 100 millions of pixel. Try a  
smaller  pixel size, each pixel needs some bytes, dependent on your  
color model.

Quoting Tacot <cfab13 at hotmail.fr>:

>
> Hi,
>
> I try to cut an image in several tiles.
> I use this command:
>
> gdal_retile -of ECW -ps 10000 10000 -targetDir C:\GDAL\ECW Image.ecw
>
> I obtain 4 tiles, but after I've got this message:
>
> "Traceback (most recent call last):
>   File "C:\PROGRA~1\FWTOOL~1.7\bin\gdal_retile.py", line 941, in ?
>     sys.exit(main(sys.argv))
>   File "C:\PROGRA~1\FWTOOL~1.7\bin\gdal_retile.py", line 858, in main
>     dsCreatedTileIndex = tileImage(minfo,ti)
>   File "C:\PROGRA~1\FWTOOL~1.7\bin\gdal_retile.py", line 336, in tileImage
>     createTile(minfo, offsetX, offsetY, width, height,tilename,OGRDS)
>   File "C:\PROGRA~1\FWTOOL~1.7\bin\gdal_retile.py", line 507, in createTile
>     data = s_band.ReadRaster( 0,0,readX,readY,readX,readY,  t_band.DataType
> )
>   File "C:\PROGRA~1\FWTOOL~1.7\pymod\gdal.py", line 851, in ReadRaster
>     buf_xsize, buf_ysize,buf_type)
> MemoryError"
>
> So I guess that's a memory's problem.
> So Is there a means to by-pass it?
>
> Thanks
>
> --
> View this message in context:   
> http://osgeo-org.1803224.n2.nabble.com/gdal-retile-reshape-ecw-tp5655048p5655048.html
> Sent from the GDAL - Dev mailing list archive at Nabble.com.
>



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




More information about the gdal-dev mailing list