Skip to content

ghobona/imaging-nitf

This branch is 6 commits ahead of, 26 commits behind codice/imaging-nitf:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8b0abe1 · Jan 31, 2021
Oct 20, 2020
Oct 20, 2020
Jan 31, 2021
Oct 20, 2020
Dec 7, 2020
Dec 8, 2020
Oct 20, 2020
Oct 20, 2020
Jan 15, 2021
Oct 20, 2020
Oct 20, 2020
Oct 20, 2020
Oct 20, 2019
Jul 1, 2019
Jun 28, 2014
Aug 16, 2017
Mar 4, 2016
Oct 20, 2020

Repository files navigation

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));

About

Pure Java NITF File Reader

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%