- 
                Notifications
    
You must be signed in to change notification settings  - Fork 42
 
Add conversion between shapely and cf for polygons #495
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
Conversation
for more information, see https://pre-commit.ci
          Codecov ReportAttention:  
 
 Additional details and impacted files@@           Coverage Diff           @@
##             main     #495   +/-   ##
=======================================
  Coverage   85.78%   85.78%           
=======================================
  Files          13       13           
  Lines        2279     2364   +85     
  Branches      172      183   +11     
=======================================
+ Hits         1955     2028   +73     
- Misses        294      303    +9     
- Partials       30       33    +3     
 Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry.  | 
    
for more information, see https://pre-commit.ci
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.
Nice! I don't have much to say, this looks clean!
The typo in the tests made me think about invalid polygons, but I guess we don't really care at this level ? The invalidity is simply being translated from one format to the other, not our fault.
Co-authored-by: Pascal Bourgault <bourgault.pascal@ouranos.ca>
| 
           Ok @dcherian I think this one is good to go!  | 
    
| 
           Thanks Julia! Can we have you on board as a maintainer please/  | 
    
This is a follow up to #460 now with polygons!
There is a slight wrinkle in that unlike shapely cf doesn't seem to associate particular holes with particular polygons. I am kind of assuming that the order will be interleaved exterior and interior rings. This seem to match the examples that I've seen.