-
Notifications
You must be signed in to change notification settings - Fork 18
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
Forman 148 subset by geometry #150
Conversation
* `mask_dataset_by_geometry(dataset, geometry_like)` clip and mask a dataset by geometry * `clip_dataset_by_geometry(dataset, geometry_like)` just clip a dataset by geometry * `convert_geometry(geometry_like)` convert a geometry-like into a shapely geometry * Renamed type `Geometry` into `GeometryLike` * Fixed clipping of datasets (clip bounds were by 1 too large in x,y directions) * Fixed conversion of geometry-like objects if GeoJSON dicts were passed * Added a lot of missing tests, adapted tests Closes #148
Codecov Report
@@ Coverage Diff @@
## master #150 +/- ##
==========================================
+ Coverage 85.62% 85.67% +0.04%
==========================================
Files 72 72
Lines 6743 6812 +69
==========================================
+ Hits 5774 5836 +62
- Misses 969 976 +7
Continue to review full report at Codecov.
|
You load a feature or feature collection, not a geometry. |
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.
Thanks for the changes!
xcube.api
:mask_dataset_by_geometry(dataset, geometry_like)
clip and mask a dataset by geometryclip_dataset_by_geometry(dataset, geometry_like)
just clip a dataset by geometryconvert_geometry(geometry_like)
convert a geometry-like into a shapely geometryGeometry
intoGeometryLike
Closes #148
@AliceBalfanz to merge this PR asap
Sorry, the PR became quite large.