PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ rt_raster_touches()

rt_errorstate rt_raster_touches ( rt_raster  rast1,
int  nband1,
rt_raster  rast2,
int  nband2,
int *  touches 
)

Return ES_ERROR if error occurred in function.

Parameter touches returns non-zero if two rasters touch

Parameters
rast1: the first raster whose band will be tested
nband1: the 0-based band of raster rast1 to use if value is less than zero, bands are ignored. if nband1 gte zero, nband2 must be gte zero
rast2: the second raster whose band will be tested
nband2: the 0-based band of raster rast2 to use if value is less than zero, bands are ignored if nband2 gte zero, nband1 must be gte zero
touches: non-zero value if the two rasters' bands touch
Returns
ES_NONE if success, ES_ERROR if error

Definition at line 303 of file rt_spatial_relationship.c.

References GSR_TOUCHES, RASTER_DEBUG, and rt_raster_geos_spatial_relationship().

Referenced by RASTER_touches(), and test_raster_geos_touches().

307  {
308  RASTER_DEBUG(3, "Starting");
309 
311  rast1, nband1,
312  rast2, nband2,
313  GSR_TOUCHES,
314  touches
315  );
316 }
static rt_errorstate rt_raster_geos_spatial_relationship(rt_raster rast1, int nband1, rt_raster rast2, int nband2, rt_geos_spatial_test testtype, int *testresult)
Datum touches(PG_FUNCTION_ARGS)
#define RASTER_DEBUG(level, msg)
Definition: librtcore.h:295
Here is the call graph for this function:
Here is the caller graph for this function: