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, XTrasse and XWaermeplan data, e.g. format conversion, version migration and database setup. Relies on Pydantic for a Python representation of the XPlanung/XTrasse/XWaermeplan 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/XWaermeplan data.

Features

  • Conversion between GML, JSON-FG and DB encodings of XPlanung/XTrasse/XWaermeplan 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.18.0.tar.gz (809.7 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.18.0-py3-none-any.whl (840.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xplan_tools-1.18.0.tar.gz
  • Upload date:
  • Size: 809.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.13.12 Linux/5.4.0-216-generic

File hashes

Hashes for xplan_tools-1.18.0.tar.gz
Algorithm Hash digest
SHA256 b828ea4de40ce0bb964b22be54c39ff5f3a73e25b0def770c401dbdb218c255a
MD5 0a1b330928c02ab6d18b26a8d4272c98
BLAKE2b-256 32f20fbc702890b862d7014d9bed974821c77ae115b6eb6f1ea7e4ce14df5f45

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xplan_tools-1.18.0-py3-none-any.whl
  • Upload date:
  • Size: 840.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.13.12 Linux/5.4.0-216-generic

File hashes

Hashes for xplan_tools-1.18.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2cc45a3d9cb81316815d0e20c2306d926795d927698c9077f22c0e42a813c1ac
MD5 5f75a9ee8a2c29152d95461a0618607a
BLAKE2b-256 8624f55c5401252330003ba52bffe6804073c94ac500372fe63ffc016a6d7f5a

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