[GRASS-user] Problem opening TIF file

Glynn Clements glynn at gclements.plus.com
Fri Oct 3 13:13:41 EDT 2008


Edward Tomlinson wrote:

> Further to my previous GDAL problem (trying to open ECW files), i am having
> issues opening some tif files. When i do
> 
> *$gdalinfo filename.tif*
> 
> I get the error 4 not recognised as a supported file format. However i tried
> importing another tif file and it worked fine. Difference is size (10m vs
> 2.5m resolution). The tif file size is 3.2gb (it should be able to handle
> 4gb right??)

If file size is the issue, the limit is normally 2GiB (file offsets
are signed values, so are limited to +/- 2GiB).

GDAL supports large files. In the native Windows build, it's always
available; on Unix, it depends upon whether the configure script
detected 64-bit stdio support. On Linux, you can use:

	nm -D libgdal.so | fgrep fopen64

to determine whether GDAL was built with 64-bit stdio support.

Also, in order to use GDAL in conjunction with GRASS, it's preferable
not to enable GRASS support in GDAL. In particular, don't use GRASS
with a GDAL library which was built against a different version of
GRASS.

If you need to use GDAL to access GRASS datasets from outside of
GRASS, either build the gdal-grass plugin, or build another version of
GDAL with GRASS support (but don't use that version for GRASS).

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-user mailing list