Hi Even,<br><br>Thanks for your sample file, it really helped. It loads quickly in our application and in OpenEV so I'll have to look down another route to find out what's wrong with the customer's data.<br><br>
However, it does appear that there is a problem somewhere when doing a CreateCopy() as Ivan pointed out. I can translate that file to a GeoTiff in about 40seconds, but writing NITF has been going for about 5 minutes now and its still on "0" with no progress reported.<br>
<br>Thanks,<br><br>Jason<br><br><div class="gmail_quote">On Tue, May 13, 2008 at 2:45 PM, Even Rouault <<a href="mailto:even.rouault@mines-paris.org">even.rouault@mines-paris.org</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
I don't really understand why they would have issues with large file sizes<br>
(below the 4 GB of course)<br>
<br>
I've tried the following small python script to generate a 1.2 GB NITF file<br>
filled with '1' as a value :<br>
<br>
#!/usr/bin/env python<br>
<br>
import gdal<br>
<br>
new_ds = gdal.GetDriverByName( 'NITF' ).Create( 'largentf.ntf', 100000, 12000,<br>
1 )<br>
new_ds.GetRasterBand(1).Fill(1)<br>
new_ds = None<br>
<br>
<br>
It runs in less than one minute on my slow machine. I can open the resulting<br>
file with OpenEV and scroll through it quite smoothly. gdalinfo -checksum<br>
largetntf.ntf also runs in about 3 minutes, which seems reasonnable.<br>
<br>
a gdalinfo on the file shows that it is automatically tiled in blocks of<br>
256x256 and by looking at the code I can see that 256x256 tiling is<br>
automatically activated when either the number of lines or columns of the<br>
file is larger than 9999.<br>
<br>
So I don't see any obvious reason why you get poor performance. You could<br>
probably break with a debugger to see where it idles during gdal_translate ?<br>
<br>
I email you the bzip2 result of the 1.2 GB file that is only 1KB... so you can<br>
test on the same file as me.<br>
<br>
As far as your customer is concerned, maybe there is an issue with compression<br>
(for example a very large mono-block JPEG image ?). A 'gdalinfo' on the files<br>
could maybe give some hints ?<br>
<br>
Le Tuesday 13 May 2008 18:21:15 Jason Beverage, vous avez écrit :<br>
<div><div></div><div class="Wj3C7c">> Hi all,<br>
><br>
> I've got a customer who is using large NITF files (~1.5 GB) and is seeing<br>
> ridiculously slow load times in our application. I don't have access to<br>
> his data, so I can't test directly, but it seems like the NITF driver may<br>
> have some issues with large file sizes (> 1GB).<br>
><br>
> To test on my end, I created a few different GeoTiff files (600 MB, 800 MB,<br>
> and 1.2 GB) and tried to convert them to NITF using gdal_translate.<br>
> Converting the 600 and 800 MB files worked just fine and had very<br>
> reasonable speed (few minutes). However, when I tried to use<br>
> gdal_translate on the 1.2 GB file, the process hung at 0% for forever and I<br>
> had to kill it after waiting for a very long time. It seems as if there is<br>
> something magical about this 1 GB boundary.<br>
><br>
> Does anyone have any ideas or suggestions as to what could be causing this<br>
> issue?<br>
><br>
> Thanks!<br>
><br>
> Jason<br>
<br>
<br>
</div></div></blockquote></div><br>