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