-
Notifications
You must be signed in to change notification settings - Fork 26
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
[c++/python] SOMAGeometryDataFrame
basic write
#3687
base: main
Are you sure you want to change the base?
Conversation
…oordinate space objects
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3687 +/- ##
==========================================
+ Coverage 86.31% 86.37% +0.06%
==========================================
Files 55 55
Lines 6495 6524 +29
==========================================
+ Hits 5606 5635 +29
Misses 889 889
Flags with carried forward coverage won't be shown. Click here to find out more.
|
SOMAGeometryDataFrame
basic write [WIP]SOMAGeometryDataFrame
basic write
@@ -311,6 +314,17 @@ def __init__( | |||
|
|||
# Data operations | |||
|
|||
def __len__(self) -> int: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very convenient! But (AFAIK) not implemented for the other dataframe classes.
Might be worth doing for the other dataframe classes (as a separate PR).
return self | ||
|
||
# Write helpers with automatic transformations | ||
def from_outlines( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I know what an 'outline' is?
@@ -0,0 +1,87 @@ | |||
/** | |||
* @file managed_query.cc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
copypasta
* | ||
* @section DESCRIPTION | ||
* | ||
* This file defines the ManagedQuery bindings. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
copypasta
Issue and/or context:
Changes:
Notes for Reviewer:
This PR moves the helper methods transforming from polygon outlines to WKB encoded geometry into a separate class. Adds a basic transformer pipeline and exposes it to the python API and adds helper methods to the python API for ingesting with a transformation.
The C++
GeometryDataFrame
cleanup will happen after updating all read and write operations withManagedQuery