<HTML><HEAD><TITLE>Re: [Gvsig_english] QUESTION gvSIG -- Image files with fast rewrites</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.17080" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText38637>
<DIV><FONT face="Times New Roman" color=#000000 size=3>Hello, Simon.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>Yes, I have seen reasonably fast GeoTiff/TIF files. You will probably get one of those by using the parameters suggested by Jukka Rahkonen.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>As for the comparison between image formats, I have done myself some tests, and my current opinion is this:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>JPG/JPEG: very good compression ratio but very poor performance in terms of speed and memory consumption. Should be used only for long term storage or with very small images (for example, less than 5 megapixels, wich includes tiles, as Google Maps does). Should not be used either for very large images (for example, more than 50 megapixels) because the amount of memory needed to manage them&nbsp;can be&nbsp;really scary. For small images, it can be faster than ECW.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>ECW: very good compression ratio and very good performance in terms of memory consumption and speed. Good for any image size. It's based on the wavelets algorithm, and I suspect they have optimized significantly their computations thanks to many years of experience and very skilled C++ programmers.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>JPEG2000: Uses wavelets too, but in my (little) experience it's significantly slower than ECW, probably due to lack of optimization.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>GeoTiff, TIF: Lots of different options when creating them. Very resonable performance, I would say, though not as good as ECW in terms of compression ratio and speed.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>As far as I know, JPG and ECW can only store RGB images, while GeoTiff can manage other interesting data types (long integers, float, etc.)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>I don't know the details, but I think one needs to acquire some kind of license from Erdas (owner of the ECW format) when creating very large ECW images (more than 170 megapixels, I&nbsp; think) for commercial purposes.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>When I&nbsp;talk about&nbsp;compression ratio, I'm assuming a similar level of lossiness.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Another relevant format is MrSid, which I pressume is very similar to ECW, but less popular.</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>All in all, yes, I would say ECW is the best&nbsp;when using RGB images and deserves recognition.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Regards,</DIV>
<DIV><FONT face="Courier New" size=2><FONT face="Times New Roman" size=3>Juan Lucas Domínguez Rubio<BR></FONT>---</FONT></DIV></DIV>
<DIV id=idSignature88318>
<DIV><FONT face="Courier New" size=2><FONT face="Courier New" size=2><FONT face="Courier New" size=2>Prodevelop SL, Valencia (España)</FONT></DIV>
<DIV>
<DIV><FONT face="Courier New" size=2>Tlf.: 96.351.06.12 -- Fax: 96.351.09.68<BR></FONT><A href="http://www.prodevelop.es/"><FONT face="Courier New" size=2>http://www.prodevelop.es</FONT></A><BR><FONT face="Courier New" size=2>---</FONT></DIV></FONT></DIV></FONT></DIV>
<DIV><BR>
<HR>
<FONT face=Tahoma size=2><B>De:</B> gvsig_internacional-bounces@listserv.gva.es en nombre de Simon Cropper<BR><B>Enviado el:</B> mar 14/09/2010 14:52<BR><B>Para:</B> Users and Developers mailing list<BR><B>Asunto:</B> Re: [Gvsig_english] QUESTION gvSIG -- Image files with fast rewrites<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Hi Juan Lucas,<BR><BR>On Tuesday 14 September 2010 6:41:13 pm Juan Lucas Dominguez Rubio wrote:<BR>&gt; - If I remember it well, the gdal you get by using apt-get or similar does<BR>&gt; not include the ECW compressor, but I think the binaries from the FWTools<BR>&gt; website do, though I cannot test it right now:<BR>&gt;<BR>&gt; <A href="http://home.gdal.org/fwtools/FWTools-linux-2.0.6.tar.gz">http://home.gdal.org/fwtools/FWTools-linux-2.0.6.tar.gz</A><BR>&gt;<BR>&gt; Your experience suggests otherwise?<BR><BR>Ubuntu GDAL libraries keep resetting to version without ECW. Even the Ubuntu<BR>FWTools has reset. I keep setting up the system only to have it reset by<BR>itself.<BR><BR>&gt; Which error message do you get when trying to create a ECW?<BR><BR>None really. It is just that the library does not recognise ECW format.<BR><BR>&gt; gdal_translate -of ecw image.jpg image.ecw<BR><BR>Yeap. I found similar examples on the GDAL site and several HowTo websites.<BR><BR>The only way to get the FWTools to work was install it on a Windows machine<BR>then using the export tool.<BR><BR>&gt; - Have you tried compressed TIF?<BR><BR>No. Is it fast?<BR><BR>Do you know of anyone who has compiled a matrix of image formats against<BR>compression, retention of image integrity (~loss of detail) and rewrite time<BR>while panning (particularly in gvSIG)?<BR><BR>ECW files are touted as the best compression-image quality retention-rewrite<BR>combination: certainly in Australia it is the primary format used in natural<BR>resource management by consultants and government agencies. Is this hype, or<BR>does the format really hold the title?<BR><BR>&gt; ________________________________<BR>&gt;<BR>&gt; De: gvsig_internacional-bounces@listserv.gva.es en nombre de Simon Cropper<BR>&gt; (Botanicus Australia Pty Ltd) Enviado el: mar 14/09/2010 9:07<BR>&gt; Para: Users and Developers mailing list<BR>&gt; Asunto: [Gvsig_english] QUESTION gvSIG -- Image files with fast rewrites<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; Hi,<BR>&gt;<BR>&gt; Most of my clients provide aerial photography in ECW format. These images<BR>&gt; provide high resolution, are relatively small and quickly rewrite on the<BR>&gt; screen when panning.<BR>&gt;<BR>&gt; Lately I have been getting JPG files. These files however are quite big and<BR>&gt; take significantly longer time to rewrite.<BR>&gt;<BR>&gt; What is an alternative image format to ECW in the 'open free' environment?<BR>&gt; Something GDAL can be used to convert from JPG without jumping through<BR>&gt; hoops.<BR>&gt;<BR>&gt; Ideally the file sizes should be low despite the high resolution, gvSIG<BR>&gt; able to read it natively and is quick to rewrite when panning.<BR>&gt;<BR>&gt; Any suggestions would be appreciated.<BR>&gt;<BR>&gt; PS. I know gdal_translate can, supposedly convert between JPG and ECW, but<BR>&gt; despite many attempts I have been unable to get this to work. I am looking<BR>&gt; for something else, if possible, that has the same intrinsic properties<BR>&gt; but is recognized by default in the gdal libraries so that every time I<BR>&gt; get an update of the 'free' Ubuntu version the FWTools or alternative<BR>&gt; 'commercially enabled' version is not replaced.<BR><BR>--<BR>Cheers Simon<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Simon Cropper<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Botanicus Australia Pty Ltd<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PO Box 160 Sunshine 3020<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; P: 03 9311 5822. M: 041 830 3437<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; W: <A href="http://www.botanicusaustralia.com.au/">http://www.botanicusaustralia.com.au</A><BR>_______________________________________________<BR>Gvsig_internacional mailing list<BR>Gvsig_internacional@listserv.gva.es<BR><A href="http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional">http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional</A><BR></FONT></P></DIV></BODY></HTML>