[Gdal-dev] GDAL_Translate "too large to fit in tag" Problem

Frank Warmerdam warmerdam at pobox.com
Tue Nov 22 18:37:50 EST 2005


On 11/22/05, Junk Suresh <sureshjunk at gmail.com> wrote:
> Hello Group,
>
>   I'm having some problem converting  modis MOD09A1datasets into GeoTiff.
>  The command I'm running is
>
>  gdal_translate.exe -sds
> "C:\MODISASC\unzipped\MOD09A1.A2000153.fn_bwghanzi.004.2003020051319.hdf"
> C:\MODISASC\MOD09A1_A2000153_fn_bwghanzi_tif
>
>  The problem is that the Tif images are created but the projection
> information is missing. It puts a dummy 0,0 value for the Easting and
> Northing. The error message I get is " Lost metadata writing to GeoTIFF ...
> too large to fit in tag".
>
>  Any ideas as to why this error is popping out. I was able to successfully
> convert another MOD09A1 data set at a different location, this one was
> correctly georeferenced. When i did a gdalinfo on the files it turns out the
> file with the problem has a slightly different LOCALGRANULEID (this one is
> spread over two lines)

Junk Suresh,

I think the problem is that the file has too many GCPs to
be written to the tag in the GeoTIFF file.  One possible
solution is to rectify the image with gdalwarp before
writing to GeoTIFF.   But you can also feel free to file
this as a bug.  I ought to do something about it.

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