jazzband / geojson

Python bindings and utilities for GeoJSON
https://pypi.python.org/pypi/geojson/
BSD 3-Clause "New" or "Revised" License
898 stars 120 forks source link

`is_valid` method has different behaviors for empty geometry #213

Open NoharaMasato opened 1 year ago

NoharaMasato commented 1 year ago

Behavior of is_valid method for empty geometry is different like below.

>>> import geojson
>>>  geojson.Polygon().is_valid # => True
>>> geojson.LineString().is_valid # => False
>>> geojson.Point().is_valid # => False