Skip to content

Commit

Permalink
Added new required nSizeOfStructure in gdal gridding options for GDAL…
Browse files Browse the repository at this point in the history
… v>=3.6
  • Loading branch information
rcb547 committed Apr 22, 2024
1 parent 8cf0277 commit 6cf0633
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ctlinedata2slicegrids.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,11 @@ class cSliceGridder {
}

GDALGridInverseDistanceToAPowerOptions* poOptions = new GDALGridInverseDistanceToAPowerOptions();
#if defined(GDAL_COMPUTE_VERSION)
#if GDAL_VERSION_NUM >= GDAL_COMPUTE_VERSION(3,6,0,0)
poOptions->nSizeOfStructure = sizeof(GDALGridInverseDistanceToAPowerOptions);
#endif
#endif
poOptions->dfPower = 2;
poOptions->dfRadius1 = GO.searchradius;
poOptions->dfRadius2 = GO.searchradius;
Expand Down

0 comments on commit 6cf0633

Please sign in to comment.