simplefeatures v0.32.0 Release Notes
-
2021-09-08
๐ Special thanks to Albert Teoh for contributing to this release.
๐ฅ Breaking change: Consolidates
MultiPoint
constructors and simplifiesMultiPoint
internal representation. Removes theBitSet
type, previously used forMultiPoint
construction. Removes theNewMultiPointFromPoints
andNewMultiPointWithEmptyMask
functions. Modifies theNewMultiPoint
function to accept a slice ofPoint
s rather than aSequence
.๐ฅ Breaking change: Consolidates
Point
construction. Removes theNewPointFromXY
function. It is replaced by a newAsPoint
method on theXY
type.๐จ Refactors internal test helpers.
โ Adds linting to CI using
golangci-lint
.๐ฅ Breaking change: Renames geometry constructors for consistency.
NewPolygonFromRings
is renamed toNewPolygon
.NewMultiLineStringFromLineStrings
is renamed toNewMultiLineString
.NewMultiPolygonFromPolygons
is renamed toNewMultiPolygon
.๐ฅ Breaking change: Adds checks for anomalous
float64
values (NaN and +/- infinity) during geometry construction.- The
NewPoint
function now returns(Point, error)
rather thanPoint
. The returned error is non-nil when the inputs contain anomalous values. - The
NewLineString
function's signature doesn't change, but now returns a non-nil error if the inputSequence
contains anomalous values. - The
OmitInvalid
constructor option now has implications when constructingPoint
andMultiPoint
types. - The
NewEnvelope
function now returns(Envelope, error)
rather thanEnvelope
. The returned error is non-nil when when the input XYs contain anomalous values. - The
Envelope
type'sExtendToIncludePoint
method is renamed toExtendToIncludeXY
(better matching its argument type). It now returns(Envelope, erorr)
rather thanEnvelope
. The returned error is non-nil if the inputs contain any anomalous values. - The
Envelope
type'sExpandBy
method is removed due to its limited utility and complex interactions with anomalous values.
- The