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
.
Java 21 (LTS) or later is required to run lk2dxf
.
Required Jar dependencies are bundled with the distribution of the tool.
A docker image containing all necessary dependencies is also available for download.
Starting from JAR:
java -jar lk2dxf.jar [options] <XTF input files ...> <DXF output file>
Starting with Docker:
docker run -it --rm -v ${PWD}:/host ghcr.io/geowerkstatt/lk2dxf [options] <XTF inputs inside volume: /host/**/*.xtf> <DXF output inside volume: /host/**/*.dxf>
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 |
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.