How to use the CLI
Getting started
Running the script with the help option diplays CLI commands and options:
The help option can also be called for commands and sub-commands:Conversion between different encodings
XPlanung data can be converted between different encodings using the convert
command, e.g. from GML to JSON-FG
If no output is provided, the data is written to stdout
in the internal encoding.
Utilizing style rules
XPlanung presentational objects can be augmented with style properties (stylesheetId
, schriftinhalt
) via the convert
command with the option --add-style-properties
:
--ppo-to-pto
is added, XP_PPO are converted to XP_PTO objects in order to populate schriftinhalt
.
The underlying rules can e.g. be exported like this:
Version migration
Migrating from Xplanung version 5.x to 6.0 is done with the CLI command
for a .gml data filexplan5x.gml
.
INSPIRE transformation
Using the CLI tool to convert XPlanung data from version 6.0 to INSPIRE PLU 4.0 is straightforward. Given a dataset xplan60.gml
we run
Chaining version migration and INSPIRE transformation
Applying the transformation to INSPIRE PLU 4.0 from XPlanung data version 5.* is done with same command as before. Given a dataset xplan5x.gml
we run
Initializing a database
An XPlanung database with GeoPackage backend can be initialized like this:
Container image usage
Input data should be mounted in the /data
directory in the container, e.g.