Herausgeber case sensitiv

This commit is contained in:
2026-04-13 19:58:06 +02:00
parent 7ad8ba054f
commit abf5808117
3 changed files with 11 additions and 2 deletions
+9 -1
View File
@@ -243,6 +243,7 @@ class PrintLayout:
hauptkarte: Any,
map_top_mm: float,
map_height_mm: float,
kartenname_auswahl: str = "",
) -> None:
if self._current_layout is None:
raise RuntimeError("Kein Layout aktiv.")
@@ -324,8 +325,13 @@ class PrintLayout:
stroke_width_mm=0.1,
)
if kartenname_auswahl == "§38":
herausgeber_text = "[%@sn_landkreis_user%] [%@sn_behoerde%]"
else:
herausgeber_text = "Teilnehmergemeinschaft [%@sn_bezeichnung %] [%@sn_name %]"
labels = [
("[% @sn_amt %]", 16.0, -84.0, 171.0, 4.0, "Format_1", "Herausgeber"),
(herausgeber_text, 16.0, -84.0, 171.0, 4.0, "Format_1", "Herausgeber"),
("[% @sn_bezeichnung %]", 16.0, -75.0, 171.0, 4.0, "Format_1", "Bezeichnung_Flurbereinigung"),
("[% @sn_name %]", 16.0, -64.0, 171.0, 5.0, "Format_2", "Name_Flurbereinigung"),
("[% @sn_gemeinden %]", 16.0, -56.0, 171.0, 4.0, "Format_1", "Stadt_Gemeinde"),
@@ -936,6 +942,7 @@ class PrintLayout:
map_height_mm: float,
extent: Any,
plotmassstab: float,
kartenname_auswahl: str = "",
thema: str = "",
fit_extent_to_map: bool = True,
) -> Any:
@@ -1036,6 +1043,7 @@ class PrintLayout:
hauptkarte,
map_top_mm,
map_height_mm,
kartenname_auswahl,
)
layout_manager.addLayout(layout)
+1 -1
View File
@@ -351,7 +351,7 @@ class PrintLayoutBaufreigabe(PrintLayout):
# Positionen werden bewusst als feste Werte gesetzt und bei Bedarf manuell angepasst.
labels = [
("[% @sn_amt %]", 16.0, -84.0, 171.0, 4.0, "Format_1", "Herausgeber"),
("Teilnehmergemeinschaft [%@sn_bezeichnung %] [%@sn_name %]", 16.0, -84.0, 171.0, 4.0, "Format_1", "Herausgeber"),
("[% @sn_bezeichnung %]", 16.0, -75.0, 171.0, 4.0, "Format_1", "Bezeichnung_Flurbereinigung"),
("[% @sn_name %]", 16.0, -64.0, 171.0, 5.0, "Format_2", "Name_Flurbereinigung"),
("[% @sn_gemeinden %]", 16.0, -56.0, 171.0, 4.0, "Format_1", "Stadt_Gemeinde"),
+1
View File
@@ -1062,6 +1062,7 @@ class PrintLogic:
map_height_mm=kartenbild_h,
extent=extent,
plotmassstab=massstab_zahl,
kartenname_auswahl=kartenname_auswahl,
thema=thema,
fit_extent_to_map=(druckbereich_auswahl != DRUCKBEREICH_VERFAHRENSGEBIET),
)