Struct geoarrow::array::MixedGeometryArray
source · pub struct MixedGeometryArray<O: OffsetSizeTrait> { /* private fields */ }
Expand description
Invariants
- All arrays must have the same dimension
- All arrays must have the same coordinate layout (interleaved or separated)
Implementations§
source§impl<O: OffsetSizeTrait> MixedGeometryArray<O>
impl<O: OffsetSizeTrait> MixedGeometryArray<O>
sourcepub fn new(
type_ids: ScalarBuffer<i8>,
offsets: ScalarBuffer<i32>,
points: Option<PointArray>,
line_strings: Option<LineStringArray<O>>,
polygons: Option<PolygonArray<O>>,
multi_points: Option<MultiPointArray<O>>,
multi_line_strings: Option<MultiLineStringArray<O>>,
multi_polygons: Option<MultiPolygonArray<O>>,
metadata: Arc<ArrayMetadata>
) -> Self
pub fn new( type_ids: ScalarBuffer<i8>, offsets: ScalarBuffer<i32>, points: Option<PointArray>, line_strings: Option<LineStringArray<O>>, polygons: Option<PolygonArray<O>>, multi_points: Option<MultiPointArray<O>>, multi_line_strings: Option<MultiLineStringArray<O>>, multi_polygons: Option<MultiPolygonArray<O>>, metadata: Arc<ArrayMetadata> ) -> Self
Create a new MixedGeometryArray from parts
Implementation
This function is O(1)
.
Panics
- if the validity is not
None
and its length is different from the number of geometries - if the largest geometry offset does not match the number of coordinates
sourcepub fn buffer_lengths(&self) -> MixedCapacity
pub fn buffer_lengths(&self) -> MixedCapacity
The lengths of each buffer contained in this array.
pub fn has_points(&self) -> bool
pub fn has_line_strings(&self) -> bool
pub fn has_polygons(&self) -> bool
pub fn has_multi_points(&self) -> bool
pub fn has_multi_line_strings(&self) -> bool
pub fn has_multi_polygons(&self) -> bool
source§impl<O: OffsetSizeTrait> MixedGeometryArray<O>
impl<O: OffsetSizeTrait> MixedGeometryArray<O>
sourcepub fn iter_geo_values(&self) -> impl Iterator<Item = Geometry> + '_
pub fn iter_geo_values(&self) -> impl Iterator<Item = Geometry> + '_
Iterator over geo Geometry objects, not looking at validity
sourcepub fn iter_geo(&self) -> impl Iterator<Item = Option<Geometry>> + '_
pub fn iter_geo(&self) -> impl Iterator<Item = Option<Geometry>> + '_
Iterator over geo Geometry objects, taking into account validity
sourcepub fn value_as_geos(&self, i: usize) -> Geometry<'_>
pub fn value_as_geos(&self, i: usize) -> Geometry<'_>
Returns the value at slot i
as a GEOS geometry.
sourcepub fn get_as_geos(&self, i: usize) -> Option<Geometry<'_>>
pub fn get_as_geos(&self, i: usize) -> Option<Geometry<'_>>
Gets the value at slot i
as a GEOS geometry, additionally checking the validity bitmap
sourcepub fn iter_geos_values(&self) -> impl Iterator<Item = Geometry<'_>> + '_
pub fn iter_geos_values(&self) -> impl Iterator<Item = Geometry<'_>> + '_
Iterator over GEOS geometry objects
source§impl<'a, O: OffsetSizeTrait> MixedGeometryArray<O>
impl<'a, O: OffsetSizeTrait> MixedGeometryArray<O>
sourcepub fn iter(&'a self) -> MixedGeometryArrayIter<'_, O> ⓘ
pub fn iter(&'a self) -> MixedGeometryArrayIter<'_, O> ⓘ
Returns an iterator of Option<Geometry>
Trait Implementations§
source§impl<O: OffsetSizeTrait> AffineOps<&[AffineTransform]> for MixedGeometryArray<O>
impl<O: OffsetSizeTrait> AffineOps<&[AffineTransform]> for MixedGeometryArray<O>
type Output = MixedGeometryArray<O>
source§fn affine_transform(&self, transform: &[AffineTransform]) -> Self::Output
fn affine_transform(&self, transform: &[AffineTransform]) -> Self::Output
Apply
transform
immutably, outputting a new geometry.source§impl<O: OffsetSizeTrait> AffineOps<&AffineTransform> for MixedGeometryArray<O>
impl<O: OffsetSizeTrait> AffineOps<&AffineTransform> for MixedGeometryArray<O>
type Output = MixedGeometryArray<O>
source§fn affine_transform(&self, transform: &AffineTransform) -> Self::Output
fn affine_transform(&self, transform: &AffineTransform) -> Self::Output
Apply
transform
immutably, outputting a new geometry.source§impl<O: OffsetSizeTrait> Area for MixedGeometryArray<O>
impl<O: OffsetSizeTrait> Area for MixedGeometryArray<O>
type Output = PrimitiveArray<Float64Type>
fn signed_area(&self) -> Self::Output
fn unsigned_area(&self) -> Self::Output
source§impl<O: OffsetSizeTrait> Area for MixedGeometryArray<O>
impl<O: OffsetSizeTrait> Area for MixedGeometryArray<O>
type Output = Result<PrimitiveArray<Float64Type>, GeoArrowError>
fn area(&self) -> Self::Output
source§impl<O: OffsetSizeTrait> BoundingRect for MixedGeometryArray<O>
impl<O: OffsetSizeTrait> BoundingRect for MixedGeometryArray<O>
source§impl<O: OffsetSizeTrait> Cast for MixedGeometryArray<O>
impl<O: OffsetSizeTrait> Cast for MixedGeometryArray<O>
source§fn cast(&self, to_type: &GeoDataType) -> Self::Output
fn cast(&self, to_type: &GeoDataType) -> Self::Output
TODO: in the future, do more validation before trying to fill all geometries
type Output = Result<Arc<dyn GeometryArrayTrait>, GeoArrowError>
source§impl<O: OffsetSizeTrait> Center for MixedGeometryArray<O>
impl<O: OffsetSizeTrait> Center for MixedGeometryArray<O>
source§impl<O: OffsetSizeTrait> Centroid for MixedGeometryArray<O>
impl<O: OffsetSizeTrait> Centroid for MixedGeometryArray<O>
type Output = PointArray
source§impl<O: OffsetSizeTrait> ChamberlainDuquetteArea for MixedGeometryArray<O>
impl<O: OffsetSizeTrait> ChamberlainDuquetteArea for MixedGeometryArray<O>
type Output = PrimitiveArray<Float64Type>
fn chamberlain_duquette_signed_area(&self) -> Self::Output
fn chamberlain_duquette_unsigned_area(&self) -> Self::Output
source§impl<O: Clone + OffsetSizeTrait> Clone for MixedGeometryArray<O>
impl<O: Clone + OffsetSizeTrait> Clone for MixedGeometryArray<O>
source§fn clone(&self) -> MixedGeometryArray<O>
fn clone(&self) -> MixedGeometryArray<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<O: OffsetSizeTrait, O2: OffsetSizeTrait> ConvexHull<O> for MixedGeometryArray<O2>
impl<O: OffsetSizeTrait, O2: OffsetSizeTrait> ConvexHull<O> for MixedGeometryArray<O2>
type Output = PolygonArray<O>
fn convex_hull(&self) -> Self::Output
source§impl<O: Debug + OffsetSizeTrait> Debug for MixedGeometryArray<O>
impl<O: Debug + OffsetSizeTrait> Debug for MixedGeometryArray<O>
source§impl<O: OffsetSizeTrait> Default for MixedGeometryArray<O>
impl<O: OffsetSizeTrait> Default for MixedGeometryArray<O>
Default to an empty array
source§impl<O: OffsetSizeTrait> Downcast for MixedGeometryArray<O>
impl<O: OffsetSizeTrait> Downcast for MixedGeometryArray<O>
type Output = Arc<dyn GeometryArrayTrait>
source§fn downcasted_data_type(&self, small_offsets: bool) -> GeoDataType
fn downcasted_data_type(&self, small_offsets: bool) -> GeoDataType
The data type that downcasting would result in.
source§impl<A: OffsetSizeTrait, B: OffsetSizeTrait> From<&MixedGeometryArray<A>> for WKBArray<B>
impl<A: OffsetSizeTrait, B: OffsetSizeTrait> From<&MixedGeometryArray<A>> for WKBArray<B>
source§fn from(value: &MixedGeometryArray<A>) -> Self
fn from(value: &MixedGeometryArray<A>) -> Self
Converts to this type from the input type.
source§impl From<MixedGeometryArray<i32>> for MixedGeometryArray<i64>
impl From<MixedGeometryArray<i32>> for MixedGeometryArray<i64>
source§fn from(value: MixedGeometryArray<i32>) -> Self
fn from(value: MixedGeometryArray<i32>) -> Self
Converts to this type from the input type.
source§impl<O: OffsetSizeTrait> From<MixedGeometryBuilder<O>> for MixedGeometryArray<O>
impl<O: OffsetSizeTrait> From<MixedGeometryBuilder<O>> for MixedGeometryArray<O>
source§fn from(other: MixedGeometryBuilder<O>) -> Self
fn from(other: MixedGeometryBuilder<O>) -> Self
Converts to this type from the input type.
source§impl<OOutput: OffsetSizeTrait> FromEWKB for MixedGeometryArray<OOutput>
impl<OOutput: OffsetSizeTrait> FromEWKB for MixedGeometryArray<OOutput>
type Input<O: OffsetSizeTrait> = WKBArray<O>
fn from_ewkb<O: OffsetSizeTrait>( arr: &Self::Input<O>, coord_type: CoordType, metadata: Arc<ArrayMetadata>, prefer_multi: bool ) -> Result<Self>
source§impl<OOutput: OffsetSizeTrait> FromWKB for MixedGeometryArray<OOutput>
impl<OOutput: OffsetSizeTrait> FromWKB for MixedGeometryArray<OOutput>
source§impl<OOutput: OffsetSizeTrait> FromWKT for MixedGeometryArray<OOutput>
impl<OOutput: OffsetSizeTrait> FromWKT for MixedGeometryArray<OOutput>
type Input<O: OffsetSizeTrait> = GenericByteArray<GenericStringType<O>>
fn from_wkt<O: OffsetSizeTrait>( arr: &Self::Input<O>, coord_type: CoordType, metadata: Arc<ArrayMetadata>, prefer_multi: bool ) -> Result<Self>
source§impl<O: OffsetSizeTrait> GeodesicArea for MixedGeometryArray<O>
impl<O: OffsetSizeTrait> GeodesicArea for MixedGeometryArray<O>
type OutputSingle = PrimitiveArray<Float64Type>
type OutputDouble = (PrimitiveArray<Float64Type>, PrimitiveArray<Float64Type>)
source§fn geodesic_perimeter(&self) -> Self::OutputSingle
fn geodesic_perimeter(&self) -> Self::OutputSingle
Determine the perimeter of a geometry on an ellipsoidal model of the earth. Read more
source§fn geodesic_area_signed(&self) -> Self::OutputSingle
fn geodesic_area_signed(&self) -> Self::OutputSingle
Determine the area of a geometry on an ellipsoidal model of the earth. Read more
source§fn geodesic_area_unsigned(&self) -> Self::OutputSingle
fn geodesic_area_unsigned(&self) -> Self::OutputSingle
Determine the area of a geometry on an ellipsoidal model of the earth. Supports very large geometries that cover a significant portion of the earth. Read more
source§fn geodesic_perimeter_area_signed(&self) -> Self::OutputDouble
fn geodesic_perimeter_area_signed(&self) -> Self::OutputDouble
Determine the perimeter and area of a geometry on an ellipsoidal model of the earth, all in one operation. Read more
source§fn geodesic_perimeter_area_unsigned(&self) -> Self::OutputDouble
fn geodesic_perimeter_area_unsigned(&self) -> Self::OutputDouble
Determine the perimeter and area of a geometry on an ellipsoidal model of the earth, all in one operation. Supports very large geometries that cover a significant portion of the earth. Read more
source§impl<'a, O: OffsetSizeTrait> GeometryArrayAccessor<'a> for MixedGeometryArray<O>
impl<'a, O: OffsetSizeTrait> GeometryArrayAccessor<'a> for MixedGeometryArray<O>
§type Item = Geometry<'a, O>
type Item = Geometry<'a, O>
The geoarrow scalar object for this geometry array type.
source§unsafe fn value_unchecked(&'a self, index: usize) -> Self::Item
unsafe fn value_unchecked(&'a self, index: usize) -> Self::Item
Returns the element at index
i
Read moresource§fn get(&'a self, index: usize) -> Option<Self::Item>
fn get(&'a self, index: usize) -> Option<Self::Item>
Access the value at slot
i
as an Arrow scalar, considering validity.source§impl<O: OffsetSizeTrait> GeometryArraySelfMethods for MixedGeometryArray<O>
impl<O: OffsetSizeTrait> GeometryArraySelfMethods for MixedGeometryArray<O>
source§fn slice(&self, offset: usize, length: usize) -> Self
fn slice(&self, offset: usize, length: usize) -> Self
Slices this MixedGeometryArray
in place.
Implementation
This operation is O(F)
where F
is the number of fields.
Panic
This function panics iff offset + length >= self.len()
.
source§fn with_coords(self, _coords: CoordBuffer) -> Self
fn with_coords(self, _coords: CoordBuffer) -> Self
Create a new array with replaced coordinates Read more
source§fn into_coord_type(self, _coord_type: CoordType) -> Self
fn into_coord_type(self, _coord_type: CoordType) -> Self
Cast the coordinate buffer of this geometry array to the given coordinate type.
source§fn owned_slice(&self, _offset: usize, _length: usize) -> Self
fn owned_slice(&self, _offset: usize, _length: usize) -> Self
A slice that fully copies the contents of the underlying buffer
source§impl<O: OffsetSizeTrait> GeometryArrayTrait for MixedGeometryArray<O>
impl<O: OffsetSizeTrait> GeometryArrayTrait for MixedGeometryArray<O>
source§fn validity(&self) -> Option<&NullBuffer>
fn validity(&self) -> Option<&NullBuffer>
Returns the optional validity.
source§fn data_type(&self) -> &GeoDataType
fn data_type(&self) -> &GeoDataType
Returns a reference to the
GeoDataType
of this array. Read moresource§fn storage_type(&self) -> DataType
fn storage_type(&self) -> DataType
Get the logical DataType of this array.
source§fn extension_field(&self) -> Arc<Field>
fn extension_field(&self) -> Arc<Field>
Get the extension type of this array, as defined by the GeoArrow
specification. Read more
source§fn extension_name(&self) -> &str
fn extension_name(&self) -> &str
Get the extension name of this array.
source§fn into_array_ref(self) -> Arc<dyn Array>
fn into_array_ref(self) -> Arc<dyn Array>
fn to_array_ref(&self) -> ArrayRef
source§fn coord_type(&self) -> CoordType
fn coord_type(&self) -> CoordType
Get the coordinate type of this geometry array, either interleaved or separated.
fn metadata(&self) -> Arc<ArrayMetadata>
fn as_ref(&self) -> &dyn GeometryArrayTrait
fn nulls(&self) -> Option<&NullBuffer>
fn logical_nulls(&self) -> Option<NullBuffer>
source§fn null_count(&self) -> usize
fn null_count(&self) -> usize
The number of null slots in this array. Read more
source§impl<O: OffsetSizeTrait> GeozeroGeometry for MixedGeometryArray<O>
impl<O: OffsetSizeTrait> GeozeroGeometry for MixedGeometryArray<O>
source§impl<O: OffsetSizeTrait> HasDimensions for MixedGeometryArray<O>
impl<O: OffsetSizeTrait> HasDimensions for MixedGeometryArray<O>
source§impl<O: OffsetSizeTrait> IntoArrow for MixedGeometryArray<O>
impl<O: OffsetSizeTrait> IntoArrow for MixedGeometryArray<O>
type ArrowArray = UnionArray
fn into_arrow(self) -> Self::ArrowArray
source§impl<O: OffsetSizeTrait> IsRing for MixedGeometryArray<O>
impl<O: OffsetSizeTrait> IsRing for MixedGeometryArray<O>
type Output = Result<BooleanArray, GeoArrowError>
fn is_ring(&self) -> Self::Output
source§impl<O: OffsetSizeTrait> IsValid for MixedGeometryArray<O>
impl<O: OffsetSizeTrait> IsValid for MixedGeometryArray<O>
source§impl<OOutput: OffsetSizeTrait, OInput: OffsetSizeTrait> MinimumRotatedRect<OOutput> for MixedGeometryArray<OInput>
impl<OOutput: OffsetSizeTrait, OInput: OffsetSizeTrait> MinimumRotatedRect<OOutput> for MixedGeometryArray<OInput>
type Output = PolygonArray<OOutput>
fn minimum_rotated_rect(&self) -> Self::Output
source§impl<O: PartialEq + OffsetSizeTrait> PartialEq for MixedGeometryArray<O>
impl<O: PartialEq + OffsetSizeTrait> PartialEq for MixedGeometryArray<O>
source§fn eq(&self, other: &MixedGeometryArray<O>) -> bool
fn eq(&self, other: &MixedGeometryArray<O>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a, O: OffsetSizeTrait> RTree<'a> for MixedGeometryArray<O>
impl<'a, O: OffsetSizeTrait> RTree<'a> for MixedGeometryArray<O>
§type RTreeObject = CachedEnvelope<Geometry<'a, O>>
type RTreeObject = CachedEnvelope<Geometry<'a, O>>
The object type to store in the RTree.
source§fn rstar_tree(&'a self) -> RTree<Self::RTreeObject>
fn rstar_tree(&'a self) -> RTree<Self::RTreeObject>
Build an
RTree
spatial index containing this array’s geometries.source§impl<O: OffsetSizeTrait> Rechunk for MixedGeometryArray<O>
impl<O: OffsetSizeTrait> Rechunk for MixedGeometryArray<O>
type Output = Result<ChunkedGeometryArray<MixedGeometryArray<O>>, GeoArrowError>
fn rechunk(&self, ranges: &[Range<usize>]) -> Self::Output
source§impl<O: OffsetSizeTrait> Take for MixedGeometryArray<O>
impl<O: OffsetSizeTrait> Take for MixedGeometryArray<O>
type Output = Result<MixedGeometryArray<O>, GeoArrowError>
fn take(&self, indices: &UInt32Array) -> Self::Output
fn take_range(&self, range: &Range<usize>) -> Self::Output
source§impl<O: OffsetSizeTrait, G: GeometryTrait<T = f64>> TryFrom<&[G]> for MixedGeometryArray<O>
impl<O: OffsetSizeTrait, G: GeometryTrait<T = f64>> TryFrom<&[G]> for MixedGeometryArray<O>
source§impl<O: OffsetSizeTrait, G: GeometryTrait<T = f64>> TryFrom<&[Option<G>]> for MixedGeometryArray<O>
impl<O: OffsetSizeTrait, G: GeometryTrait<T = f64>> TryFrom<&[Option<G>]> for MixedGeometryArray<O>
source§impl TryFrom<&UnionArray> for MixedGeometryArray<i32>
impl TryFrom<&UnionArray> for MixedGeometryArray<i32>
§type Error = GeoArrowError
type Error = GeoArrowError
The type returned in the event of a conversion error.
source§impl TryFrom<&UnionArray> for MixedGeometryArray<i64>
impl TryFrom<&UnionArray> for MixedGeometryArray<i64>
§type Error = GeoArrowError
type Error = GeoArrowError
The type returned in the event of a conversion error.
source§impl TryFrom<MixedGeometryArray<i64>> for MixedGeometryArray<i32>
impl TryFrom<MixedGeometryArray<i64>> for MixedGeometryArray<i32>
§type Error = GeoArrowError
type Error = GeoArrowError
The type returned in the event of a conversion error.
source§impl<O: OffsetSizeTrait> TryFrom<WKBArray<O>> for MixedGeometryArray<O>
impl<O: OffsetSizeTrait> TryFrom<WKBArray<O>> for MixedGeometryArray<O>
impl<O: OffsetSizeTrait> StructuralPartialEq for MixedGeometryArray<O>
Auto Trait Implementations§
impl<O> RefUnwindSafe for MixedGeometryArray<O>where
O: RefUnwindSafe,
impl<O> Send for MixedGeometryArray<O>
impl<O> Sync for MixedGeometryArray<O>
impl<O> Unpin for MixedGeometryArray<O>where
O: Unpin,
impl<O> UnwindSafe for MixedGeometryArray<O>where
O: UnwindSafe,
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.