I'm trying to split a large ECW file into smaller files.<br>I've downloaded and installed OSGeo4W with gdal16<br>I managed to split a small ecw file.<br>That ecw file had this info:<br><br>Driver: ECW/ERMapper Compressed Wavelets<br>
Files: tilertest.ecw<br>Size is 6800, 7500<br>Coordinate System is `'<br>Origin = (13000.000000000000000,381250.000000000000000)<br>Pixel Size = (2.500000000000000,-2.500000000000000)<br>Corner Coordinates:<br>Upper Left ( 13000.000, 381250.000) <br>
Lower Left ( 13000.000, 362500.000) <br>Upper Right ( 30000.000, 381250.000) <br>Lower Right ( 30000.000, 362500.000) <br>Center ( 21500.000, 371875.000) <br>Band 1 Block=6800x1 Type=Byte, ColorInterp=Red<br>
Overviews: arbitrary<br>Band 2 Block=6800x1 Type=Byte, ColorInterp=Green<br> Overviews: arbitrary<br>Band 3 Block=6800x1 Type=Byte, ColorInterp=Blue<br> Overviews: arbitrary<br><br>I used this statement:<br>gdal_retile -v -s_srs EPSG:28992 -of ECW -ps 3700 3750 -targetDir tiles TilerTest.ecw<br>
<br>But when I try to split the large ecw file (3.4GB) I get an error after a few minutes.<br>The info is:<br>Driver: ECW/ERMapper Compressed Wavelets<br>Files: Large.ecw<br>Size is 173334, 160000<br>Coordinate System is:<br>
LOCAL_CS["LOCAL - (unsupported)",<br> UNIT["Meter",1]]<br>Origin = (33000.000000000000000,381000.000000000000000)<br>Pixel Size = (0.150000000001455,-0.150000000023283)<br>Corner Coordinates:<br>Upper Left ( 33000.000, 381000.000) <br>
Lower Left ( 33000.000, 357000.000) <br>Upper Right ( 59000.100, 381000.000) <br>Lower Right ( 59000.100, 357000.000) <br>Center ( 46000.050, 369000.000) <br>Band 1 Block=173334x1 Type=Byte, ColorInterp=Red<br>
Overviews: arbitrary<br>Band 2 Block=173334x1 Type=Byte, ColorInterp=Green<br> Overviews: arbitrary<br>Band 3 Block=173334x1 Type=Byte, ColorInterp=Blue<br> Overviews: arbitrary<br><br>The statement is:<br>gdal_retile -v -s_srs EPSG:28992 -of ECW -ps 86667 80000 -targetDir tiles large.ecw >retile.txt<br>
<br>The logfile (retile.txt) shows:<br>Building internal Index for 1 tile(s) ... finished<br>Filename: Terneuzen_15cm.ecw<br>File Size: 173334x160000x3<br>Pixel Size: 0.150000 x -0.150000<br>UL:(33000.000000,381000.000000) LR:(59000.100000,356999.999996)<br>
tileWidth 86667<br>tileHeight 80000<br>countTilesX: 2<br>countTilesY: 2<br>lastTileWidth: 86667<br>lastTileHeight: 80000<br><br>And the error is:<br>Traceback (most recent call last):<br> File "C:\OSGeo4W\apps\gdal-16\bin\gdal_retile.py", line 938, in <module> sys.exit(main(sys.argv))<br>
File "C:\OSGeo4W\apps\gdal-16\bin\gdal_retile.py", line 855, in main dsCreatedTileIndex = tileImage(minfo,ti)<br> File "C:\OSGeo4W\apps\gdal-16\bin\gdal_retile.py", line 335, in tileImage createTile(minfo, offsetX, offsetY, width, height,tilename,OGRDS)<br>
File "C:\OSGeo4W\apps\gdal-16\bin\gdal_retile.py", line 467, in createTile dec.uly+offsetY*dec.scaleY)<br> File "C:\OSGeo4W\apps\gdal-16\bin\gdal_retile.py", line 250, in getDataSet data = s_band.ReadRaster( readOffsetX,readOffsetY,readX,readY, readX,readY,self.band_type )<br>
File "C:\OSGeo4W\apps\gdal-16\pymod\osgeo\gdal.py", line 760, in ReadRaster return _gdal.Band_ReadRaster(*args, **kwargs) MemoryError<br><br>I've searched using Google and found a similar error: <br><a href="http://article.gmane.org/gmane.comp.gis.gdal.devel/18936">http://article.gmane.org/gmane.comp.gis.gdal.devel/18936</a> and contacted Sarah, but she's still having the problem.<br>
<br>Does anybody know how to solve this?<br><br>I run it on a Vista 64-Bit 4-core, with 8GB RAM. I'm getting the same error on a WinXP sp3 2-core, with 2 GB RAM<br><br>Thanks,<br><br>Paul Meems<br>The Netherlands<br><br>