From 3a46c5ec0ad0cfcc6cf47c9bc3fe09e5121a90bc Mon Sep 17 00:00:00 2001 From: Eric Lidwa Date: Thu, 14 Nov 2024 21:08:47 +0000 Subject: [PATCH] fixed bug in GeoRaster --- packages/geo/GeoRaster.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/geo/GeoRaster.cpp b/packages/geo/GeoRaster.cpp index ffd5f028..c73e3487 100644 --- a/packages/geo/GeoRaster.cpp +++ b/packages/geo/GeoRaster.cpp @@ -87,12 +87,11 @@ uint32_t GeoRaster::getSamples(const MathLib::point_3d_t& point, int64_t gps, Li lockSampling(); try { - OGRPoint ogr_point(point.x, point.y, point.z); - std::vector bands; getInnerBands(&raster, bands); for(const int bandNum : bands) { + OGRPoint ogr_point(point.x, point.y, point.z); RasterSample* sample = raster.samplePOI(&ogr_point, bandNum); if(sample) slist.add(sample); }