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

Band.from_rasterio() check for Path or URL objects and raise and error depending on the status of USE_STAC #9

Open
lukasValentin opened this issue Nov 11, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@lukasValentin
Copy link
Collaborator

Currently E:earth_africa:dal does not check if the user passes a "real" file-system path or an URL when reading raster data using Band.from_rasterio() (same for the Band.read_pixels method). If, e.g., USE_STAC = True and a file-system path is passed, this raises an error not properly handled at the moment.

The idea would be to check for the status of the USE_STAC flag and check if the data type of the passed input dataset matches it.

@lukasValentin lukasValentin added the enhancement New feature or request label Nov 11, 2022
@lukasValentin lukasValentin self-assigned this Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant