simplefeatures v0.35.0 Release Notes
-
2021-11-23
๐ Special thanks to Albert Teoh and Sameera Perera for contributing to this release.
๐ Fixes spelling of "Marshaller" when referring to the interface defined in the
encoding/json
package.โ Adds
UnmarshalJSON
methods to each concrete geometry type (GeometryCollection
,Point
,MultiPoint
,LineString
,MultiLineString
,Polygon
,MultiPolygon
). This causes these types to implement theencoding/json.Unmarshaler
interface. GeoJSON can now be unmarshalled directly into a concrete geometry type.๐ Uses the
%w
verb for wrapping errors internally. Note that simplefeatures does not yet currently expose any sentinel errors or error types.๐ฅ Breaking change: Changes the
Simplify
package level function to become a method on theGeometry
type. Users upgrading can just change function invocations that look likesimp, err := geom.Simplify(g, tolerance)
to method invocations that look likesimp, err := g.Simplify(tolerance)
.โ Adds
Simplify
methods to the concrete geometry typesLineString
,MultiLineString
,Polygon
,MultiPolygon
, andGeometryCollection
. These methods may be used if one of these concrete geometries is to be simplified, rather than converting to aGeometry
, callingSimplify
, then converting back to the concrete geometry type.๐ Fixes a bug in Simplify where invalid interior rings would be omitted rather than producing an error.
โ Adds a wrapper in the
geos
package for theGEOSMakeValid_r
function (exposed asMakeValid
).