From 9adffa36d6ab415ff6c7c9068d73830162602e72 Mon Sep 17 00:00:00 2001 From: pathmapper Date: Mon, 7 Feb 2022 11:54:27 +0100 Subject: [PATCH] =?UTF-8?q?Verwende=20Feldl=C3=A4nge=201000=20f=C3=BCr=20'?= =?UTF-8?q?LAGEBEZTXT'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix: KVIE WFS - Flurstück 3378-34-19 - kann nicht gefunden werden Flurstück 3378-34-19 hat 254 Zeichen für 'LAGEBEZTXT'. GetFeature-Request: https://geoservices.krzn.de/security-proxy/services/wfs_kvie_alkis_adv_vereinfacht?service=WFS&version=2.0.0&request=GetFeature&srsname=urn:ogc:def:crs:EPSG::25832&typename=gis:alkis_adv_flurstueck&filter=%3CFilter%3E%3CPropertyIsEqualTo%3E%3CValueReference%3EFLSTKENNZ%3C/ValueReference%3E%3CLiteral%3E05337803400019______%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E --- flurstuecks_finder_nrw.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flurstuecks_finder_nrw.py b/flurstuecks_finder_nrw.py index b30320d..735f0ee 100644 --- a/flurstuecks_finder_nrw.py +++ b/flurstuecks_finder_nrw.py @@ -1021,7 +1021,10 @@ def SearchFlurstueck(self, art, mouse_click): geometry = 'geometrie' fields = QgsFields() for fieldname in fieldnames: - fields.append(QgsField(fieldname, QVariant.String, '', 100, 0)) + fieldlength = 100 + if fieldname == 'LAGEBEZTXT': + fieldlength = 1000 + fields.append(QgsField(fieldname, QVariant.String, '', fieldlength, 0)) gml = None gml = QgsGml(typename, geometry, fields) wfs_request = gml.getFeaturesUri(url)