Skip to content

NITF struct format issues #728

@SprinterDave

Description

@SprinterDave

The nitf.ksy format has some issues...

  1. The determination of image_segment.has_mask is incorrect. It currently check for img_compression of MM but the NITF 2.1 spec section 5.4.3.2 says that IC values of NM, M1, M3, M4, M5, M6, M7, and M8 indicate masked imagery.

  2. If an image does not have a mask, the image_data_field is not being read. It should be read regardless

  3. image_geo_loc is a conditional field (see NITF 2.1 spec, Table A-3, IGEOLO) and should not be parsed if image_coordinate_rep (ICORDS) is ' '

  4. compression_rate_code is a conditional field (see NITF 2.1 spec, Table A-3, COMRAT) and should not be parsed if img_compression (IC) is NC or NM

  5. The tre_header field currently shows header_data as a simple byte array. It's possible to show the contents as an array of tre objects (which are defined in the ksy, but never utilized.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions