Adrian Tofting

Results 12 issues of Adrian Tofting

First off, I love the ease of use of this project! I am trying to multiprocess the reading of an image (using [rasterio](https://rasterio.readthedocs.io/en/stable/topics/windowed-rw.html). Each row in my dataframe will read...

bug

Fix #1330 RasterDatasets may contain nodata regions due to projecting all file to the same CRS, and due to eventual inherit nodata regions in the images. When IntersectionDataset joins this...

datasets
samplers

### Summary Lets the user balance positives and negatives, sampled from IntersectionDataset of RastersDataset and VectorDataset. ### Rationale May help reduce bias and increase generalisation. The [RandomGeoSampler](https://torchgeo.readthedocs.io/en/latest/api/samplers.html#random-geo-sampler) currently does not...

samplers

https://github.com/microsoft/torchgeo/blob/9e57f278188ca36348ce8d5c30d5ae2acb19107c/torchgeo/datasets/geo.py#L363-L367 [GDAL virtual file systems](https://gdal.org/user/virtual_file_systems.html) such as reading directly from Google Buckets (`/vsigs/`) are natively supported by rasterio (through gdal). ```python with rasterio.open("/vsigs/my_bucket/.../my_image.tif") as src: src.read() # etc. ``` The...

datasets

Fix #1398 Fix #1165 This PR remove blockers for reading raster files directly from [Cloud Storage (buckets)](https://gdal.org/user/virtual_file_systems.html) and other GDAL Virtual File Systems.

datasets
testing
dependencies

> Now that `train.py` supports both training and inference, I think we should close this PR. I think the best path forward is to modify `predict_step` in our trainers to...

trainers

We experienced that the resulting bounding box of the intersection between hits (files) had `minx > maxx`. This may be because the VectorDatasets consist of points, and the intersection between...

datasets
samplers

This PR is my best effort to add utility methods for checking if a file or vsi exists, and if it is a directory. (I have no expereince with Pyrex...

Fix #3009 Makes it possible for users to customise reprojection logic with minimal overrides. Assumption is that the same reprojection is intended both during `__init__` and `__getitem__`.

datasets

This will make testing in #2903 much simpler. Temporarily storing raster bounds as footprint in the metadata file. To compute the actual valid footprint it will need the new method...

testing