This is an automated email from the ASF dual-hosted git repository.
asf-gitbox-commits pushed a commit to branch geoapi-4.0
in repository https://gitbox.apache.org/repos/asf/sis.git
The following commit(s) were added to refs/heads/geoapi-4.0 by this push:
new ccd08e213e Fix a wrong handling of subsampling in the HEIF reader.
ccd08e213e is described below
commit ccd08e213e1d99dd279a60e5141175433a591cf5
Author: Martin Desruisseaux <[email protected]>
AuthorDate: Tue Jul 7 00:36:22 2026 +0200
Fix a wrong handling of subsampling in the HEIF reader.
---
.../main/org/apache/sis/storage/geoheif/ImageResource.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git
a/incubator/src/org.apache.sis.storage.geoheif/main/org/apache/sis/storage/geoheif/ImageResource.java
b/incubator/src/org.apache.sis.storage.geoheif/main/org/apache/sis/storage/geoheif/ImageResource.java
index 9d7d56d382..2e205ae0a0 100644
---
a/incubator/src/org.apache.sis.storage.geoheif/main/org/apache/sis/storage/geoheif/ImageResource.java
+++
b/incubator/src/org.apache.sis.storage.geoheif/main/org/apache/sis/storage/geoheif/ImageResource.java
@@ -375,7 +375,7 @@ final class ImageResource extends TiledGridCoverageResource
implements StoreReso
/**
* Iterator over the tiles to read.
*/
- private final AOI iterator;
+ private final Snapshot iterator;
/**
* The image readers created for reading the tiles.
@@ -454,8 +454,9 @@ final class ImageResource extends TiledGridCoverageResource
implements StoreReso
final Raster getRegionInsideTile(final Region.Builder builder,
final SampleModel sampleModel)
{
- if (iterator.getRegionInsideTile(builder.regionLower,
builder.regionUpper, builder.subsampling, true)) {
+ if (iterator.getRegionInsideTile(builder.regionLower,
builder.regionUpper, builder.subsampling, false)) {
builder.pixelsToSampleValues(sampleModel);
+ iterator.fireTileReadStarted();
return null;
}
return
TilePlaceholder.empty(sampleModel).create(iterator.getTileLocation());