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

Make Feature.geometry optional #179

Merged
merged 4 commits into from
Jul 8, 2024

Conversation

janusw
Copy link
Member

@janusw janusw commented Jul 7, 2024

... in order to fix #178.

The fix itself is a one-liner, and I'm adding two test cases which verify that a feature without geometry member is deserialized the same way as a feature with null geometry.

Furthermore, I'm doing a small addition to .gitignore and fixing some deprecation warnings in the GitHub Actions build (by updating the checkout action to the latest stable version).

Any comments, @xfischer?

janusw added 4 commits July 7, 2024 08:29
* deserializing a feature with NULL geometry
* deserializing a feature without any geometry
* the resulting feature object is identical for both cases
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
@janusw janusw mentioned this pull request Jul 8, 2024
@xfischer
Copy link
Member

xfischer commented Jul 8, 2024

LGTM, thanks a lot @janusw

@xfischer xfischer merged commit dc8ca43 into GeoJSON-Net:master Jul 8, 2024
2 checks passed
@janusw janusw deleted the feature_geometry_optional branch July 8, 2024 12:49
@janusw
Copy link
Member Author

janusw commented Jul 8, 2024

LGTM, thanks a lot @janusw

Awesome, thanks for the quick review :)

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.

Feature without geometry is rejected
2 participants