Convert cstring name to GDAL Resample Algorithm.
- Parameters
-
algname | : cstring name to convert |
- Returns
- valid GDAL resampling algorithm
Definition at line 91 of file rt_util.c.
Referenced by RASTER_GDALWarp().
92 assert(algname != NULL && strlen(algname) > 0);
94 if (strcmp(algname,
"NEARESTNEIGHBOUR") == 0)
95 return GRA_NearestNeighbour;
96 else if (strcmp(algname,
"NEARESTNEIGHBOR") == 0)
97 return GRA_NearestNeighbour;
98 else if (strcmp(algname,
"BILINEAR") == 0)
100 else if (strcmp(algname,
"CUBICSPLINE") == 0)
101 return GRA_CubicSpline;
102 else if (strcmp(algname,
"CUBIC") == 0)
104 else if (strcmp(algname,
"LANCZOS") == 0)
107 return GRA_NearestNeighbour;