jazzband / geojson

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

FeatureCollection validation: FeatureObjects in "features" should contain members #99

Closed schaemar closed 5 years ago

schaemar commented 7 years ago

d = { "type" : "FeatureCollection", "features" : [{}] } geojson.is_valid(d)

It's returning "yes" but I would expect: (source:http://geojsonlint.com/) Line 3: GeoJSON features must have a type=feature member Line 3: "properties" member required Line 3: "geometry" member required

rayrrr commented 5 years ago

Hi @schaemar, I am the new maintainer of this repo. I am closing this out because the GeoJSON Format spec actually states that it is possible for a FeatureCollection to be empty (in section 3.3). Thanks!