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 had been thinking of having GDALNoDataMaskBand read the requested window into a memory dataset at full resolution, reclassify the values to 0 or 255, and then read from the in-memory dataset to the appropriate buffer size. This requires reading the entire window into memory at full resolution, which may be undesirable.
Alternatively, I've been thinking for a while about how it would be useful to have a VRT that easily does reclassification. (I guess this is possible as a VRT expression, but I'm thinking of something specific to this purpose.) Supposing such a VRT existed, it seems straightforward to for GDALNoDataMaskBand to construct a VRT that reads from its parent band, reclassifying the NoData value as 0 and everything else as 255. We could then read from this band into the appropriate buffer size.
Originally posted by @dbaston in #12172 (comment)
Some discussion in the linked PR.
The text was updated successfully, but these errors were encountered: