[gdal-dev] Re: NITF driver reads GEOLOB, but does not write it.

Even Rouault even.rouault at mines-paris.org
Thu Sep 23 16:38:13 EDT 2010


No, you must not write CETAG = 'GEOLOB', ... as the value of the TRE. You must 
really format the TRE byte by byte, without any separator or field name, 
according to its documentation.

gdal_translate -of NITF foo.tif foo.ntf -co 
"TRE=GEOLOB=073932800080076800-096.9774560321+045.1446198929"

Le jeudi 23 septembre 2010 22:32:44, turtlewax a écrit :
> Even, thanks for responding.  The ultimate goal is to serve up NITFs via
> MapServer. So if we need to specify a TRE option, we would need to define
> it in the mapfile.
> 
> Still, this is a good lead. Do you have any guidance on exercising this
> from the command-line?
> 
> gdal_translate -of NITF -co TRE=GEOLOB="CETAG = 'GEOLOB'\n        CEL   =
> '00048'\n        ARV   = '073932800'\n
>     BRV   = '080076800'\n        LSO   = '-096.9774560321'\n        PSO   =
> '+045.1446198929'\n        IS_OVERFLOW =        0" foo.tif foo.ntf
> Input file size is 1543, 1670
> ERROR 1: Cannot read GEOLOB TRE. Wrong size.
> 0...10...20...30...40...50...60...70...80...90...100 - done.


More information about the gdal-dev mailing list