Struct geoarrow::scalar::LineString

source ·
pub struct LineString<'a, O: OffsetSizeTrait> { /* private fields */ }
Expand description

An Arrow equivalent of a LineString

Implementations§

source§

impl<'b, O: OffsetSizeTrait> LineString<'_, O>

source§

impl<'a, O: OffsetSizeTrait> LineString<'a, O>

source

pub fn new( coords: Cow<'a, CoordBuffer>, geom_offsets: Cow<'a, OffsetBuffer<O>>, geom_index: usize ) -> Self

source

pub fn new_borrowed( coords: &'a CoordBuffer, geom_offsets: &'a OffsetBuffer<O>, geom_index: usize ) -> Self

source

pub fn new_owned( coords: CoordBuffer, geom_offsets: OffsetBuffer<O>, geom_index: usize ) -> Self

source

pub fn into_owned(self) -> Self

Extracts the owned data.

Clones the data if it is not already owned.

source

pub fn into_owned_inner(self) -> (CoordBuffer, OffsetBuffer<O>, usize)

Trait Implementations§

source§

impl<'a, O: Clone + OffsetSizeTrait> Clone for LineString<'a, O>

source§

fn clone(&self) -> LineString<'a, O>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'a, O: Debug + OffsetSizeTrait> Debug for LineString<'a, O>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a, O: OffsetSizeTrait> EuclideanDistance<LineString<'a, O>> for LineStringArray<O>

source§

fn euclidean_distance(&self, other: &LineString<'a, O>) -> Float64Array

Returns the distance between two geometries Read more
source§

impl<'a, O: OffsetSizeTrait> EuclideanDistance<LineString<'a, O>> for PointArray

source§

fn euclidean_distance(&self, other: &LineString<'a, O>) -> Float64Array

Returns the distance between two geometries Read more
source§

impl<'a, O: OffsetSizeTrait> EuclideanDistance<LineString<'a, O>> for PolygonArray<O>

source§

fn euclidean_distance(&self, other: &LineString<'a, O>) -> Float64Array

Returns the distance between two geometries Read more
source§

impl<O: OffsetSizeTrait> From<&LineString<'_, O>> for LineString

source§

fn from(value: &LineString<'_, O>) -> Self

Converts to this type from the input type.
source§

impl<'a, O: OffsetSizeTrait> From<&'a OwnedLineString<O>> for LineString<'a, O>

source§

fn from(value: &'a OwnedLineString<O>) -> Self

Converts to this type from the input type.
source§

impl<O: OffsetSizeTrait> From<LineString<'_, O>> for Geometry

source§

fn from(value: LineString<'_, O>) -> Self

Converts to this type from the input type.
source§

impl<O: OffsetSizeTrait> From<LineString<'_, O>> for LineString

source§

fn from(value: LineString<'_, O>) -> Self

Converts to this type from the input type.
source§

impl<'a, O: OffsetSizeTrait> From<LineString<'a, O>> for OwnedLineString<O>

source§

fn from(value: LineString<'a, O>) -> Self

Converts to this type from the input type.
source§

impl<'a, O: OffsetSizeTrait> From<OwnedLineString<O>> for LineString<'a, O>

source§

fn from(value: OwnedLineString<O>) -> Self

Converts to this type from the input type.
source§

impl<'a, O: OffsetSizeTrait> GeometryScalarTrait for LineString<'a, O>

§

type ScalarGeo = LineString

The geo scalar object for this geometry array type.
source§

fn to_geo(&self) -> Self::ScalarGeo

source§

impl<O: OffsetSizeTrait> GeozeroGeometry for LineString<'_, O>

source§

fn process_geom<P: GeomProcessor>(&self, processor: &mut P) -> Result<()>
where Self: Sized,

Process geometry.
source§

fn dims(&self) -> CoordDimensions

Dimensions of geometry
source§

fn srid(&self) -> Option<i32>

SRID of geometry
source§

impl<'a, O: OffsetSizeTrait> Intersects<LineString<'a, O>> for LineStringArray<O>

source§

fn intersects(&self, rhs: &LineString<'a, O>) -> BooleanArray

source§

impl<'a, O: OffsetSizeTrait> Intersects<LineString<'a, O>> for MultiLineStringArray<O>

source§

fn intersects(&self, rhs: &LineString<'a, O>) -> BooleanArray

source§

impl<'a, O: OffsetSizeTrait> Intersects<LineString<'a, O>> for MultiPointArray<O>

source§

fn intersects(&self, rhs: &LineString<'a, O>) -> BooleanArray

source§

impl<'a, O: OffsetSizeTrait> Intersects<LineString<'a, O>> for MultiPolygonArray<O>

source§

fn intersects(&self, rhs: &LineString<'a, O>) -> BooleanArray

source§

impl<'a, O: OffsetSizeTrait> Intersects<LineString<'a, O>> for PointArray

source§

fn intersects(&self, rhs: &LineString<'a, O>) -> BooleanArray

source§

impl<'a, O: OffsetSizeTrait> Intersects<LineString<'a, O>> for PolygonArray<O>

source§

fn intersects(&self, rhs: &LineString<'a, O>) -> BooleanArray

source§

impl<'a, O: OffsetSizeTrait> LineStringTrait for &'a LineString<'a, O>

§

type T = f64

§

type ItemType<'b> = Point<'a> where Self: 'b

source§

fn num_coords(&self) -> usize

The number of coords in this LineString
source§

unsafe fn coord_unchecked(&self, i: usize) -> Self::ItemType<'_>

Access to a specified point in this LineString Read more
source§

fn coords(&self) -> LineStringIterator<'_, Self::T, Self::ItemType<'_>, Self>

An iterator over the coords in this LineString
source§

fn coord(&self, i: usize) -> Option<Self::ItemType<'_>>

Access to a specified point in this LineString Will return None if the provided index is out of bounds
source§

impl<'a, O: OffsetSizeTrait> LineStringTrait for LineString<'a, O>

§

type T = f64

§

type ItemType<'b> = Point<'a> where Self: 'b

source§

fn num_coords(&self) -> usize

The number of coords in this LineString
source§

unsafe fn coord_unchecked(&self, i: usize) -> Self::ItemType<'_>

Access to a specified point in this LineString Read more
source§

fn coords(&self) -> LineStringIterator<'_, Self::T, Self::ItemType<'_>, Self>

An iterator over the coords in this LineString
source§

fn coord(&self, i: usize) -> Option<Self::ItemType<'_>>

Access to a specified point in this LineString Will return None if the provided index is out of bounds
source§

impl<O: OffsetSizeTrait> PartialEq for LineString<'_, O>

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<O: OffsetSizeTrait> RTreeObject for LineString<'_, O>

§

type Envelope = AABB<[f64; 2]>

The object’s envelope type. Usually, AABB will be the right choice. This type also defines the object’s dimensionality.
source§

fn envelope(&self) -> Self::Envelope

Returns the object’s envelope. Read more
source§

impl<'a, 'b, O: OffsetSizeTrait> TryFrom<&'a LineString<'_, O>> for Geometry<'b>

§

type Error = GeoArrowError

The type returned in the event of a conversion error.
source§

fn try_from(value: &'a LineString<'_, O>) -> Result<Geometry<'b>>

Performs the conversion.
source§

impl<'b, O: OffsetSizeTrait> TryFrom<LineString<'_, O>> for Geometry<'b>

§

type Error = GeoArrowError

The type returned in the event of a conversion error.
source§

fn try_from(value: LineString<'_, O>) -> Result<Geometry<'b>>

Performs the conversion.
source§

impl<'a, O: OffsetSizeTrait> Within<LineString<'a, O>> for LineStringArray<O>

source§

fn is_within(&self, rhs: &LineString<'a, O>) -> BooleanArray

source§

impl<'a, O: OffsetSizeTrait> Within<LineString<'a, O>> for MultiLineStringArray<O>

source§

fn is_within(&self, rhs: &LineString<'a, O>) -> BooleanArray

source§

impl<'a, O: OffsetSizeTrait> Within<LineString<'a, O>> for MultiPointArray<O>

source§

fn is_within(&self, rhs: &LineString<'a, O>) -> BooleanArray

source§

impl<'a, O: OffsetSizeTrait> Within<LineString<'a, O>> for MultiPolygonArray<O>

source§

fn is_within(&self, rhs: &LineString<'a, O>) -> BooleanArray

source§

impl<'a, O: OffsetSizeTrait> Within<LineString<'a, O>> for PointArray

source§

fn is_within(&self, rhs: &LineString<'a, O>) -> BooleanArray

source§

impl<'a, O: OffsetSizeTrait> Within<LineString<'a, O>> for PolygonArray<O>

source§

fn is_within(&self, rhs: &LineString<'a, O>) -> BooleanArray

Auto Trait Implementations§

§

impl<'a, O> RefUnwindSafe for LineString<'a, O>
where O: RefUnwindSafe,

§

impl<'a, O> Send for LineString<'a, O>

§

impl<'a, O> Sync for LineString<'a, O>

§

impl<'a, O> Unpin for LineString<'a, O>
where O: Unpin,

§

impl<'a, O> UnwindSafe for LineString<'a, O>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToGeo for T
where T: GeozeroGeometry,

source§

fn to_geo(&self) -> Result<Geometry, GeozeroError>

Convert to geo-types Geometry.
source§

impl<T> ToJson for T
where T: GeozeroGeometry,

source§

fn to_json(&self) -> Result<String, GeozeroError>

Convert to GeoJSON String.
source§

impl<T, O> ToLineStringArray<O> for T

source§

fn to_line_string_array(&self) -> Result<LineStringArray<O>, GeozeroError>

Convert to GeoArrow LineStringArray
source§

fn to_line_string_builder(&self) -> Result<LineStringBuilder<O>, GeozeroError>

Convert to a GeoArrow LineStringBuilder
source§

impl<T, O> ToMixedArray<O> for T

source§

fn to_mixed_geometry_array(&self) -> Result<MixedGeometryArray<O>, GeozeroError>

Convert to GeoArrow MixedArray
source§

fn to_mixed_geometry_builder( &self ) -> Result<MixedGeometryBuilder<O>, GeozeroError>

Convert to a GeoArrow MixedArrayBuilder
source§

impl<T, O> ToMultiLineStringArray<O> for T

source§

fn to_line_string_array(&self) -> Result<MultiLineStringArray<O>, GeozeroError>

Convert to GeoArrow MultiLineStringArray
source§

fn to_line_string_builder( &self ) -> Result<MultiLineStringBuilder<O>, GeozeroError>

Convert to a GeoArrow MultiLineStringBuilder
source§

impl<T, O> ToMultiPointArray<O> for T

source§

fn to_multi_point_array(&self) -> Result<MultiPointArray<O>, GeozeroError>

Convert to GeoArrow MultiPointArray
source§

fn to_multi_point_builder(&self) -> Result<MultiPointBuilder<O>, GeozeroError>

Convert to a GeoArrow MultiPointBuilder
source§

impl<T, O> ToMultiPolygonArray<O> for T

source§

fn to_line_string_array(&self) -> Result<MultiPolygonArray<O>, GeozeroError>

Convert to GeoArrow MultiPolygonArray
source§

fn to_line_string_builder(&self) -> Result<MultiPolygonBuilder<O>, GeozeroError>

Convert to a GeoArrow MultiPolygonBuilder
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToPointArray for T
where T: GeozeroGeometry,

source§

fn to_point_array(&self) -> Result<PointArray, GeozeroError>

Convert to GeoArrow PointArray
source§

fn to_point_builder(&self) -> Result<PointBuilder, GeozeroError>

Convert to a GeoArrow PointBuilder
source§

impl<T, O> ToPolygonArray<O> for T

source§

fn to_line_string_array(&self) -> Result<PolygonArray<O>, GeozeroError>

Convert to GeoArrow PolygonArray
source§

fn to_line_string_builder(&self) -> Result<PolygonBuilder<O>, GeozeroError>

Convert to a GeoArrow PolygonBuilder
source§

impl<T> ToSvg for T
where T: GeozeroGeometry,

source§

fn to_svg(&self) -> Result<String, GeozeroError>

Convert to SVG geometry.
source§

fn to_svg_document(&self) -> Result<String, GeozeroError>

Convert to SVG document.
source§

impl<T> ToWkb for T
where T: GeozeroGeometry,

source§

fn to_wkb_dialect( &self, dialect: WkbDialect, dims: CoordDimensions, srid: Option<i32>, envelope: Vec<f64> ) -> Result<Vec<u8>, GeozeroError>

Convert to WKB dialect.
source§

fn to_wkb(&self, dims: CoordDimensions) -> Result<Vec<u8>, GeozeroError>

Convert to OGC WKB.
source§

fn to_ewkb( &self, dims: CoordDimensions, srid: Option<i32> ) -> Result<Vec<u8>, GeozeroError>

Convert to EWKB.
source§

fn to_gpkg_wkb( &self, dims: CoordDimensions, srid: Option<i32>, envelope: Vec<f64> ) -> Result<Vec<u8>, GeozeroError>

Convert to GeoPackage WKB.
source§

fn to_spatialite_wkb( &self, dims: CoordDimensions, srid: Option<i32>, envelope: Vec<f64> ) -> Result<Vec<u8>, GeozeroError>

Convert to Spatialite WKB.
source§

fn to_mysql_wkb(&self, srid: Option<i32>) -> Result<Vec<u8>, GeozeroError>

Convert to MySQL WKB.
source§

impl<T> ToWkt for T
where T: GeozeroGeometry,

source§

fn to_wkt(&self) -> Result<String, GeozeroError>

Convert to 2D WKT String.
source§

fn to_ewkt(&self, srid: Option<i32>) -> Result<String, GeozeroError>

Convert to EWKT String.
source§

fn to_wkt_ndim(&self, dims: CoordDimensions) -> Result<String, GeozeroError>

Convert to WKT String with dimensions.
source§

fn to_wkt_with_opts( &self, dialect: WktDialect, dims: CoordDimensions, srid: Option<i32> ) -> Result<String, GeozeroError>

Convert to WKT String with srid, dimensions and dialect.
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<G1, G2> Within<G2> for G1
where G2: Contains<G1>,

source§

fn is_within(&self, b: &G2) -> bool

source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,