Skip to main content

Crate sedona_geo_generic_alg

Crate sedona_geo_generic_alg 

Source
Expand description

Crate root for generic geometry algorithms ported from geo.

Substantial portions of this crate (algorithm modules, trait patterns, and API surface) are ported (and contain copied code) from the geo crate at commit 5d667f844716a3d0a17aa60bc0a58528cb5808c3: https://github.com/georust/geo/tree/5d667f844716a3d0a17aa60bc0a58528cb5808c3/geo/src. The original upstream project is dual-licensed under Apache-2.0 or MIT; the copied/ported code here is used under the Apache-2.0 license consistent with this repository. This top-level file orchestrates module exposure and numeric traits mirroring upstream design.

Re-exports§

pub use crate::algorithm::*;
pub use geometry::*;

Modules§

algorithm
This module includes all the functions of geometric calculations Collection of generic geometry algorithms ported from the geo crate.
geometry
Geometry type re-exports
prelude
A prelude which re-exports the traits for manipulating objects in this crate. Typically imported with use geo::prelude::*.

Macros§

coord
Creates a Coord from the given scalars.
line_string
Creates a LineString containing the given coordinates.
point
Creates a Point from the given coordinates.
polygon
Creates a Polygon containing the given coordinates.
wkt
Creates a crate::geometry from a WKT literal.

Traits§

CoordFloat
For algorithms which can only use floating point Points/Coords, like area or length calculations
CoordNum
For algorithms which can use both integer and floating point Points/Coords
GeoFloat
A common numeric trait used for geo algorithms
GeoNum
A trait for methods which work for both integers and floating point