From 7f1f51cbf7a8da4489885f12cec15731dc9535cc Mon Sep 17 00:00:00 2001 From: pathmapper Date: Thu, 19 Sep 2024 12:28:45 +0200 Subject: [PATCH] Consider BP_TextAbschnittFlaeche (XPlanung v6) --- metadata.txt | 6 +- styles/BP_TextAbschnittFlaeche_Flaeche.qml | 419 +++++++++++++++++++++ xplan_reader.py | 3 +- 3 files changed, 425 insertions(+), 3 deletions(-) create mode 100644 styles/BP_TextAbschnittFlaeche_Flaeche.qml diff --git a/metadata.txt b/metadata.txt index d1a5c2c..cd2f34b 100644 --- a/metadata.txt +++ b/metadata.txt @@ -10,7 +10,7 @@ about=Remark: - oder auch zum Erstellen eines QGIS-Server-Projektes, etwa um einen WMS eines Flächennutzungsplans zu veröffentlichen. tags=xplan,xplanung,bplan,bebauungsplan,fnp,flächennutzungsplan -version=0.29.0 +version=0.30.0 # we need at least QGIS Version 3.26.0 (LR) oder 3.22.9 (LTR) qgisMinimumVersion=3.26 author=Kreis Viersen @@ -21,7 +21,9 @@ homepage=https://github.com/kreis-viersen/xplan-reader/ icon=xplan_reader_icon.png server=False deprecated=False -changelog=v0.29.0: +changelog=v0.30.0: + - berücksichtige BP_TextAbschnittFlaeche ab XPlanung v6 + v0.29.0: - neue und optimierte Styles - Reihenfolge der Styles optimiert v0.28.0: diff --git a/styles/BP_TextAbschnittFlaeche_Flaeche.qml b/styles/BP_TextAbschnittFlaeche_Flaeche.qml new file mode 100644 index 0000000..a02052d --- /dev/null +++ b/styles/BP_TextAbschnittFlaeche_Flaeche.qml @@ -0,0 +1,419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + <style> + body {width: 400px;} + div {width: 400px;} + p { width: 97%; max-width: 400px; max-height: 200px; overflow-y: auto;} + td { background: #f2f4f4; } +</style> + +[% '<h2>Textliche Festsetzungen für ' + @layer_name + '</h2>' %] +<p> +<table> +[% try(array_to_string( +array_sort( +array_foreach( +array_foreach( +if(try(array_length("refTextInhalt_href") >= 0)is not null, "refTextInhalt_href", array( "refTextInhalt_href")), +'<b>' || attribute( +get_feature(var('textabschnitt_' + plan_layer_id()),'gml_id', +right(@element, length(@element)-1) +), 'schluessel') || '</b><br>' || +attribute( +get_feature(var('textabschnitt_' + plan_layer_id()),'gml_id', +right(@element, length(@element)-1) +), 'text') +), +'<tr><td>' || @element || '</td></tr>') +) +,'')) + %] +</table> +</p> + 2 + diff --git a/xplan_reader.py b/xplan_reader.py index 229b797..fae4f78 100644 --- a/xplan_reader.py +++ b/xplan_reader.py @@ -786,7 +786,8 @@ def addXplanLayer(layername, gtype): addXplanLayer("BP_Symbole", "Punkt") # nur im XPlanBOX WMS enthalten ? addXplanLayer("BP_Beschriftung", "Punkt") # nur im XPlanBOX WMS enthalten ? addXplanLayer("BP_RekultivierungsFlaeche", "Flaeche") - addXplanLayer("BP_TextlicheFestsetzungsFlaeche", "Flaeche") + addXplanLayer("BP_TextlicheFestsetzungsFlaeche", "Flaeche") # bis XPlanung v5.4 + addXplanLayer("BP_TextAbschnittFlaeche", "Flaeche") # ab XPlanung v6 addXplanLayer("BP_ZentralerVersorgungsbereich", "Flaeche") # ----------------------------------------------------Start LPLAN-------------------------- addXplanLayer("LP_Plan", "Flaeche")