PostGIS  2.5.0beta2dev-r@@SVN_REVISION@@

◆ compare_by_envarea()

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

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

References Face_t::envarea.

Referenced by findFaceHoles().

1031 {
1032  Face* f1 = *(Face**)g1;
1033  Face* f2 = *(Face**)g2;
1034  double n1 = f1->envarea;
1035  double n2 = f2->envarea;
1036 
1037  if (n1 < n2) return 1;
1038  if (n1 > n2) return -1;
1039  return 0;
1040 }
Here is the caller graph for this function: