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