Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

codice/imaging-nitf

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

JDK11 (or potentially higher) is required.

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

Contributors 19

Languages

AltStyle によって変換されたページ (->オリジナル) /