You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was looking at the cbf dataset, specifically just using the British Columbia data and encountered ValueError: No valid geometry objects found for rasterize. Looking at the VectorDataset class, this occurs when the shapes list is empty, meaning that the query finds a hit for a file, but there are no geometries that survive the filtering based on the query, and then masks = rasterio.features.rasterize( shapes, out_shape=(int(height), int(width)), transform=transform )
fails.
The text was updated successfully, but these errors were encountered:
Not entirely sure what to do about this. I guess we could check to see if shapes is empty and return a Tensor of all "nodata" pixel values in this case? Is that a reliable way to determine the background value?
I was looking at the cbf dataset, specifically just using the British Columbia data and encountered
ValueError: No valid geometry objects found for rasterize
. Looking at the VectorDataset class, this occurs when the shapes list is empty, meaning that the query finds a hit for a file, but there are no geometries that survive the filtering based on the query, and thenmasks = rasterio.features.rasterize( shapes, out_shape=(int(height), int(width)), transform=transform )
fails.
The text was updated successfully, but these errors were encountered: