Skip to content

Commit

Permalink
fixed bug in GeoRaster
Browse files Browse the repository at this point in the history
  • Loading branch information
elidwa committed Nov 14, 2024
1 parent 6fdfff8 commit 3a46c5e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/geo/GeoRaster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<int> 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);
}
Expand Down

0 comments on commit 3a46c5e

Please sign in to comment.