Parser for .kof files
Version 0.0.1+ supports only parsing of files and work with 01 and 05 instructions.
KOF is an abbreviation for "Kartografi- og Oppmålingsforretningene" in Norwegian, which roughly translates to "mapping and surveying activities". KOF files are typically used in Norway for the exchange of geodetic data and coordinates between various software and hardware systems.
- Java 11+
Licensed under the Apache 2.0 License
This project uses the following third-party software:
- Proj4j version 1.2.3 - A Java library for coordinate system transformations. Licensed under the Apache 2.0 License.
Just add this to your pom.xml
<dependency>
<groupId>com.hijackermax</groupId>
<artifactId>kof-processor</artifactId>
<version>0.0.2</version>
</dependency>
class Example {
public void loadCoordinates(InputStream kofStream) throws IOException {
KOFProcessor kofProcessor = KOFProcessor.readFrom(
kofStream,
CoordinateSystem.EPSG_25832
);
List<CoordinatePoint> wsg84Coordinates = kofProcessor.getCoordinates(
CoordinateSystem.EPSG_4326
);
}
}