mdaus / nitro

NITRO (NITFio, "R" is a ligature for "Fi") is a full-fledged, extensible library solution for reading and writing the National Imagery Transmission Format (NITF), a U.S. DoD standard format. It is written in cross-platform C, with bindings available for other languages.
GNU Lesser General Public License v3.0
62 stars 37 forks source link

NITF Exception: Unable to find tag, 'PLATFORM_PITCH', in TRE hash for TRE 'SENSRA' #42

Closed joshriccio closed 7 years ago

joshriccio commented 7 years ago

When setting the PLATFORM_PITCH field in the TRE SENSRA using java I get the following exception.

NITF Exception: Unable to find tag, 'PLATFORM_PITCH', in TRE hash for TRE 'SENSRA'

This document,http://www.gwg.nga.mil/ntb/baseline/docs/stdi0002/stdi_0002.pdf, says that PLATFORM_PITCH should exist. Am I mistaken?

asylvest commented 7 years ago

The field is named PLTPITCH in NITRO (we usually have these field names match the GWG doc so not sure offhand why these are all abbreviated... may be based on an earlier version of the document). The easiest way to see the field names is to look at the underlying C code which lists all the field names:

https://github.com/mdaus/nitro/blob/master/modules/c/nitf/shared/SENSRA.c

joshriccio commented 7 years ago

Great thank you!