Skip to content

Commit

Permalink
Unknown type native array
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Nov 25, 2024
1 parent e38f0d9 commit a1ffa28
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions rust/geoarrow/src/array/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ pub(crate) mod offset_builder;
pub(crate) mod point;
pub(crate) mod polygon;
pub(crate) mod rect;
pub(crate) mod unknown;
pub(crate) mod util;
pub(crate) mod wkt;

Expand Down
14 changes: 14 additions & 0 deletions rust/geoarrow/src/array/unknown/array.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
use std::sync::Arc;

use crate::array::metadata::ArrayMetadata;
use crate::array::MixedGeometryArray;
use crate::datatypes::NativeType;

pub struct UnknownGeometryArray {
data_type: NativeType,

pub(crate) metadata: Arc<ArrayMetadata>,

xy: MixedGeometryArray,
xyz: MixedGeometryArray,
}
1 change: 1 addition & 0 deletions rust/geoarrow/src/array/unknown/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub(crate) mod array;
4 changes: 4 additions & 0 deletions rust/geoarrow/src/datatypes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ pub enum NativeType {
/// Represents a [RectArray][crate::array::RectArray] or
/// [ChunkedRectArray][crate::chunked_array::ChunkedRectArray].
Rect(Dimension),

/// Represents a [UnknownGeometryArray][crate::array::UnknownGeometryArray] or
/// [ChunkedUnknownGeometryArray][crate::chunked_array::ChunkedUnknownGeometryArray].
Unknown(CoordType),
}

/// A type enum representing "serialized" GeoArrow geometry types.
Expand Down

0 comments on commit a1ffa28

Please sign in to comment.