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>
impl<'b, O: OffsetSizeTrait> LineString<'_, O>
pub fn to_geos_linear_ring(&self) -> Result<Geometry<'b>>
source§impl<'a, O: OffsetSizeTrait> LineString<'a, O>
impl<'a, O: OffsetSizeTrait> LineString<'a, O>
pub fn new( coords: Cow<'a, CoordBuffer>, geom_offsets: Cow<'a, OffsetBuffer<O>>, geom_index: usize ) -> Self
pub fn new_borrowed( coords: &'a CoordBuffer, geom_offsets: &'a OffsetBuffer<O>, geom_index: usize ) -> Self
pub fn new_owned( coords: CoordBuffer, geom_offsets: OffsetBuffer<O>, geom_index: usize ) -> Self
sourcepub fn into_owned(self) -> Self
pub fn into_owned(self) -> Self
Extracts the owned data.
Clones the data if it is not already owned.
pub fn into_owned_inner(self) -> (CoordBuffer, OffsetBuffer<O>, usize)
Trait Implementations§
source§impl<'a, O: Clone + OffsetSizeTrait> Clone for LineString<'a, O>
impl<'a, O: Clone + OffsetSizeTrait> Clone for LineString<'a, O>
source§fn clone(&self) -> LineString<'a, O>
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a, O: Debug + OffsetSizeTrait> Debug for LineString<'a, O>
impl<'a, O: Debug + OffsetSizeTrait> Debug for LineString<'a, O>
source§impl<'a, O: OffsetSizeTrait> EuclideanDistance<LineString<'a, O>> for LineStringArray<O>
impl<'a, O: OffsetSizeTrait> EuclideanDistance<LineString<'a, O>> for LineStringArray<O>
source§fn euclidean_distance(&self, other: &LineString<'a, O>) -> Float64Array
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
impl<'a, O: OffsetSizeTrait> EuclideanDistance<LineString<'a, O>> for PointArray
source§fn euclidean_distance(&self, other: &LineString<'a, O>) -> Float64Array
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>
impl<'a, O: OffsetSizeTrait> EuclideanDistance<LineString<'a, O>> for PolygonArray<O>
source§fn euclidean_distance(&self, other: &LineString<'a, O>) -> Float64Array
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
impl<O: OffsetSizeTrait> From<&LineString<'_, O>> for LineString
source§fn from(value: &LineString<'_, O>) -> Self
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>
impl<'a, O: OffsetSizeTrait> From<&'a OwnedLineString<O>> for LineString<'a, O>
source§fn from(value: &'a OwnedLineString<O>) -> Self
fn from(value: &'a OwnedLineString<O>) -> Self
Converts to this type from the input type.
source§impl<O: OffsetSizeTrait> From<LineString<'_, O>> for Geometry
impl<O: OffsetSizeTrait> From<LineString<'_, O>> for Geometry
source§fn from(value: LineString<'_, O>) -> Self
fn from(value: LineString<'_, O>) -> Self
Converts to this type from the input type.
source§impl<O: OffsetSizeTrait> From<LineString<'_, O>> for LineString
impl<O: OffsetSizeTrait> From<LineString<'_, O>> for LineString
source§fn from(value: LineString<'_, O>) -> Self
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>
impl<'a, O: OffsetSizeTrait> From<LineString<'a, O>> for OwnedLineString<O>
source§fn from(value: LineString<'a, O>) -> Self
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>
impl<'a, O: OffsetSizeTrait> From<OwnedLineString<O>> for LineString<'a, O>
source§fn from(value: OwnedLineString<O>) -> Self
fn from(value: OwnedLineString<O>) -> Self
Converts to this type from the input type.
source§impl<'a, O: OffsetSizeTrait> GeometryScalarTrait for LineString<'a, O>
impl<'a, O: OffsetSizeTrait> GeometryScalarTrait for LineString<'a, O>
source§impl<O: OffsetSizeTrait> GeozeroGeometry for LineString<'_, O>
impl<O: OffsetSizeTrait> GeozeroGeometry for LineString<'_, O>
source§impl<'a, O: OffsetSizeTrait> Intersects<LineString<'a, O>> for LineStringArray<O>
impl<'a, O: OffsetSizeTrait> Intersects<LineString<'a, O>> for LineStringArray<O>
fn intersects(&self, rhs: &LineString<'a, O>) -> BooleanArray
source§impl<'a, O: OffsetSizeTrait> Intersects<LineString<'a, O>> for MultiLineStringArray<O>
impl<'a, O: OffsetSizeTrait> Intersects<LineString<'a, O>> for MultiLineStringArray<O>
fn intersects(&self, rhs: &LineString<'a, O>) -> BooleanArray
source§impl<'a, O: OffsetSizeTrait> Intersects<LineString<'a, O>> for MultiPointArray<O>
impl<'a, O: OffsetSizeTrait> Intersects<LineString<'a, O>> for MultiPointArray<O>
fn intersects(&self, rhs: &LineString<'a, O>) -> BooleanArray
source§impl<'a, O: OffsetSizeTrait> Intersects<LineString<'a, O>> for MultiPolygonArray<O>
impl<'a, O: OffsetSizeTrait> Intersects<LineString<'a, O>> for MultiPolygonArray<O>
fn intersects(&self, rhs: &LineString<'a, O>) -> BooleanArray
source§impl<'a, O: OffsetSizeTrait> Intersects<LineString<'a, O>> for PointArray
impl<'a, O: OffsetSizeTrait> Intersects<LineString<'a, O>> for PointArray
fn intersects(&self, rhs: &LineString<'a, O>) -> BooleanArray
source§impl<'a, O: OffsetSizeTrait> Intersects<LineString<'a, O>> for PolygonArray<O>
impl<'a, O: OffsetSizeTrait> Intersects<LineString<'a, O>> for PolygonArray<O>
fn intersects(&self, rhs: &LineString<'a, O>) -> BooleanArray
source§impl<'a, O: OffsetSizeTrait> LineStringTrait for &'a LineString<'a, O>
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
fn num_coords(&self) -> usize
The number of coords in this LineString
source§unsafe fn coord_unchecked(&self, i: usize) -> Self::ItemType<'_>
unsafe fn coord_unchecked(&self, i: usize) -> Self::ItemType<'_>
Access to a specified point in this LineString Read more
source§impl<'a, O: OffsetSizeTrait> LineStringTrait for LineString<'a, O>
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
fn num_coords(&self) -> usize
The number of coords in this LineString
source§unsafe fn coord_unchecked(&self, i: usize) -> Self::ItemType<'_>
unsafe fn coord_unchecked(&self, i: usize) -> Self::ItemType<'_>
Access to a specified point in this LineString Read more
source§impl<O: OffsetSizeTrait> PartialEq for LineString<'_, O>
impl<O: OffsetSizeTrait> PartialEq for LineString<'_, O>
source§impl<O: OffsetSizeTrait> RTreeObject for LineString<'_, O>
impl<O: OffsetSizeTrait> RTreeObject for LineString<'_, O>
source§impl<'a, 'b, O: OffsetSizeTrait> TryFrom<&'a LineString<'_, O>> for Geometry<'b>
impl<'a, 'b, O: OffsetSizeTrait> TryFrom<&'a LineString<'_, O>> for Geometry<'b>
§type Error = GeoArrowError
type Error = GeoArrowError
The type returned in the event of a conversion error.
source§impl<'b, O: OffsetSizeTrait> TryFrom<LineString<'_, O>> for Geometry<'b>
impl<'b, O: OffsetSizeTrait> TryFrom<LineString<'_, O>> for Geometry<'b>
§type Error = GeoArrowError
type Error = GeoArrowError
The type returned in the event of a conversion error.
source§impl<'a, O: OffsetSizeTrait> Within<LineString<'a, O>> for LineStringArray<O>
impl<'a, O: OffsetSizeTrait> Within<LineString<'a, O>> for LineStringArray<O>
fn is_within(&self, rhs: &LineString<'a, O>) -> BooleanArray
source§impl<'a, O: OffsetSizeTrait> Within<LineString<'a, O>> for MultiLineStringArray<O>
impl<'a, O: OffsetSizeTrait> Within<LineString<'a, O>> for MultiLineStringArray<O>
fn is_within(&self, rhs: &LineString<'a, O>) -> BooleanArray
source§impl<'a, O: OffsetSizeTrait> Within<LineString<'a, O>> for MultiPointArray<O>
impl<'a, O: OffsetSizeTrait> Within<LineString<'a, O>> for MultiPointArray<O>
fn is_within(&self, rhs: &LineString<'a, O>) -> BooleanArray
source§impl<'a, O: OffsetSizeTrait> Within<LineString<'a, O>> for MultiPolygonArray<O>
impl<'a, O: OffsetSizeTrait> Within<LineString<'a, O>> for MultiPolygonArray<O>
fn is_within(&self, rhs: &LineString<'a, O>) -> BooleanArray
source§impl<'a, O: OffsetSizeTrait> Within<LineString<'a, O>> for PointArray
impl<'a, O: OffsetSizeTrait> Within<LineString<'a, O>> for PointArray
fn is_within(&self, rhs: &LineString<'a, O>) -> BooleanArray
source§impl<'a, O: OffsetSizeTrait> Within<LineString<'a, O>> for PolygonArray<O>
impl<'a, O: OffsetSizeTrait> Within<LineString<'a, O>> for PolygonArray<O>
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>where
O: UnwindSafe + RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> ToGeo for Twhere
T: GeozeroGeometry,
impl<T> ToGeo for Twhere
T: GeozeroGeometry,
source§fn to_geo(&self) -> Result<Geometry, GeozeroError>
fn to_geo(&self) -> Result<Geometry, GeozeroError>
Convert to geo-types Geometry.
source§impl<T> ToJson for Twhere
T: GeozeroGeometry,
impl<T> ToJson for Twhere
T: GeozeroGeometry,
source§impl<T, O> ToLineStringArray<O> for Twhere
T: GeozeroGeometry,
O: OffsetSizeTrait,
impl<T, O> ToLineStringArray<O> for Twhere
T: GeozeroGeometry,
O: OffsetSizeTrait,
source§fn to_line_string_array(&self) -> Result<LineStringArray<O>, GeozeroError>
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>
fn to_line_string_builder(&self) -> Result<LineStringBuilder<O>, GeozeroError>
Convert to a GeoArrow LineStringBuilder
source§impl<T, O> ToMixedArray<O> for Twhere
T: GeozeroGeometry,
O: OffsetSizeTrait,
impl<T, O> ToMixedArray<O> for Twhere
T: GeozeroGeometry,
O: OffsetSizeTrait,
source§fn to_mixed_geometry_array(&self) -> Result<MixedGeometryArray<O>, GeozeroError>
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>
fn to_mixed_geometry_builder( &self ) -> Result<MixedGeometryBuilder<O>, GeozeroError>
Convert to a GeoArrow MixedArrayBuilder
source§impl<T, O> ToMultiLineStringArray<O> for Twhere
T: GeozeroGeometry,
O: OffsetSizeTrait,
impl<T, O> ToMultiLineStringArray<O> for Twhere
T: GeozeroGeometry,
O: OffsetSizeTrait,
source§fn to_line_string_array(&self) -> Result<MultiLineStringArray<O>, GeozeroError>
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>
fn to_line_string_builder( &self ) -> Result<MultiLineStringBuilder<O>, GeozeroError>
Convert to a GeoArrow MultiLineStringBuilder
source§impl<T, O> ToMultiPointArray<O> for Twhere
T: GeozeroGeometry,
O: OffsetSizeTrait,
impl<T, O> ToMultiPointArray<O> for Twhere
T: GeozeroGeometry,
O: OffsetSizeTrait,
source§fn to_multi_point_array(&self) -> Result<MultiPointArray<O>, GeozeroError>
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>
fn to_multi_point_builder(&self) -> Result<MultiPointBuilder<O>, GeozeroError>
Convert to a GeoArrow MultiPointBuilder
source§impl<T, O> ToMultiPolygonArray<O> for Twhere
T: GeozeroGeometry,
O: OffsetSizeTrait,
impl<T, O> ToMultiPolygonArray<O> for Twhere
T: GeozeroGeometry,
O: OffsetSizeTrait,
source§fn to_line_string_array(&self) -> Result<MultiPolygonArray<O>, GeozeroError>
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>
fn to_line_string_builder(&self) -> Result<MultiPolygonBuilder<O>, GeozeroError>
Convert to a GeoArrow MultiPolygonBuilder
source§impl<T> ToPointArray for Twhere
T: GeozeroGeometry,
impl<T> ToPointArray for Twhere
T: GeozeroGeometry,
source§fn to_point_array(&self) -> Result<PointArray, GeozeroError>
fn to_point_array(&self) -> Result<PointArray, GeozeroError>
Convert to GeoArrow PointArray
source§fn to_point_builder(&self) -> Result<PointBuilder, GeozeroError>
fn to_point_builder(&self) -> Result<PointBuilder, GeozeroError>
Convert to a GeoArrow PointBuilder
source§impl<T, O> ToPolygonArray<O> for Twhere
T: GeozeroGeometry,
O: OffsetSizeTrait,
impl<T, O> ToPolygonArray<O> for Twhere
T: GeozeroGeometry,
O: OffsetSizeTrait,
source§fn to_line_string_array(&self) -> Result<PolygonArray<O>, GeozeroError>
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>
fn to_line_string_builder(&self) -> Result<PolygonBuilder<O>, GeozeroError>
Convert to a GeoArrow PolygonBuilder
source§impl<T> ToSvg for Twhere
T: GeozeroGeometry,
impl<T> ToSvg for Twhere
T: GeozeroGeometry,
source§fn to_svg_document(&self) -> Result<String, GeozeroError>
fn to_svg_document(&self) -> Result<String, GeozeroError>
Convert to SVG document.
source§impl<T> ToWkb for Twhere
T: GeozeroGeometry,
impl<T> ToWkb for Twhere
T: GeozeroGeometry,
source§fn to_wkb_dialect(
&self,
dialect: WkbDialect,
dims: CoordDimensions,
srid: Option<i32>,
envelope: Vec<f64>
) -> Result<Vec<u8>, GeozeroError>
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>
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>
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>
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>
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>
fn to_mysql_wkb(&self, srid: Option<i32>) -> Result<Vec<u8>, GeozeroError>
Convert to MySQL WKB.
source§impl<T> ToWkt for Twhere
T: GeozeroGeometry,
impl<T> ToWkt for Twhere
T: GeozeroGeometry,
source§fn to_wkt_ndim(&self, dims: CoordDimensions) -> Result<String, GeozeroError>
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>
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.