Skip to main content

Manage XPlanung data

Project description

XPlan-Tools

coverage report pipeline status Latest Release

Documentation | Repository

A Python library to provide some useful means when working with XPlanung and XTrasse data, e.g. format conversion, version migration and database setup. Relies on Pydantic for a Python representation of the XPlanung/XTrasse model as well as serialization/de-serialization and validation.

While it comes with a CLI, its modules are also meant to provide other applications a Python representation as well as an interface for XPlanung/XTrasse data.

Features

  • Conversion between GML, JSON-FG and DB encodings of XPlanung/XTrasse data.
  • Migration from older versions of XPlanung to the latest one.
  • Set up a database to store XPlanung data. Supports PostgreSQL/PostGIS as well as GeoPackage and SpatiaLite SQLite databases.
  • Transformation from XPlanung to INSPIRE PLU based on the official mappings.
  • Adding style properties (stylesheetId, schriftinhalt) to XPlanung presentational objects based on defined rules.

Installation

Pixi

This project uses Pixi for package management. To install this repo with a self-contained environment, run

git clone https://gitlab.opencode.de/xleitstelle/xplanung/xplan-tools.git
cd xplan-tools
pixi install

Python >= v3.10

GDAL and its Python bindings are required, so you need to make sure the GDAL system library and Python package versions match.

Download the repository:

git clone https://gitlab.opencode.de/xleitstelle/xplanung/xplan-tools.git
cd xplan-tools
pip install .

Or install from PyPI:

pip install xplan-tools

Docker

Images are provided in the container registry (see docs).

Development

Make sure Pixi is installed and run

git clone https://gitlab.opencode.de/xleitstelle/xplanung/xplan-tools.git
cd xplan-tools
make dev

License

The code in this repository is licensed under the EUPL-1.2-or-later

© XLeitstelle, 2025

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xplan_tools-1.11.1.tar.gz (764.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xplan_tools-1.11.1-py3-none-any.whl (791.7 kB view details)

Uploaded Python 3

File details

Details for the file xplan_tools-1.11.1.tar.gz.

File metadata

  • Download URL: xplan_tools-1.11.1.tar.gz
  • Upload date:
  • Size: 764.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.5 Linux/5.4.0-205-generic

File hashes

Hashes for xplan_tools-1.11.1.tar.gz
Algorithm Hash digest
SHA256 d684a9bcabdcf86d844eb6fc921e808527a1a1fe11db4dd85b88093ffa6ee15f
MD5 9637bba1dfc60243f9029ac6042f246c
BLAKE2b-256 c428dde5167f994efc2b7ac33405af2f9b891f2d3108c84f26a42522a405af33

See more details on using hashes here.

File details

Details for the file xplan_tools-1.11.1-py3-none-any.whl.

File metadata

  • Download URL: xplan_tools-1.11.1-py3-none-any.whl
  • Upload date:
  • Size: 791.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.5 Linux/5.4.0-205-generic

File hashes

Hashes for xplan_tools-1.11.1-py3-none-any.whl
Algorithm Hash digest
SHA256 21882fc0bd46bb61e6911fe563cb65a58ec439dbb3cbda758fba6acaf0e36e46
MD5 992da661a0f10d991b56751f0c082310
BLAKE2b-256 28634bece767b3d2dfe85d832afe07a96431eada26781fac05b5bec88ce0f743

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page