v0.45.0 #553
peterstace
announced in
Announcements
v0.45.0
#553
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
2023-09-29
Special thanks to Albert Teoh for contributing to this release.
This release contains a large number of breaking changes, primarily surrounding geometry validation. See #525 for background and an overview of the changes.
Breaking change: The
geom.ConstructorOption
type has been removed. Previous uses ofgeom.DisableAllValidations
can be replaced withgeom.NoValidate
. Previous uses ofOmitInvalid
should be managed manually (no replacement for this functionality is provided).A
Validate() error
method is added toGeometry
and each concrete geometry type. This allows geometry constraints to be checked after geometry construction.Breaking change: Geometry results from GEOS (wrapped by the
github.com/peterstace/simplefeatures/geos
package) are no longer validated. The variadic constructor options in function signatures have been removed. If users wish to validate these results, thenValidate()
can be called manually.Breaking change: The
TransformXY
methods no longer validate geometry constraints of the result. The variadic constructor options have been removed as method parameters, as have the error returns. If users wish to validate these results, thenValidate()
can be called manually.Breaking change: The direct geometry constructors (
NewPoint
,NewLineString
,NewPolygon
,NewMultiPoint
,NewMultiLineString
,NewPolygon
, andNewGeometryCollectiion
) no longer perform any geometry validation. They no longer accept constructor options or return an error, resulting in a function signature change. If users wish to validate the results, thenValidate()
can be called manually.Breaking change:
XY
'sAsPoint
method no longer checks the validity of the result and no longer returns an error. AnAsPoint
method is added to theCoordinates
type to shadowXY
'sAsPoint
method (sinceXY
is embedded inCoordinates
).This discussion was created from the release v0.45.0.
Beta Was this translation helpful? Give feedback.
All reactions