Skip to content

Commit

Permalink
Fix type_ids in GeometryArray::from (#940)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron authored Dec 11, 2024
1 parent faf51d9 commit f307960
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions rust/geoarrow/src/array/geometry/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -956,18 +956,18 @@ macro_rules! impl_to_geometry_array {
}

impl_to_geometry_array!(PointArray, 1, 11, point_xy, point_xyz);
impl_to_geometry_array!(LineStringArray, 1, 11, line_string_xy, line_string_xy);
impl_to_geometry_array!(PolygonArray, 1, 11, polygon_xy, polygon_xyz);
impl_to_geometry_array!(MultiPointArray, 1, 11, mpoint_xy, mpoint_xyz);
impl_to_geometry_array!(LineStringArray, 2, 12, line_string_xy, line_string_xy);
impl_to_geometry_array!(PolygonArray, 3, 13, polygon_xy, polygon_xyz);
impl_to_geometry_array!(MultiPointArray, 4, 14, mpoint_xy, mpoint_xyz);
impl_to_geometry_array!(
MultiLineStringArray,
1,
11,
5,
15,
mline_string_xy,
mline_string_xyz
);
impl_to_geometry_array!(MultiPolygonArray, 1, 11, mpolygon_xy, mpolygon_xyz);
impl_to_geometry_array!(GeometryCollectionArray, 1, 11, gc_xy, gc_xyz);
impl_to_geometry_array!(MultiPolygonArray, 6, 16, mpolygon_xy, mpolygon_xyz);
impl_to_geometry_array!(GeometryCollectionArray, 7, 17, gc_xy, gc_xyz);

impl From<MixedGeometryArray> for GeometryArray {
fn from(value: MixedGeometryArray) -> Self {
Expand Down

0 comments on commit f307960

Please sign in to comment.