[Gdal-dev] Advice on Raster Formats

Bill Binko bill at binko.net
Tue Aug 30 16:50:20 EDT 2005


On Tue, 30 Aug 2005, Bart van den Eijnden wrote:

> Hi Bill,
> 
> I *think* you would have to translate your tiff files first to compressed  
> tiff using the -co option.
> 
> COMPRESS=[JPEG/LZW/PACKBITS/DEFLATE/NONE]
> 
> I don't think it is possible to do it in one step, but I could be wrong.
> 
> Best regards,
> Bart
> 

Looks like you can do it in one step... here are some results:


ECW Q2918se.ecw
24.95user 0.54system 0:25.67elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k

Deflated TIFF Q2918se.dtiff
2.72user 0.42system 0:04.31elapsed 73%CPU (0avgtext+0avgdata 0maxresident)k

JPEG TIFF Q2918se.jtiff
4.20user 0.32system 0:04.58elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k

PACKEDBITS TIFF Q2918se.ptiff
0.75user 0.47system 0:03.51elapsed 35%CPU (0avgtext+0avgdata 0maxresident)k

MrSID Q2918se.sid
54.24user 6.08system 1:07.68elapsed 89%CPU (0avgtext+0avgdata 0maxresident)k

RAW GeoTIFF Q2918se.tiff
0.71user 0.50system 0:03.75elapsed 32%CPU (0avgtext+0avgdata 0maxresident)k

TILED GeoTIFF Q2918se.ttiff
0.99user 0.43system 0:02.18elapsed 65%CPU (0avgtext+0avgdata 0maxresident)k

JPEG2000 (from ERMapper) Q2918se.jp2
50.72user 0.79system 0:52.11elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k

Here are the sizes
 19226192 Aug 30 02:05 Q2918se.ecw
118184508 Aug 30 15:47 Q2918se.dtiff
 33824190 Aug 30 15:48 Q2918se.jtiff
135728598 Aug 30 15:49 Q2918se.ptiff
  7601858 Aug 30 02:21 Q2918se.sid
134983605 Aug 30 02:00 Q2918se.tiff
 20238367 Aug 30 16:45 Q2918se.jp2
137642794 Aug 30 15:53 Q2918se.ttiff

I can see the tradeoffs here (although I can't imagine choosing JP2 over 
ECW).  Thanks for the suggestions.

I'm still mulling over my strategy, let me know if anyone is inspired.

Bill



More information about the Gdal-dev mailing list