You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: rust/geoarrow-array/src/array/mixed.rs
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -60,12 +60,10 @@ use crate::trait_::GeoArrowArray;
60
60
/// - 37: GeometryCollection ZM
61
61
#[derive(Debug,Clone)]
62
62
pubstructMixedGeometryArray{
63
-
// We store the coord type and dimension separately because there's no NativeType::Mixed
64
-
// variant
65
63
pub(crate)coord_type:CoordType,
66
64
pub(crate)dim:Dimension,
67
65
68
-
/// Invariant: every item in `type_ids` is `> 0 && < fields.len()` if `type_ids` are not provided. If `type_ids` exist in the NativeType, then every item in `type_ids` is `> 0 && `
66
+
/// Invariant: every item in `type_ids` is `> 0 && < fields.len()` if `type_ids` are not provided.
@@ -357,7 +367,7 @@ impl TryFrom<&Field> for GeoArrowType {
357
367
},
358
368
name => {
359
369
returnErr(GeoArrowError::General(format!(
360
-
"Expected GeoArrow native type, got '{}'.\nIf you're passing a serialized GeoArrow type like 'geoarrow.wkb' or 'geoarrow.wkt', you need to parse to a native representation.",
370
+
"Expected GeoArrow type, got '{}'.",
361
371
name
362
372
)));
363
373
}
@@ -392,9 +402,11 @@ impl TryFrom<&Field> for GeoArrowType {
_ => returnErr(GeoArrowError::General("Only FixedSizeList, Struct, Binary, LargeBinary, String, and LargeString arrays are unambigously typed for a GeoArrow type and can be used without extension metadata.\nEnsure your array input has GeoArrow metadata.".to_string())),
_ => returnErr(GeoArrowError::General("Only FixedSizeList, Struct, Binary, LargeBinary, BinaryView, String, LargeString, and StringView arrays are unambigously typed for a GeoArrow type and can be used without extension metadata.\nEnsure your array input has GeoArrow metadata.".to_string())),
0 commit comments