PostGIS  2.5.0dev-r@@SVN_REVISION@@
char lwpoly_same ( const LWPOLY p1,
const LWPOLY p2 
)

Definition at line 337 of file lwpoly.c.

References LWPOLY::nrings, ptarray_same(), and LWPOLY::rings.

Referenced by lwgeom_same().

338 {
339  uint32_t i;
340 
341  if ( p1->nrings != p2->nrings ) return 0;
342  for (i=0; i<p1->nrings; i++)
343  {
344  if ( ! ptarray_same(p1->rings[i], p2->rings[i]) )
345  return 0;
346  }
347  return 1;
348 }
char ptarray_same(const POINTARRAY *pa1, const POINTARRAY *pa2)
Definition: ptarray.c:478
uint32_t nrings
Definition: liblwgeom.h:454
unsigned int uint32_t
Definition: uthash.h:78
POINTARRAY ** rings
Definition: liblwgeom.h:456

Here is the call graph for this function:

Here is the caller graph for this function: