Skip to content

Latest commit

 

History

History
113 lines (94 loc) · 4.71 KB

CHANGES.md

File metadata and controls

113 lines (94 loc) · 4.71 KB

Changes

0.11.1 - 2024-10-10

  • Add an infer_type function to extract only the geometry type and dimension from a WKT string.

0.11.0 - 2024-07-24

  • Support parsing Z, M, and ZM WKT strings.
  • Changed license field to SPDX 2.1 license expression
  • Bump min version of geo-types, and update geo_types::Coordinate to non-deprecated geo_types::Coord
  • BREAKING: WktNum must implement PartialEq
  • Implement PartialEq for Wkt
  • BREAKING: Simplify Wkt data structure by replacing it with its only field (formerly known as item: Geometry)
  • BREAKING: Replace geometry_variant.as_item() with Wkt::from(geometry_variant)

0.10.3 - 2022-06-22

  • Fixed a typo in the release notes to reference the correct version

0.10.2 - 2022-06-22

Added

  • serialize integer geometries to WKT, so you can now: geo_types::Point::<i32>::new(1, 2).wkt_string()
  • deserialize integer geometries from WKT, so you can now: geo_types::Point::<i32>::try_from_wkt_str("POINT(1 2)") Note that trying to parse numbers with a decimal point as integer geometries will error geo_types::Point::<i32>::try_from_wkt_str("POINT(1.1 2.9)").unwrap_err()
  • docs.rs documentation now shows all optional features.
  • docs.rs documentation items are annotated with their feature requirements.
  • deserialize_wkt serde integration for all the geo-types (and any other implementer of TryFromWkt)
  • add support for serializing integer geometries, so you can now: geo_types::Point::new(1i32, 2i32).wkt_string() Note that deserializing integer geometries is not yet supported.

0.10.1 - 2022-04-28

Added

  • impl std::fmt::Display for Wkt.
  • Additions to ToWkt trait:
    • added wkt_string and write_wkt methods to ToWkt trait
    • impl ToWkt on geo_type Geometry variants directly, so you can point!(x: 1., y: 2.).wkt_string()
    • ToWkt is no longer tied to geo-types. You can implement it on your own custom (non-geo_type) geometry types.
  • New FromWkt trait allows a way to convert from a string or reader directly to geo-types, without exposing you to the intermediate Wkt structs.
  • Implemented geo_types::GeometryCollection::from(Wkt::from_str(wkt_str))

0.10.0 - 2022-02-24

Changed

  • Now accepts MULTIPOINTs with fewer parentheses, as output by ST_AsText in postgis: MULTIPOINT(0 1, 2 3) in addition to MULTIPOINT((0 1), (2 3))
  • BREAKING: Replace Wkt::items with Wkt::item and remove Wkt::add_item().
  • BREAKING: Reject empty strings instead of parsing them into an empty Wkt.
  • BREAKING: move Wkt::from_str to FromStr trait. Add use std::str::FromStr; to your code to use it.
  • Switch to 2021 edition and add examples
  • Update to geo-types v0.7.3
  • Add MIT license file

0.9.2 - 2020-04-30

Added

  • Minimal support for JTS extension: LINEARRING by parsing it as a LINESTRING.
  • Support POINT EMPTY in conversion to geo_types. Converts to MultiPoint([]).

Fixed

  • Some "numeric" characters like ¾ and were being treated as digits.

Changed

  • Approximately 40% faster according to cargo bench.

0.9.1

  • Add serde::Deserialize for Wkt and Geometry.
  • Add helper functions for deserializing from WKT format into geo_types::Geometry and geo_types::Point

0.9.0

  • WKT errors impl std::error::Error
  • Add TryFrom for converting directly to geo-types::Geometry enum members, such as geo_types::LineString::try_from(wkt)
  • Add geo-types::Geometry::from(wkt)
  • BREAKING: update geo-types, apply new geo_types::CoordFloat
  • BREAKING: Add Debug to Wkt structs by using new WktFloat instead of num_traits::Float

0.8.0

  • update geo-types