PostGIS  2.5.0dev-r@@SVN_REVISION@@

◆ rt_util_same_geotransform_matrix()

int rt_util_same_geotransform_matrix ( double *  gt1,
double *  gt2 
)

Definition at line 487 of file rt_util.c.

References FALSE, FLT_NEQ, and TRUE.

Referenced by RASTER_union_transfn().

487  {
488  int k = 0;
489 
490  if (gt1 == NULL || gt2 == NULL)
491  return FALSE;
492 
493  for (k = 0; k < 6; k++) {
494  if (FLT_NEQ(gt1[k], gt2[k]))
495  return FALSE;
496  }
497 
498  return TRUE;
499 }
#define FLT_NEQ(x, y)
Definition: librtcore.h:2213
#define FALSE
Definition: dbfopen.c:168
#define TRUE
Definition: dbfopen.c:169
Here is the caller graph for this function: