Skip to content

Commit

Permalink
Merge pull request #31 from kreis-viersen/fieldlength
Browse files Browse the repository at this point in the history
Verwende Feldlänge 1000 für 'LAGEBEZTXT'
  • Loading branch information
pathmapper authored Feb 7, 2022
2 parents 5f1c14b + 9adffa3 commit 88efb9e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion flurstuecks_finder_nrw.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 88efb9e

Please sign in to comment.