[gdal-dev] NSIF with GDAL
Bar Ori
Ori.Bar at elbitsystems.com
Mon Aug 31 03:17:17 PDT 2015
The metadata I am trying to add is according to " STANAG 4545 /AEDP-4 NATO Secondary Imagery Format (NSIF)" (http://www.nato.int/structur/ac/224/standard/4545/4545_documents/4545_ed1_amd1.pdf)
I read about the TRE at http://gdal.org/frmt_nitf_advanced.html but didn't understood exactly how to work with it in my code.
But again, will it be saved on the file itself or on external file? My goal is to have all in one nsf file.
P.S. for viewing the metadata, I am using the FWTool, do you think maybe there is the problem? Maybe this tool cannot read it from the file even when exists?
Thanks, Ori.
-----Original Message-----
From: Even Rouault [mailto:even.rouault at spatialys.com]
Sent: Monday, 31 August 2015 12:42
To: Bar Ori
Cc: gdal-dev at lists.osgeo.org; Ben Saraf Omer
Subject: Re: [gdal-dev] NSIF with GDAL
Le lundi 31 août 2015 11:21:51, vous avez écrit :
> Hi Even,
> Thanks for your quick response.
> I have already read and worked according to this document
> (http://gdal.org/frmt_nitf.html) Still, after removing the aux.xml
> file, the data is gone with it.
That's a bit surprising. See:
$ gdal_translate -q byte.tif byte.ntf -of NITF -co FTITLE=foo -a_srs EPSG:32611 $ rm byte.ntf.aux.xml $ gdalinfo byte.ntf | grep FTITLE
NITF_FTITLE=foo
> Moreover, this document talks about specific info which is relevant to
> NITF header, but I have an additional information that is not part of
> NITF (my metadata is relevant to NSIF - STANAG 4545).
It is a bit difficult to comment as you're not very specific about which exact info you're trying to write.
You've the possibility to write content of TREs (for most of them you'll have to compose it manually) in file or image subheaders with the TRE= and FILE_TRE= creation options.
Even
--
Spatialys - Geospatial professional services http://www.spatialys.com
The information in this e-mail transmission contains proprietary and business
sensitive information. Unauthorized interception of this e-mail may constitute
a violation of law. If you are not the intended recipient, you are hereby
notified that any review, dissemination, distribution or duplication of this
communication is strictly prohibited. You are also asked to contact the sender
by reply email and immediately destroy all copies of the original message.
More information about the gdal-dev
mailing list