Re: [Qgis-developer] Large raster (ecw) identify very long

2012-08-23 Thread haubourg
Guys, you are incredible! It works really well and fast. Furthermore, I don't know if you did something, but ecw drawing is instantaneous now. I have never seen that on any GIS! Thanks a lot Cheers Régis -- View this message in context:

Re: [Qgis-developer] Large raster (ecw) identify very long

2012-08-23 Thread Radim Blazek
On Wed, Aug 22, 2012 at 8:34 PM, Even Rouault even.roua...@mines-paris.org wrote: I suppose your workaround in QGIS will be to read 1x2 pixel or something like that. Yes, I have used 2x2. Hum, I humbly suggest that the fix should be done in the ECW driver rather than in QGIS. The issue

Re: [Qgis-developer] Large raster (ecw) identify very long

2012-08-23 Thread Radim Blazek
On Thu, Aug 23, 2012 at 10:41 AM, haubourg regis.haubo...@eau-adour-garonne.fr wrote: Guys, you are incredible! It works really well and fast. Furthermore, I don't know if you did something, but ecw drawing is instantaneous now. I have never seen that on any GIS! On Wed, Aug 22, 2012 at

Re: [Qgis-developer] Large raster (ecw) identify very long

2012-08-23 Thread Even Rouault
Until it get fixed in GDAL we can use if ( GDALGetDriverShortName() == ECW) and once you fix that #if defined(GDAL_VERSION_NUM) GDAL_VERSION_NUM x.x if ( GDALGetDriverShortName() == ECW) Seems reasonnable. Except I suggest using a string comparison function and not == ;-)

[Qgis-developer] Large raster (ecw) identify very long

2012-08-22 Thread haubourg
Hi all, I'm ready to support developpement now, so let's undig a topic discussed previously here: http://hub.qgis.org/issues/4594 http://hub.qgis.org/issues/4594 Identify for very large ecw (from 1 to 100 Go - 1 080 000 * 1 090 000 pixels) is extremely long (more than 1min) and results to

Re: [Qgis-developer] Large raster (ecw) identify very long

2012-08-22 Thread Radim Blazek
On Wed, Aug 22, 2012 at 11:40 AM, haubourg regis.haubo...@eau-adour-garonne.fr wrote: Hi all, I'm ready to support developpement now, so let's undig a topic discussed previously here: http://hub.qgis.org/issues/4594 http://hub.qgis.org/issues/4594 Identify for very large ecw (from 1 to 100

Re: [Qgis-developer] Large raster (ecw) identify very long

2012-08-22 Thread haubourg
Radim Blazek-2 wrote QGIS is using GDALRasterIO() which reads a single pixel on original resolution. AFAIK, ECW is using tiles internally so it should be all very fast. I can imagine 2 problems: - the tiles in ECW file are too big - can you verify somehow how big are the tiles? Hi

Re: [Qgis-developer] Large raster (ecw) identify very long

2012-08-22 Thread Radim Blazek
On Wed, Aug 22, 2012 at 12:29 PM, haubourg regis.haubo...@eau-adour-garonne.fr wrote: Radim Blazek-2 wrote QGIS is using GDALRasterIO() which reads a single pixel on original resolution. AFAIK, ECW is using tiles internally so it should be all very fast. I can imagine 2 problems: - the

Re: [Qgis-developer] Large raster (ecw) identify very long

2012-08-22 Thread Even Rouault
Selon Radim Blazek radim.bla...@gmail.com: On Wed, Aug 22, 2012 at 12:29 PM, haubourg regis.haubo...@eau-adour-garonne.fr wrote: Radim Blazek-2 wrote QGIS is using GDALRasterIO() which reads a single pixel on original resolution. AFAIK, ECW is using tiles internally so it should be

Re: [Qgis-developer] Large raster (ecw) identify very long

2012-08-22 Thread Radim Blazek
Even, thanks for exhaustive explanation and testing. On Wed, Aug 22, 2012 at 2:37 PM, Even Rouault even.roua...@mines-paris.org wrote: I found in GDAL ecwdataset.cpp that it is treating single row requests in IRasterIO in a special way: I tried the following Python script that must be

Re: [Qgis-developer] Large raster (ecw) identify very long

2012-08-22 Thread Radim Blazek
On Wed, Aug 22, 2012 at 3:25 PM, haubourg regis.haubourg@eau-adour- Radim, I'll try to to check if tiles are present, but I don't think so. We compressed it with ERmapper without tile option. No more important, we know already the problem. I'm afraid I'm not yet able to test patches since I

Re: [Qgis-developer] Large raster (ecw) identify very long

2012-08-22 Thread Even Rouault
Le mercredi 22 août 2012 20:13:39, Radim Blazek a écrit : Even, thanks for exhaustive explanation and testing. On Wed, Aug 22, 2012 at 2:37 PM, Even Rouault even.roua...@mines-paris.org wrote: I found in GDAL ecwdataset.cpp that it is treating single row requests in IRasterIO in a