PostGIS  2.5.1dev-r@@SVN_REVISION@@

◆ compare_by_envarea()

static int compare_by_envarea ( const void *  g1,
const void *  g2 
)
static

Definition at line 937 of file liblwgeom/lwgeom_geos.c.

References Face_t::envarea.

Referenced by findFaceHoles().

938 {
939  Face* f1 = *(Face**)g1;
940  Face* f2 = *(Face**)g2;
941  double n1 = f1->envarea;
942  double n2 = f2->envarea;
943 
944  if (n1 < n2) return 1;
945  if (n1 > n2) return -1;
946  return 0;
947 }
Here is the caller graph for this function: