- BREAKING:
geo_types::CoordinateType
now extends Debug and has been deprecated in favor ofgeo_types::CoordNum
andgeo_types::CoordFloat
- BREAKING: Introduce
use-rstar
feature rather thanrstar
so thatapprox
dependency can be optional - Implement
approx::{RelativeEq, AbsDiffEq}
for geo-types when using theapprox
feature geo_types::LineString::num_coords
has been deprecated in favor ofgeo::algorithm::coords_iter::CoordsIter::coords_count
- Add
into_iter
,iter
anditer_mut
methods forMultiPolygon
,MultiPoint
, andMultiLineString
Rect::new
automatically determines min/max points. DeprecatesRect::try_new
which can no longer fail.- Add
MultiLineString::is_closed
method
- Add documentation on semantics (based on OGC-SFA)
- Add vector-space operations to
Coordinate
andPoint
- Remove
COORD_PRECISION
which was an arbitrary constant of 0.1m - Bump rstar version to 0.8.0
- Add
Triangle
andRect
toGeometry
- Introduce
Rect::try_new
constructor which doesn’t panic - Add
Rect::center
method - Derive
Eq
for types when applicable - Implement
From<Triangle> for Polygon
- Update Geometry enum with iterators and TryFrom impls for primitives
- Make geo-types Rect fields private to force users to use constructor (breaking change)
- Bump rstar dependency to 0.4
- Fix link to
LineString
in docs - Fix typo in Rect docs about min/max positions.
- Implement
Hash
for all types ingeo-types
- Introduce
point!
,line_string!
, andpolygon!
macros. - Add
Rect
constructor that enforcesmin.{x,y} < max.{x,y}
- Add
Polygon::num_coords
- Add
Polygon::interiors_push
- Adds an interior ring to aPolygon
- Rewrite
Polygon
structure to enforce closedLineString
rings - Implement
Into<Geometry>
forLine
- Implement
Index<usize>
forLineString
to get the coordinate at that position - Bump
rstar
dependency - Ability to construct
MultiPolygon
fromVec
of anything that implementsInto<Polygon>
- Add
new
,is_empty
,len
functions onGeometryCollection
- Tweak
Geometry
method names slightly - Remove unnecessary references in function signatures
- Add
to_lines
method on aTriangle
- Introduce
Line::{dx, dy, slope, determinant}
methods. - Remove unnecessary borrows in function params for
Copy
types. - Introduce
x_y
method onPoint
andCoordinate
- Migrate
Line
aandLineString
to be a series ofCoordinates
(notPoints
). - Introduce Triangle geometry type.
- Rename bounding ‘box’ to ‘rect’; move structure to geo-types.
- Allow LineString creation from vec of two-element CoordinateType array
- New crate with core types from
geo