Frank,

With the specified block size the problem has been resolved. Thank you
very much.

Mo

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Frank Warmerdam
Sent: Wednesday, September 17, 2008 4:00 PM
To: Mo Wang
Cc: gdal-dev@lists.osgeo.org
Subject: Re: [gdal-dev] Problem in viewing NITF images created by
GDAL_TRANSLATE

On Wed, Sep 17, 2008 at 2:26 PM, Mo Wang <[EMAIL PROTECTED]> wrote:
> Hi all,
>
>
>
> I used gdal_translate to make a complete copy of a nitf file and it
ran to
> completion. But the output image file can only be viewed partially on
a
> IMAGINE Viewer while the whole original image file can be viewed on
the
> Viewer. I believe that the data is there just it can not be viewed.


Mo,

It looks like the NITF writer normally writes the entire
NITF file as a single block image (regardless of the blocking
of the input image).  Possibly a single large block causes
problems for imagine, though I'm not sure why that would
be.

You can force blocking using the BLOCKXSIZE and BLOCKYSIZE
parameters.  So,if you add -co BLOCKXSIZE=1024 -co BLOCKYSIZE=1024
when running gdal_translate you should get 1024x1024 tiles.

Check if that helps.

Note that the GDAL NITF writer is not really very sophisticated, and
will often be inadequate to reproduce an original NITF given as
input.  However, it is certainly my intent that it should produce a
valid file.

Best regards,
-- 
---------------------------------------+--------------------------------
------
I set the clouds in motion - turn up   | Frank Warmerdam,
[EMAIL PROTECTED]
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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to