sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ama...@apache.org
Subject [sis] 01/02: fix(NetCDF): Remove subsampling doublon when preparing grid geometry for reading.
Date Mon, 05 Aug 2019 11:59:35 GMT
This is an automated email from the ASF dual-hosted git repository.

amanin pushed a commit to branch geoapi-4.0
in repository https://gitbox.apache.org/repos/asf/sis.git

commit e7a95a2c215cc08d62e9f5d6d0158dc5f0d1da70
Author: Alexis Manin <alexis.manin@gmail.com>
AuthorDate: Mon Aug 5 13:47:14 2019 +0200

    fix(NetCDF): Remove subsampling doublon when preparing grid geometry for reading.
---
 .../src/main/java/org/apache/sis/internal/netcdf/RasterResource.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/storage/sis-netcdf/src/main/java/org/apache/sis/internal/netcdf/RasterResource.java
b/storage/sis-netcdf/src/main/java/org/apache/sis/internal/netcdf/RasterResource.java
index 908f8dc..6a7c949 100644
--- a/storage/sis-netcdf/src/main/java/org/apache/sis/internal/netcdf/RasterResource.java
+++ b/storage/sis-netcdf/src/main/java/org/apache/sis/internal/netcdf/RasterResource.java
@@ -570,7 +570,7 @@ public final class RasterResource extends AbstractGridResource implements
Resour
             GridExtent areaOfInterest = targetGeometry.getIntersection();           // Pixel
indices of data to read.
             int[]      subsamplings   = targetGeometry.getSubsamplings();           // Slice
to read or subsampling to apply.
             int        numBuffers     = bands.length;                               // By
default, one variable per band.
-            domain = targetGeometry.subsample(subsamplings).build();                // Adjust
user-specified domain to data geometry.
+            domain = targetGeometry.build();                                        // Adjust
user-specified domain to data geometry.
             if (bandDimension >= 0) {
                 areaOfInterest = rangeIndices.insertBandDimension(areaOfInterest, bandDimension);
                 subsamplings   = rangeIndices.insertSubsampling  (subsamplings,   bandDimension);


Mime
View raw message