Skip to main content

Crate sedona_geo_traits_ext

Crate sedona_geo_traits_ext 

Source
Expand description

Extended traits for the geo-traits crate

This crate extends the geo-traits crate with additional traits and implementations. The goal is to provide a set of traits that are useful for implementing algorithms on top of the geo crate. Most of the methods are inspired by the geo-types crate, but are implemented as traits on the geo-traits types. Some methods returns concrete types defined in geo-types, these methods are only for computing tiny, intermediate results during algorithm execution.

The crate is designed to support migration of the geo crate to use the traits defined in geo-traits by providing generic implementations of the geospatial algorithms, rather than implementing algorithms on concrete types defined in geo-types.

The crate is currently under active development and the API is subject to change.

Modules§

wkb_ext

Macros§

forward_geometry_collection_trait_ext_funcs
Forwards GeometryCollectionTraitExt methods to the underlying geo_traits::GeometryCollectionTrait implementation while preserving the extension trait wrappers.
forward_geometry_trait_ext_funcs
Forwards GeometryTraitExt associated types and methods to the underlying geo_traits::GeometryTrait implementation while retaining the extension trait wrappers.
forward_line_string_trait_ext_funcs
Forwards LineStringTraitExt methods to an underlying LineStringTrait implementation.
forward_line_trait_ext_funcs
Forwards LineTraitExt methods to an underlying LineTrait implementation.
forward_multi_line_string_trait_ext_funcs
Forwards MultiLineStringTraitExt methods to the underlying geo_traits::MultiLineStringTrait implementation while keeping the extension trait wrappers intact.
forward_multi_point_trait_ext_funcs
Forwards MultiPointTraitExt methods to the underlying geo_traits::MultiPointTrait implementation while maintaining the extension trait wrappers.
forward_multi_polygon_trait_ext_funcs
Forwards MultiPolygonTraitExt methods to the underlying geo_traits::MultiPolygonTrait implementation while preserving the extension trait wrappers.
forward_point_trait_ext_funcs
Forwards PointTraitExt methods to the wrapped PointTrait implementation.
forward_polygon_trait_ext_funcs
Forwards PolygonTraitExt methods to the underlying geo_traits::PolygonTrait implementation while preserving the extension trait wrappers.
forward_rect_trait_ext_funcs
Forwards RectTraitExt methods to the underlying geo_traits::RectTrait implementation while keeping the extension trait wrappers intact.
forward_triangle_trait_ext_funcs
Forwards TriangleTraitExt methods to the underlying geo_traits::TriangleTrait implementation while returning extension trait wrappers.

Structs§

CoordTag
Tag that identifies coordinate-like values.
GeometryCollectionTag
Tag that identifies geometry-collection-like geometries.
GeometryTag
Tag that identifies generic geometry values.
LineStringTag
Tag that identifies line-string-like geometries.
LineTag
Tag that identifies line-segment-like geometries.
MultiLineStringTag
Tag that identifies multi-line-string-like geometries.
MultiPointTag
Tag that identifies multi-point-like geometries.
MultiPolygonTag
Tag that identifies multi-polygon-like geometries.
PointTag
Tag that identifies point-like geometries.
PolygonTag
Tag that identifies polygon-like geometries.
RectTag
Tag that identifies rectangle-like geometries.
TriangleTag
Tag that identifies triangle-like geometries.

Enums§

GeometryTypeExt
Borrowed view into a concrete geometry type implementing the extension traits.

Traits§

CoordTraitExt
Extension methods that bridge CoordTrait with concrete geo-types helpers.
GeoTraitExtWithTypeTag
Helper trait implemented by extension traits to expose their geometry tag. Each geometry type could only implement this trait once, so each geometry type has one unique tag. This helps us work around the single-orphan rule of Rust trait system and help us smoothly refactor the existing algorithms in georust/geo.
GeoTypeTag
Marker trait implemented by all geometry type tags used for dispatch.
GeometryCollectionTraitExt
Extension trait that enriches geo_traits::GeometryCollectionTrait with Sedona-specific conveniences.
GeometryTraitExt
Extension trait that augments geo_traits::GeometryTrait with Sedona’s additional helpers and type tagging support.
LineStringTraitExt
Additional convenience methods for LineStringTrait implementers that mirror geo-types.
LineTraitExt
Extra helpers for LineTrait implementers that mirror geo-types APIs.
MultiLineStringTraitExt
Extension trait that layers additional ergonomics on geo_traits::MultiLineStringTrait.
MultiPointTraitExt
Extension trait that augments geo_traits::MultiPointTrait with richer ergonomics and accessors.
MultiPolygonTraitExt
Extension trait that enriches geo_traits::MultiPolygonTrait with Sedona conveniences.
PointTraitExt
Extension methods that expose geo-types conveniences for PointTrait implementers.
PolygonTraitExt
Extension trait that augments geo_traits::PolygonTrait with extension-aware accessors over exterior and interior rings.
RectTraitExt
Extension trait that augments geo_traits::RectTrait with additional helpers for working with axis-aligned bounding boxes.
TriangleTraitExt
Extension trait that augments geo_traits::TriangleTrait with convenient coordinate accessors and adapters.