Skip to content

HijackerMax/kof-processor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KOF-Processor GitHub CI Status Maven Central

Parser for .kof files

Version 0.0.1+ supports only parsing of files and work with 01 and 05 instructions.

What is kof file?

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.

Prerequisites

  • Java 11+

License

Licensed under the Apache 2.0 License

Third-Party Software

This project uses the following third-party software:

How to add it to your project

Just add this to your pom.xml

<dependency>
    <groupId>com.hijackermax</groupId>
    <artifactId>kof-processor</artifactId>
    <version>0.0.2</version>
</dependency>

Usage:

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

Releases

No releases published

Packages

No packages published

Languages