Java
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cgm Returning versions to 0.9-SNAPSHOT after release of 0.8.1 Jun 5, 2017
core-api [IMG-236] Initial support for ZLIB compression in core API. (#179) Aug 8, 2017
core [IMG-240] Minimal parsing of symbol segments that have LUTs. (#188) Oct 12, 2017
deswrap Returning versions to 0.9-SNAPSHOT after release of 0.8.1 Jun 5, 2017
fluent-api Returning versions to 0.9-SNAPSHOT after release of 0.8.1 Jun 5, 2017
fluent Returning versions to 0.9-SNAPSHOT after release of 0.8.1 Jun 5, 2017
imagecompare Returning versions to 0.9-SNAPSHOT after release of 0.8.1 Jun 5, 2017
metadata-comparison Returning versions to 0.9-SNAPSHOT after release of 0.8.1 Jun 5, 2017
registryparser Returning versions to 0.9-SNAPSHOT after release of 0.8.1 Jun 5, 2017
render Returning versions to 0.9-SNAPSHOT after release of 0.8.1 Jun 5, 2017
shared-test-resources Returning versions to 0.9-SNAPSHOT after release of 0.8.1 Jun 5, 2017
trewrap Minor javadoc cleanup for MSTGTA TRE wrapper code. (#183) Aug 21, 2017
.gitignore IMG-218 Separate the fluent implementation and API into separate modu… Mar 17, 2017
.travis.yml Remove Oracle JDK 7 and OpenJDK 7 from Travis CI. Dec 20, 2015
LICENSE.md Create LICENSE.md Jun 28, 2014
README.md Update README.md Aug 16, 2017
checkstyle.xml [IMG-124] Update of checkstyle plugin to 2.17 (checkstyle 6.11.2) for… Mar 4, 2016
findbugs-excludes.xml Move to common checkstyle and findbugs support across CGM and core code. Oct 25, 2014
pom.xml Returning versions to 0.9-SNAPSHOT after release of 0.8.1 Jun 5, 2017

README.md

imaging-nitf

Build Status CLA assistant

Pure Java National Imagery Transmission Format (NITF) file support.

This implementation provides parsing for NITF 2.0 and NITF 2.1 files. NATO Secondary Imagery Format 1.0 (NSIF 1.0) is effectively NITF 2.1 and is also supported.

Building

git clone git://github.com/codice/imaging-nitf.git

Change to the root directory of the cloned repository. Run the following command:

mvn install

This will compile imaging-nitf and run all of the tests.

Maven

  <dependency>
    <groupId>org.codice.imaging.nitf</groupId>
    <artifactId>codice-imaging-nitf-core</artifactId>
    <version>0.9-SNAPSHOT</version>
  </dependency>
  
  <dependency>
    <groupId>org.codice.imaging.nitf</groupId>
    <artifactId>codice-imaging-cgm</artifactId>
    <version>0.9-SNAPSHOT</version>
  </dependency>

Using

    File resourceFile = new File("sample.ntf");
    AllDataExtractionParseStrategy parseStrategy = new AllDataExtractionParseStrategy();
    NitfReader reader = new FileReader(resourceFile);
    NitfFileParser.parse(reader, parseStrategy);
    NitfFileHeader nitfFileHeader = parseStrategy.getNitfHeader();

Using the Flow API

    File resourceFile = new File("sample.ntf");
    new NitfParserInputFlow()
          .file(resourceFile)
          .allData()
          .fileHeader((header) -> handleFileHeader(header))
          .forEachImageSegment((imageSegment) -> handleImageSegment(imageSegment))
          .forEachDataSegment((dataSegment) -> handleDataSegment(dataSegment))
          .forEachSymbolSegment((symbolSegment) -> handleSymbolSegment(symbolSegment))
          .forEachGraphicSegment((graphicSegment) -> handleGraphicSegment(graphicSegment))
          .forEachTextSegment((textSegment) -> handleTextSegment(textSegment))
          .forEachLabelSegment((labelSegment) -> handleLabelSegment(labelSegment));