NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io · #3288 most downloaded on crates.io
Rust read/write support for well-known text (WKT)
Last release 1 years ago
14 May 2025
Ships unpredictably
gaps range from 2 weeks to 2.1 years
Some releases are documented
notes for 13 of 29 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
29 releases · first in 2015
Set package version to 0.14
Set package version to 0.14
New wkt! macro for compile time checking of static WKT text.
wkt! macro for compile time checking of static WKT text. (#137)wkt::types. Use public constructors to construct new objects and new public accessors to access internal data.infer_type now never returns None.Wkt when writing geo-types via write_wkt (#140)f64 for WktNum in WKT typesCopy impl to CoordOne column per quarter.
Writing WKT is now up to 50% faster by avoiding extra allocations and writing directly to an underlying buffer.
geo_traits input is now supported when writing to WKT.geo_traits on Wkt and all structs in types. This allows for easier interoperability when reading WKT data to other representations than geo-types.fmt::Display impl on wkt::Coord.prepare for v0.11.1 release
prepare for v0.11.1 release
infer_type function to extract only the geometry type and dimension from a WKT string.prepare for v0.11.0 release
prepare for v0.11.0 release
item: Geometry)Fixed a typo in the release notes to reference the correct version
serialize integer geometries *to* WKT, so you can now: geo_types::Point:: ::new(1, 2).wkt_string()
geo_types::Point::<i32>::new(1, 2).wkt_string()
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()
deserialize_wkt serde integration for all the geo-types (and any other implementer of TryFromWkt)
geo_types::Point::new(1i32, 2i32).wkt_string()
Note that deserializing integer geometries is not yet supported.
prepare for 0.10.1 release
prepare for 0.10.1 release
std::fmt::Display for Wkt.
wkt_string and write_wkt methods to ToWkt trait
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.
FromWkt trait allows a way to convert from a string or reader directly
to geo-types, without exposing you to the intermediate Wkt structs.
geo_types::GeometryCollection::from(Wkt::from_str(wkt_str))
77: Prepare for 0.10.0 release r=urschrei a=urschrei
77: Prepare for 0.10.0 release r=urschrei a=urschrei
CHANGES.md if knowledge of this change could be valuable to users.Co-authored-by: Stephan Hügel shugel@tcd.ie
MULTIPOINTs with fewer parentheses, as output by ST_AsText in postgis:
MULTIPOINT(0 1, 2 3) in addition to MULTIPOINT((0 1), (2 3))Wkt::items with Wkt::item and remove Wkt::add_item().
Wkt.
Wkt::from_str to FromStr trait. Add use std::str::FromStr; to your code to use it.
Minimal support for JTS extension: LINEARRING by parsing it as a LINESTRING.
LINEARRING by parsing it as a LINESTRING.POINT EMPTY in conversion to geo_types.
Converts to MultiPoint([]).
¾ and ① were being treated as digits.cargo bench.Add serde::Deserialize for Wkt and Geometry.
serde::Deserialize for Wkt and Geometry.
geo_types::Geometry and geo_types::Point
Add TryFrom for converting directly to geo-types::Geometry enum members, such as geo_types::LineString::try_from(wkt)
std::error::Error
geo_types::LineString::try_from(wkt)
geo-types::Geometry::from(wkt)geo_types::CoordFloat
* update geo-types
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →