PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ compare_by_envarea()

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

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

References Face_t::envarea.

Referenced by findFaceHoles().

1185 {
1186  Face* f1 = *(Face**)g1;
1187  Face* f2 = *(Face**)g2;
1188  double n1 = f1->envarea;
1189  double n2 = f2->envarea;
1190 
1191  if ( n1 < n2 ) return 1;
1192  if ( n1 > n2 ) return -1;
1193  return 0;
1194 }
Here is the caller graph for this function: