We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If you set geometry to None in a Feature, it gets dropped from the feature during serialization:
geometry
None
Feature
>>> import pygeojson >>> pygeojson.dumps(pygeojson.Feature(id="123", geometry=None)) '{"type": "Feature", "id": "123", "properties": {}}'
This is in violation of the spec, which states that a Feature must have a geometry member, which may be null.
null
I noticed that pygeojson has a test for reading null geometries, but no test for writing them back:
pygeojson/tests/test_pygeojson.py
Lines 54 to 58 in eaf554e
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
If you set
geometry
toNone
in aFeature
, it gets dropped from the feature during serialization:This is in violation of the spec, which states that a
Feature
must have ageometry
member, which may benull
.I noticed that pygeojson has a test for reading null geometries, but no test for writing them back:
pygeojson/tests/test_pygeojson.py
Lines 54 to 58 in eaf554e
The text was updated successfully, but these errors were encountered: