Respect handleOrdinates also when writing geometry#6380
Respect handleOrdinates also when writing geometry#6380bjornharrtell wants to merge 1 commit intonpgsql:mainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR extends the handleOrdinates configuration option to control which ordinates (coordinate dimensions) are written when serializing geometry objects, not just when reading them. Previously, this option only affected deserialization, which could lead to unexpected ordinates being written when NTS geometry processing introduces additional dimensions.
Key changes:
- Instantiate and configure a
PostGisWriterwith thehandleOrdinatessetting - Pass the configured writer to the mappings setup
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/Npgsql.NetTopologySuite/Internal/NetTopologySuiteTypeInfoResolverFactory.cs
Show resolved
Hide resolved
|
Looking through the repo history, it seems like it indeed was missed the first time it was implemented as |
This is a proposed fix for #6381.