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