Skip to content

Commit 62d792e

Browse files
committed
Merge branch 'master' of github.com:FraunhoferIOSB/FROST-Python-Client
2 parents 06e7bb0 + 8ac276a commit 62d792e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

frost_sta_client/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,6 @@ def process_area(value):
109109
return geojson.geometry.Polygon(value["coordinates"])
110110
if value["type"] == "Geometry":
111111
return geojson.geometry.Geometry(value["coordinates"])
112-
raise ValueError("can only handle geojson of type Point, Polygon or Geometry")
112+
if value["type"] == "LineString":
113+
return geojson.geometry.LineString(value["coordinates"])
114+
raise ValueError("can only handle geojson of type Point, Polygon, Geometry or LineString")

0 commit comments

Comments
 (0)