Skip to content

Commit

Permalink
Re-add GeometryType -1 (but name it MISSING) (pygeos/pygeos#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
caspervdw committed Oct 1, 2020
1 parent 70515ce commit bc5cd08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pygeos/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
class GeometryType(IntEnum):
"""The enumeration of GEOS geometry types"""

MISSING = -1
POINT = 0
LINESTRING = 1
LINEARRING = 2
Expand All @@ -45,7 +46,7 @@ class GeometryType(IntEnum):
def get_type_id(geometry):
"""Returns the type ID of a geometry.
- None is -1
- None (missing) is -1
- POINT is 0
- LINESTRING is 1
- LINEARRING is 2
Expand Down

0 comments on commit bc5cd08

Please sign in to comment.