azavea / raster-vision

An open source library and framework for deep learning on satellite and aerial imagery.
https://docs.rastervision.io
Other
2.03k stars 380 forks source link

Add `MultiRasterSource.from_stac()` constructor #2156

Closed AdeelH closed 1 month ago

AdeelH commented 1 month ago

Overview

This PR adds a .from_stac() constructor to MultiRasterSource, as an alternative to XarraySource.from_stac(). This constructor creates a RasterioSource for each asset and puts all raster sources together into a MultiRasterSource.

Checklist

Notes

Testing Instructions

See new unit tests.

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 90.10%. Comparing base (4a613e8) to head (f75fe95).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2156 +/- ## ========================================== + Coverage 90.08% 90.10% +0.01% ========================================== Files 197 197 Lines 9855 9874 +19 ========================================== + Hits 8878 8897 +19 Misses 977 977 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.