Skip to content

v0.51.0

Compare
Choose a tag to compare
@peterstace peterstace released this 18 Aug 19:39
· 14 commits to master since this release

2024-08-19

Special thanks to Albert Teoh for contributing to this release.

  • Fixes a Polygon validation bug that falsely identified an invalid ring as being valid. The bug occurred in the rare edge case where an inner ring is outside the outer ring and the first control point of the inner ring touches the outer ring.

  • Upgrades golangci-lint to v1.59.1.

  • Fixes a bug where geometry collections with mixed coordinate types were erroneously allowed during WKT and WKB parsing.

  • Fixes a bug where the Simplify method would drop coordinate type to XY in some scenarios where the result is an empty geometry.

  • Adds a wrapper to the geos package for the GEOSTopologyPreserveSimplify_r function (exposed as TopologyPreserveSimplify).

  • Adds wrappers to the geos package for the GEOSCoverageSimplify_r and GEOSCoverageSimplifyVW_r functions (exposed as CoverageIsValid and CoverageSimplifyVW).

  • Breaking change: Overhauls the TWKB unmarshalling related functions in a breaking way:

    • Removes the UnmarshalTWKBWithHeaders and UnmarshalTWKBBoundingBoxHeader functions.

    • Modifies the UnmarshalTWKBEnvelope function to return an ExtendedEnvelope (which is a regular XY Envelope with the addition of Z and M ranges).

    • Adds UnmarshalTWKBList and UnmarshalTWKBSize functions, which return the (optional) ID list and (optional) sizes of TWKBs without fully unmarshalling them.