[Gdal-dev] Gdal_translate Error
David W. Lowther
DLowther at scigis.com
Wed Aug 18 12:18:31 EDT 2004
After some more investigation I have found that the images that do not
work correctly have been compressed with Encoder Version 188.8.131.52:
Input filename: ortho_e1-1_ok109 [TIFF]
Input image size: 10460.2 MB (10968298530 bytes)
Output file size: 216.9 MB (227481179 bytes)
Target Encoding Ratio: 50.00:1
Actual Encoding Ratio: 48.22:1
File type: GeoTIFF
Encoder Version: 184.108.40.206
Output Format: MrSID Generation 2
Start Time: Thu Sep 25 15:21:05 2003
Completion Time: Thu Sep 25 16:31:14 2003
I've got a 1.1.9 build of GDAL with the following MrSid options:
MRSID_DIR = e:\build\win6_dsdk
MRSID_LIB = /LIBPATH:$(MRSID_DIR)\bin\lib_md \
MrSIDDecode_md.lib lt_xTrans_md.lib advapi32.lib
Do I need to recompile with a newer version to make this work?
From: gdal-dev-bounces at xserve.flids.com
[mailto:gdal-dev-bounces at xserve.flids.com] On Behalf Of David W. Lowther
Sent: Wednesday, August 18, 2004 9:34 AM
To: gdal-dev at xserve.flids.com
Subject: RE: [Gdal-dev] Gdal_translate Error
Here's the complete command and results:
E:\Dave\GDAL\apps>gdal_translate -projwin 635544.7539 3930207.3199
648110.83864 3915163.12478 h:\deqdata\oklahoma\Oklahoma.sid
h:\deqdata\oklahoma\x1_35097D4.tif -co "TFW=YES"
Input file size is 63929, 57190
Computed -srcwin 22976 35037 12566 15044 from projected window.
0.ERROR 1: Internalize failed
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
Here's the SDW:
Can you tell if my -projwin is outside? I think it's OK.
BTW, I'd be happy to send someone a copy of this image if it would help
in debugging this situation.
From: Frank Warmerdam [mailto:warmerdam at pobox.com]
Sent: Monday, August 16, 2004 10:33 AM
To: David W. Lowther
Cc: gdal-dev at xserve.flids.com
Subject: Re: [Gdal-dev] Gdal_translate Error
David W. Lowther wrote:
> Hi List,
> We're processing some large SID images back to TIF to project. Some
> images work just fine, others (most) have issues like this:
> gdal_translate -projwin 635544.7539 3930207.3199 648110.83864
> 3915163.12478 h:\deqdata\oklahoma\Oklahoma.sid
> h:\deqdata\oklahoma\x1_35097D4.tif -co "TFW=YES"
> Input file size is 63929, 57190
> Computed -srcwin 22976 35037 12566 15044 from projected window.
> 0.ERROR 1: Internalize failed
> ERROR 1: GetBlockRef failed at X block offset 0, Y block offset
My guess would be that your -projwin definition touches an edge and for
reason related to rounding or whatever the requested window ends up
pixel or more off the image. This might result in an error similar to
you see. Can you verify if that might be it?
Altneratively, is it possible these are color images? If so, the
TIFF would be larger than 4GB and would run into some sort of problem.
PS. the error message should have included a y block offset which might
I set the clouds in motion - turn up | Frank Warmerdam,
warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
Gdal-dev mailing list
Gdal-dev at xserve.flids.com
More information about the Gdal-dev