Skip to content

Commit

Permalink
Add description and usage documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
domi-b committed Nov 4, 2024
1 parent 3d0f26d commit 0ed0f72
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,38 @@
# lk2dxf
[![CI](https://github.com/GeoWerkstatt/lk2dxf/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/GeoWerkstatt/lk2dxf/actions/workflows/ci.yml)
[![Release](https://github.com/GeoWerkstatt/lk2dxf/actions/workflows/release.yml/badge.svg)](https://github.com/GeoWerkstatt/lk2dxf/actions/workflows/release.yml)
[![Latest Release](https://img.shields.io/github/v/release/GeoWerkstatt/lk2dxf)](https://github.com/GeoWerkstatt/lk2dxf/releases/latest)
[![License](https://img.shields.io/github/license/GeoWerkstatt/lk2dxf)](https://github.com/GeoWerkstatt/lk2dxf/blob/main/LICENSE)

# lk2dxf

The `lk2dxf` tool can be used to create a DXF file conforming to `SIA 405 SN 532405` from one or more INTERLIS XTF files of the LKMap model `SIA405_LKMap_2015_LV95`.

## Requirements

Java 21 (LTS) or later is required to run `lk2dxf`.
Required Jar dependencies are bundled with the distribution of the tool.

A [docker image](https://github.com/GeoWerkstatt/lk2dxf/pkgs/container/lk2dxf) containing all necessary dependencies is also available for download.

## Usage

```shell
java -jar lk2dxf.jar [options] <XTF input files ...> <DXF output file>
```

### Commandline Options
| Option | Description |
| --- | --- |
| --help | Show help message and exit |
| --version | Show version information and exit |
| --perimeter \<wkt\> | The WKT of a polygon used to filter the objects |
| --logfile \<file\> | Path to the logfile |
| --trace | Enable trace logging |

### Perimeter

The `--perimeter` option can be used to filter the objects written the output DXF file.
Well-known text (WKT) syntax is used to specify the polygon of the perimeter.
Only geometries that intersect the perimeter are included in the DXF file and all objects whose geometry is fully outside the specified perimeter are excluded.

Existing geometries are not modified, which means that some geometries of the DXF file may extend beyond the bounds of the perimeter.

0 comments on commit 0ed0f72

Please sign in to comment.