We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 06e7bb0 + 8ac276a commit 62d792eCopy full SHA for 62d792e
1 file changed
frost_sta_client/utils.py
@@ -109,4 +109,6 @@ def process_area(value):
109
return geojson.geometry.Polygon(value["coordinates"])
110
if value["type"] == "Geometry":
111
return geojson.geometry.Geometry(value["coordinates"])
112
- raise ValueError("can only handle geojson of type Point, Polygon or Geometry")
+ 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