PostGIS  2.2.7dev-r@@SVN_REVISION@@
static int compare_by_envarea ( const void *  g1,
const void *  g2 
)
static

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

References Face_t::envarea.

Referenced by findFaceHoles().

1076 {
1077  Face* f1 = *(Face**)g1;
1078  Face* f2 = *(Face**)g2;
1079  double n1 = f1->envarea;
1080  double n2 = f2->envarea;
1081 
1082  if ( n1 < n2 ) return 1;
1083  if ( n1 > n2 ) return -1;
1084  return 0;
1085 }

Here is the caller graph for this function: