Skip to content
New issue

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

Always output Feature geometry and properties #19

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

danvk
Copy link

@danvk danvk commented Oct 28, 2024

Fixes #18

According to the spec, both "geometry" and "properties" are required members on a Feature. Either may be set to null.

pygeojson is also lax in enforcing this when it parses GeoJSON. I've left that behavior as-is, but I do want to note that some of the test files are invalid GeoJSON, e.g.

{
"type": "Feature"
}

I had to bump a few dependencies to get poetry install --with=dev to run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Outputs invalid GeoJSON for null geometries
1 participant