PostGIS  2.5.0dev-r@@SVN_REVISION@@

◆ compare_by_envarea()

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

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

References Face_t::envarea.

Referenced by findFaceHoles().

987 {
988  Face* f1 = *(Face**)g1;
989  Face* f2 = *(Face**)g2;
990  double n1 = f1->envarea;
991  double n2 = f2->envarea;
992 
993  if (n1 < n2) return 1;
994  if (n1 > n2) return -1;
995  return 0;
996 }
Here is the caller graph for this function: