Skip to content

Commit

Permalink
fix: For ODK, make sure there is always a label & title
Browse files Browse the repository at this point in the history
  • Loading branch information
rsavoye committed Jan 1, 2024
1 parent 2ebf64a commit 2981911
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions osm_fieldwork/filter_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ def cleanData(
continue
log.warning(f"Tag {key} not in the data model!")
continue
if 'title' not in properties:
properties["label"] = properties["id"]
properties["title"] = properties["id"]
newfeature = Feature(geometry=feature["geometry"], properties=properties)
collection.append(newfeature)
if type(data) == str:
Expand Down

0 comments on commit 2981911

Please sign in to comment.