Skip to content

Latest commit

 

History

History
151 lines (117 loc) · 5.5 KB

CHANGES.md

File metadata and controls

151 lines (117 loc) · 5.5 KB

Changes

0.7.1

  • Implement Default on Coordinate and Point structs (defaults to (x: 0, y: 0))
  • Add specific details about conversion failures in the newly public geo_types::Error

0.7.0

  • BREAKING: geo_types::CoordinateType now extends Debug and has been deprecated in favor of geo_types::CoordNum and geo_types::CoordFloat
  • BREAKING: Introduce use-rstar feature rather than rstar so that approx dependency can be optional
  • Implement approx::{RelativeEq, AbsDiffEq} for geo-types when using the approx feature
  • geo_types::LineString::num_coords has been deprecated in favor of geo::algorithm::coords_iter::CoordsIter::coords_count

0.6.2

  • Add into_iter, iter and iter_mut methods for MultiPolygon, MultiPoint, and MultiLineString
  • Rect::new automatically determines min/max points. Deprecates Rect::try_new which can no longer fail.
  • Add MultiLineString::is_closed method

0.6.1

  • Add documentation on semantics (based on OGC-SFA)
  • Add vector-space operations to Coordinate and Point

0.6.0

  • Remove COORD_PRECISION which was an arbitrary constant of 0.1m
  • Bump rstar version to 0.8.0
  • Add Triangle and Rect to Geometry
  • Introduce Rect::try_new constructor which doesn’t panic
  • Add Rect::center method
  • Derive Eq for types when applicable
  • Implement From<Triangle> for Polygon

0.5.0

  • 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 in geo-types

0.4.3

  • Introduce point!, line_string!, and polygon! macros.
  • Add Rect constructor that enforces min.{x,y} < max.{x,y}

0.4.2

  • Add Polygon::num_coords

0.4.1

  • Add Polygon::interiors_push - Adds an interior ring to a Polygon

0.4.0

  • Rewrite Polygon structure to enforce closed LineString rings
  • Implement Into<Geometry> for Line
  • Implement Index<usize> for LineString to get the coordinate at that position
  • Bump rstar dependency
  • Ability to construct MultiPolygon from Vec of anything that implements Into<Polygon>
  • Add new, is_empty, len functions on GeometryCollection
  • Tweak Geometry method names slightly
  • Remove unnecessary references in function signatures

0.3.0

  • Replace the spade crate with the rstar crate
  • Remove unnecessary algorithm trait bounds

0.2.2

  • Fix misnamed serde feature flag.
  • Add width and height helpers on Rect.

0.2.1

  • Add to_lines method on a Triangle

0.2.0

  • Introduce Line::{dx, dy, slope, determinant} methods.
  • Remove unnecessary borrows in function params for Copy types.
  • Introduce x_y method on Point and Coordinate
  • Migrate Line aand LineString to be a series of Coordinates (not Points).
  • Introduce Triangle geometry type.
  • Rename bounding ‘box’ to ‘rect’; move structure to geo-types.

0.1.1

  • Allow LineString creation from vec of two-element CoordinateType array

0.1.0

  • New crate with core types from geo