GeoTools plugin that allows you to use OziExplorer spatial reference file(.map) in your Java application.
This code is based on an implementation from GDAL.
It's as easy as reading any other map file
File mapFile = new File("World.map");
AbstractGridFormat oziFormat = GridFormatFinder.findFormat(mapFile);
AbstractGridCoverage2DReader oziReader = oziFormat.getReader(mapFile);
GridCoverage2D coverage2D = oziReader.read(...);
Just add dependency to your pom.xml
<dependency>
<groupId>com.github.nikolaybespalov</groupId>
<artifactId>gt-ozi</artifactId>
<version>${gt-ozi.version}</version>
<scope>runtime</scope>
</dependency>
Or to your build.gradle
dependencies {
runtime("com.github.nikolaybespalov:gt-ozi:${gt-ozi.version}")
}
And your project will be able to work with .map files!
- Latitude/Longitude
- Mercator
- Transverse Mercator
- (UTM) Universal Transverse Mercator
All datums from the list are supported.
All ellipsoids from the list are supported.
Look at imageio-ozf library.