NetTopologySuite / NetTopologySuite.IO.SqlServerBytes

A SQL Server IO module for NTS which works directly with the serialization format
BSD 3-Clause "New" or "Revised" License
16 stars 12 forks source link

Add and wire CheckZMFilter in SqlSeverBytesWriter #24

Closed FObermaier closed 2 years ago

FObermaier commented 2 years ago

The filter checks if a geometry can carry z- and/or m-ordinate values and sets emitZ and emitM values accordingly based of _emitZ and _emitM.

This removes the necessity of filling and removing values from ZValues and MValues.

The drawback is, that the default value for WKTReader.IsOldNtsCoordinateSyntaxAllowed is true always creates sequences with a dimension of 3 (=>can carry z), even though these values might all be Double.NaN. Therefor I had to adjust the unit tests.

FObermaier commented 2 years ago

@airbreather, do you have any objections?