-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Command line options and usage documentation (#5)
- Loading branch information
Showing
4 changed files
with
160 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package ch.geowerkstatt.lk2dxf; | ||
|
||
import java.util.List; | ||
import java.util.Optional; | ||
|
||
public record LK2DxfOptions( | ||
List<String> xtfFiles, | ||
String dxfFile, | ||
Optional<String> perimeterWkt, | ||
Optional<String> logfile, | ||
boolean trace) { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters