Convert cstring name to GDAL Resample Algorithm.
93 {
94 assert(algname != NULL && strlen(algname) > 0);
95
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)
101 return GRA_Bilinear;
102 else if (strcmp(algname, "CUBICSPLINE") == 0)
103 return GRA_CubicSpline;
104 else if (strcmp(algname, "CUBIC") == 0)
105 return GRA_Cubic;
106 else if (strcmp(algname, "LANCZOS") == 0)
107 return GRA_Lanczos;
108
109 return GRA_NearestNeighbour;
110}