[Gdal-dev] Gdal_translate Error

David W. Lowther DLowther at scigis.com
Wed Aug 18 10:33:51 EDT 2004


Frank,

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:

             1.000000000000000
             0.000000000000000
             0.000000000000000
            -1.000000000000000
        612568.500000000000000
       3965244.500000000000000

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.

Thanks,

Dave

-----Original Message-----
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

David,

My guess would be that your -projwin definition touches an edge and for
some
reason related to rounding or whatever the requested window ends up
being a
pixel or more off the image.  This might result in an error similar to
what
you see.  Can you verify if that might be it?

Altneratively, is it possible these are color images?  If so, the
resulting
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
have
been helpful.


Best regards,

-- 
---------------------------------------+--------------------------------
------
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




More information about the Gdal-dev mailing list