PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ resample_text_to_type()

static rt_resample_type resample_text_to_type ( text *  txt)
static

Definition at line 142 of file rtpg_pixel.c.

143 {
144  char *resample = asc_tolower(VARDATA(txt), VARSIZE_ANY_EXHDR(txt));
145  if (strncmp(resample, "bilinear", 8) == 0)
146  return RT_BILINEAR;
147  else if (strncmp(resample, "nearest", 7) == 0)
148  return RT_NEAREST;
149  else {
150  elog(ERROR, "Unknown resample type '%s' requested", resample);
151  }
152  pfree(resample);
153  return RT_NEAREST;
154 }
@ RT_BILINEAR
Definition: librtcore.h:1452
@ RT_NEAREST
Definition: librtcore.h:1451

References RT_BILINEAR, and RT_NEAREST.

Referenced by RASTER_getGeometryValues(), and RASTER_getPixelValueResample().

Here is the caller graph for this function: