rust-geo-wkt-writer
A trait for geo-types Geometries to output a WKT representation.
ToWkt
This trait applies to all Geometry types in geo-types. There is no Rect or Triangle WKT text type, so both of those will be serialized as POLYGON WKT representations. Any polygons returned will be normalized.
Examples
use ;
use ToWkt;
let poly = Polygon;
let pe = Point;
let gc = GeometryCollection;
let wkt_out = gc.to_wkt;
let expected = String from;
assert_eq!;