pub struct PyGeoChunkedArray { /* private fields */ }Expand description
Python wrapper for a chunked GeoArrow geometry array.
A chunked array is a collection of contiguous arrays of the same type.
Implementations§
Source§impl PyGeoChunkedArray
impl PyGeoChunkedArray
Sourcepub fn try_new(
chunks: Vec<Arc<dyn GeoArrowArray>>,
data_type: GeoArrowType,
) -> PyResult<Self>
pub fn try_new( chunks: Vec<Arc<dyn GeoArrowArray>>, data_type: GeoArrowType, ) -> PyResult<Self>
Construct a new PyGeoChunkedArray from existing chunks and a field.
Sourcepub fn from_arrow_pycapsule(
capsule: &Bound<'_, PyCapsule>,
) -> PyGeoArrowResult<Self>
pub fn from_arrow_pycapsule( capsule: &Bound<'_, PyCapsule>, ) -> PyGeoArrowResult<Self>
Import from a raw Arrow C Stream capsule
Sourcepub fn to_geoarrow<'py>(
&'py self,
py: Python<'py>,
) -> PyResult<Bound<'py, PyAny>>
pub fn to_geoarrow<'py>( &'py self, py: Python<'py>, ) -> PyResult<Bound<'py, PyAny>>
Export to a geoarrow.rust.core.GeometryArray.
This requires that you depend on geoarrow-rust-core from your Python package.
Sourcepub fn from_arrays(
chunks: Vec<Arc<dyn GeoArrowArray>>,
) -> PyGeoArrowResult<Self>
pub fn from_arrays( chunks: Vec<Arc<dyn GeoArrowArray>>, ) -> PyGeoArrowResult<Self>
Create a new PyChunkedArray from a vec of ArrayRefs, inferring their data type automatically.
Sourcepub fn into_inner(self) -> (Vec<Arc<dyn GeoArrowArray>>, GeoArrowType)
pub fn into_inner(self) -> (Vec<Arc<dyn GeoArrowArray>>, GeoArrowType)
Consume this wrapper and return the underlying chunks and data type.
Trait Implementations§
Source§impl<'py> FromPyObject<'_, 'py> for PyGeoChunkedArray
impl<'py> FromPyObject<'_, 'py> for PyGeoChunkedArray
Source§impl<'py> IntoPyObject<'py> for PyGeoChunkedArray
impl<'py> IntoPyObject<'py> for PyGeoChunkedArray
Source§type Target = PyGeoChunkedArray
type Target = PyGeoChunkedArray
Source§type Output = Bound<'py, <PyGeoChunkedArray as IntoPyObject<'py>>::Target>
type Output = Bound<'py, <PyGeoChunkedArray as IntoPyObject<'py>>::Target>
Source§fn into_pyobject(
self,
py: Python<'py>,
) -> Result<<Self as IntoPyObject<'_>>::Output, <Self as IntoPyObject<'_>>::Error>
fn into_pyobject( self, py: Python<'py>, ) -> Result<<Self as IntoPyObject<'_>>::Output, <Self as IntoPyObject<'_>>::Error>
Source§impl PyClass for PyGeoChunkedArray
impl PyClass for PyGeoChunkedArray
Source§impl PyClassBaseType for PyGeoChunkedArray
impl PyClassBaseType for PyGeoChunkedArray
type LayoutAsBase = <PyGeoChunkedArray as PyClassImpl>::Layout
type BaseNativeType = <PyGeoChunkedArray as PyClassImpl>::BaseNativeType
type Initializer = PyClassInitializer<PyGeoChunkedArray>
type PyClassMutability = <PyGeoChunkedArray as PyClassImpl>::PyClassMutability
Source§type Layout<T: PyClassImpl> = <<PyGeoChunkedArray as PyClassBaseType>::BaseNativeType as PyClassBaseType>::Layout<T>
type Layout<T: PyClassImpl> = <<PyGeoChunkedArray as PyClassBaseType>::BaseNativeType as PyClassBaseType>::Layout<T>
Source§impl PyClassImpl for PyGeoChunkedArray
impl PyClassImpl for PyGeoChunkedArray
Source§const IS_BASETYPE: bool = true
const IS_BASETYPE: bool = true
Source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
Source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
Source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
Source§const IS_IMMUTABLE_TYPE: bool = false
const IS_IMMUTABLE_TYPE: bool = false
Source§const RAW_DOC: &'static CStr = /// Python wrapper for a chunked GeoArrow geometry array.
///
/// A chunked array is a collection of contiguous arrays of the same type.
const RAW_DOC: &'static CStr = /// Python wrapper for a chunked GeoArrow geometry array. /// /// A chunked array is a collection of contiguous arrays of the same type.
Source§const DOC: &'static CStr
const DOC: &'static CStr
text_signature if a constructor is defined. Read moreSource§type Layout = <<PyGeoChunkedArray as PyClassImpl>::BaseNativeType as PyClassBaseType>::Layout<PyGeoChunkedArray>
type Layout = <<PyGeoChunkedArray as PyClassImpl>::BaseNativeType as PyClassBaseType>::Layout<PyGeoChunkedArray>
Source§type ThreadChecker = NoopThreadChecker
type ThreadChecker = NoopThreadChecker
Source§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::ImmutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::ImmutableChild
Source§type BaseNativeType = PyAny
type BaseNativeType = PyAny
PyAny by default, and when you declare
#[pyclass(extends=PyDict)], it’s PyDict.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
Source§fn dict_offset() -> Option<PyObjectOffset>
fn dict_offset() -> Option<PyObjectOffset>
Source§fn weaklist_offset() -> Option<PyObjectOffset>
fn weaklist_offset() -> Option<PyObjectOffset>
Source§impl PyClassNewTextSignature for PyGeoChunkedArray
impl PyClassNewTextSignature for PyGeoChunkedArray
const TEXT_SIGNATURE: &'static str = "(arrays, type=None)"
Source§impl PyClass__eq__SlotFragment<PyGeoChunkedArray> for PyClassImplCollector<PyGeoChunkedArray>
impl PyClass__eq__SlotFragment<PyGeoChunkedArray> for PyClassImplCollector<PyGeoChunkedArray>
Source§impl PyMethods<PyGeoChunkedArray> for PyClassImplCollector<PyGeoChunkedArray>
impl PyMethods<PyGeoChunkedArray> for PyClassImplCollector<PyGeoChunkedArray>
fn py_methods(self) -> &'static PyClassItems
Source§impl PyTypeInfo for PyGeoChunkedArray
impl PyTypeInfo for PyGeoChunkedArray
Source§const NAME: &str = <Self as ::pyo3::PyClass>::NAME
const NAME: &str = <Self as ::pyo3::PyClass>::NAME
prefer using ::type_object(py).name() to get the correct runtime value
Source§const MODULE: Option<&str> = <Self as ::pyo3::impl_::pyclass::PyClassImpl>::MODULE
const MODULE: Option<&str> = <Self as ::pyo3::impl_::pyclass::PyClassImpl>::MODULE
prefer using ::type_object(py).module() to get the correct runtime value
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Source§fn type_object(py: Python<'_>) -> Bound<'_, PyType>
fn type_object(py: Python<'_>) -> Bound<'_, PyType>
Source§impl TryFrom<PyArrayReader> for PyGeoChunkedArray
impl TryFrom<PyArrayReader> for PyGeoChunkedArray
Source§type Error = PyGeoArrowError
type Error = PyGeoArrowError
Source§impl TryFrom<PyChunkedArray> for PyGeoChunkedArray
impl TryFrom<PyChunkedArray> for PyGeoChunkedArray
Source§type Error = PyGeoArrowError
type Error = PyGeoArrowError
impl DerefToPyAny for PyGeoChunkedArray
impl ExtractPyClassWithClone for PyGeoChunkedArray
Auto Trait Implementations§
impl Freeze for PyGeoChunkedArray
impl !RefUnwindSafe for PyGeoChunkedArray
impl Send for PyGeoChunkedArray
impl Sync for PyGeoChunkedArray
impl Unpin for PyGeoChunkedArray
impl UnsafeUnpin for PyGeoChunkedArray
impl !UnwindSafe for PyGeoChunkedArray
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
Source§fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
self into an owned Python object, dropping type information.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PyErrArguments for T
impl<T> PyErrArguments for T
Source§impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
Source§const NAME: &'static str = T::NAME
const NAME: &'static str = T::NAME
Use ::classinfo_object() instead and format the type name at runtime. Note that using built-in cast features is often better than manual PyTypeCheck usage.