Releases: peterstace/simplefeatures
v0.11.0
v0.10.1
2020-03-24
- Adds documentation comments to all exported symbols.
v0.10.0
2020-03-20
- Adds support to geometries for Z (3D) and M (Measure) values. This includes many breaking changes, primarily around geometry constructor functions.
v0.9.0
2020-03-03
Special thanks to Frank Sun and Peter Jones for contributing to this release.
-
Fixes a bug in the intersects predicate between
MultiLineString
andMultiPolygon
. -
Removes the
EmptySet
type. ThePoint
,LineString
, andPolygon
types can now represent empty geometries. -
Adds the
GeometryType
method, which returns a string representation of the geometry type (e.g. returns"LineString"
for theLineString
geometries). -
Adds support to store empty
Point
geometries withinMultiPoint
geometries. -
Simplifies geometry constructor options by removing the
DisableExpensiveValidations
option. -
Removes the
Equals
predicate (which was only implemented for a small proportion of geometry type pairs). -
Modifies the
TransformXY
methods to return their own concrete geometry type.
v0.8.0
2020-02-20
Special thanks to Lachlan Patrick for contributing to this release.
-
Adds a
Length
implementation for theGeometry
type. -
Modifies the
Boundary
for concrete geometry types to return a concrete geometry type (rather than the genericGeometry
type). -
Modifies the Fuzz Tests to use batching.
-
Fixes a bug in the
IsSimple
method forMultiLineString
. -
Adds
Centroid
implementations for all geometry types. -
Adds a new suite of reference implementation tests using
libgeos
.
v0.7.0
2020-01-24
-
Fixes a deficiency where
LineString
would not retain coincident adjacent points. -
Adds two new methods to
LineString
.NumLines
gives the number ofLine
segments making up theLineString
, andLineN
allows access to thoseLine
segments. -
Reduces the memory required to store a
LineString
.
v0.6.0
2020-01-21
Special thanks to Lachlan Patrick for contributing to this release.
-
Adds
Reverse
methods, which reverses the order of each geometry's control points. -
Adds
SignedArea
methods, which calculate the signed area of geometries. The signed area takes into consideration winding order, and produces either a negative or positive result for non-empty areal geometries.
v0.5.0
2020-01-17
-
Fixes a bug where polygons with nested rings would erroneously be reported as valid.
-
Performance improvements have been made to
Polygon
andMultiPolygon
validation. The algorithms used now have sub-quadratic time complexity, and memory allocations have been significantly reduced.
v0.4.0
2020-01-07
- The
Geometry
interface has been replaced with a concrete type also namedGeometry
. This new type holds exactly one geometry value (one ofEmptySet
,Point
,Line
,LineString
,Polygon
,MultiPoint
,MultiLineString
,MultiPolygon
,GeometryCollection
. TheAnyGeometry
type has been removed (Geometry
can be used instead).
v0.3.0
2020-01-07
- A Linesweep algorithm is now used for the
Intersects() bool
implementation between line types (Line
,LineString
,MultiLineString
). This reduces the computational complexity from quadratic time to linearithmic time.