Open
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. |
Member
Author
sure, feel free to complete todos. |
da6ea5a to
e06de11
Compare
24e09cd to
02c8d79
Compare
02c8d79 to
ff904c4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.