-
Notifications
You must be signed in to change notification settings - Fork 32
Improve GeoParquet support #148
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
base: aykut/infer-columns
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #148 +/- ##
==========================================
- Coverage 90.81% 88.95% -1.87%
==========================================
Files 91 93 +2
Lines 10368 10855 +487
==========================================
+ Hits 9416 9656 +240
- Misses 952 1199 +247 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
7c33662 to
da6ea5a
Compare
|
great work 👍 I tested this successfully. The only stuff I had to patch to make gpq validate happy was: diff --git a/src/type_compat/geometry.rs b/src/type_compat/geometry.rs
index 795a3b3..be28339 100644
--- a/src/type_compat/geometry.rs
+++ b/src/type_compat/geometry.rs
@@ -136,8 +136,11 @@ pub(crate) struct GeometryColumn {
pub(crate) encoding: GeometryEncoding,
pub(crate) geometry_types: Vec<GeometryType>,
pub(crate) crs: Option<serde_json::Value>, // e.g. "EPSG:4326" in pproj format
+ #[serde(skip_serializing_if = "Option::is_none")]
pub(crate) orientation: Option<GeometryOrientation>,
+ #[serde(skip_serializing_if = "Option::is_none")]
pub(crate) edges: Option<GeometryEdgeType>,
+ #[serde(skip_serializing_if = "Option::is_none")]
pub(crate) bbox: Option<GeometryBbox>,
}The gpq validation was complaining: I can push the modification / open another MR with the rebase and this patch if you want. |
sure, feel free to complete todos. |
da6ea5a to
e06de11
Compare
24e09cd to
02c8d79
Compare
02c8d79 to
ff904c4
Compare
New metadata fields: We write other metadata info (crs, orientation, edges, bbox) in the GeoParquet spec. Currently, we can only write
EPSG:4326as crs.Fix: previously, we were writing geometry_types wrong. According to the spec, in the same geometry column, we might have multiple different type of geometry objects but we assumed that we always have a single type.
Geography type: Write metadata for postgis geography type as well in addition to geometry type.
TODOS:
Closes #132.