PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ rt_util_extent_type()

rt_extenttype rt_util_extent_type ( const char *  name)

Definition at line 191 of file rt_util.c.

References ET_CUSTOM, ET_FIRST, ET_INTERSECTION, ET_LAST, ET_SECOND, and ET_UNION.

Referenced by RASTER_mapAlgebra2(), RASTER_nMapAlgebra(), and RASTER_nMapAlgebraExpr().

191  {
192  assert(name != NULL && strlen(name) > 0);
193 
194  if (strcmp(name, "UNION") == 0)
195  return ET_UNION;
196  else if (strcmp(name, "FIRST") == 0)
197  return ET_FIRST;
198  else if (strcmp(name, "SECOND") == 0)
199  return ET_SECOND;
200  else if (strcmp(name, "LAST") == 0)
201  return ET_LAST;
202  else if (strcmp(name, "CUSTOM") == 0)
203  return ET_CUSTOM;
204  else
205  return ET_INTERSECTION;
206 }
Here is the caller graph for this function: