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 use NtsGeometryServices instance for geometry creation #5048

Merged

Conversation

wassim-k
Copy link
Contributor

NetTopologySuite Getting Started recommends modifying NtsGeometryServices.Instance with the your own desired defaults.

Unfortunately, HotChocolate currently ignores those defaults by calling constructors of NTS Geometry classes directly instead of using GeometryFactory

This PR is a demonstration of the required change in order to respect the defaults set by NtsGeometryServices.Instance and I guess a way to start the discussion.

Thoughts?

@PascalSenn PascalSenn self-requested a review May 18, 2022 13:07
@PascalSenn PascalSenn self-assigned this May 18, 2022
@PascalSenn PascalSenn added the 🎬 ready Ready to merge label May 26, 2022
@PascalSenn
Copy link
Member

@wassim-k Sorry that it took so long to review this one!
Great work, very clean!

Just fixed the CRS Resolver as now the default CRS is -1. I guess we anyway have an issue in this resolver we have to address at some point. But for now, the behaviour stays the same at least ;)
I also optimized the Postgres integration tests.

Great work, thanks for the contribution. LGTM

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

Successfully merging this pull request may close these issues.

3 participants