Skip to content

Refactor codebase to use geoarrow_schema crate #1016

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 26 commits into from
Apr 3, 2025

Conversation

kylebarron
Copy link
Member

@kylebarron kylebarron commented Apr 3, 2025

Changes to geoarrow_schema

  • Add accessors crs_type and crs_value to Crs
  • Make CrsType and Edges Copy
  • Implement TryFrom<&Field> for Metadata
  • Add PointType::to_field and similar for all geometry types
  • Fix Geometry type not containing GeometryCollection

Change list

Post #1015

@kylebarron kylebarron changed the title Kyle/geoarrow-integration-geoarrow-schema WIP: refactor codebase to use geoarrow_schema crate Apr 3, 2025
kylebarron added a commit that referenced this pull request Apr 3, 2025
…trait (#1015)

### Change list

- Add new `geoarrow_schema` crate
- Move `CoordType`, `Dimension`, `Crs`, `Edges`, `Metadata`, to new
crate.
- Add tests for metadata serialization and deserialization
- Add new geometry-type-specific structs: BoxType,
GeometryCollectionType, GeometryType, LineStringType,
MultiLineStringType, MultiPointType, MultiPolygonType, PointType,
PolygonType, WkbType, WktType
- Implement the upstream
[`ExtensionType`](https://docs.rs/arrow-schema/latest/arrow_schema/extension/trait.ExtensionType.html)
trait for each of these new structs.


Closes #987

cc @paleolimbot 

Will probably leave for future PRs integrating this into existing
`geoarrow` code because it'll require changing our current use of
`NativeType` (see #1016 draft)
Base automatically changed from kyle/arrow-schema to main April 3, 2025 06:26
@kylebarron kylebarron changed the title WIP: refactor codebase to use geoarrow_schema crate Refactor codebase to use geoarrow_schema crate Apr 3, 2025
@kylebarron kylebarron marked this pull request as ready for review April 3, 2025 22:11
@kylebarron kylebarron enabled auto-merge (squash) April 3, 2025 22:15
@kylebarron kylebarron merged commit 722e92b into main Apr 3, 2025
21 checks passed
@kylebarron kylebarron deleted the kyle/geoarrow-integration-geoarrow-schema branch April 3, 2025 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant