Skip to content
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

Add a function shapes_to_geojson #33

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Add a function shapes_to_geojson #33

wants to merge 6 commits into from

Conversation

k034b363
Copy link
Contributor

Describe your changes
This function takes a Napari viewer object's shapes layer and saves out a geojson with the geometries from the shapes layer. This is useful for downstream analysis involving rasterstats and also for parallelization with reuse of shape files.

Functions similarly to points_to_geojson but for shapes.

Type of update
Is this a:

  • New feature or feature enhancement

For the reviewer
See this page for instructions on how to review the pull request.

  • PR functionality reviewed in a Jupyter Notebook
  • All tests pass
  • Test coverage remains 100%
  • Documentation tested
  • New documentation pages added to plantcv-geospatial/mkdocs.yml
  • Changes to function input/output signatures added to changelog.md
  • Code reviewed
  • PR approved

Copy link

deepsource-io bot commented Jan 29, 2025

Here's the code health analysis summary for commits f8cc49f..9ed6582. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource Python LogoPython✅ SuccessView Check ↗
DeepSource Test coverage LogoTest coverage✅ SuccessView Check ↗

Code Coverage Report

MetricAggregatePython
Branch Coverage100%100%
Composite Coverage100%100%
Line Coverage100%100%
New Branch Coverage100%100%
New Composite Coverage100%100%
New Line Coverage100%100%

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ready to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant