PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwpoly_same()

char lwpoly_same ( const LWPOLY p1,
const LWPOLY p2 
)

Definition at line 347 of file lwpoly.c.

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

Referenced by lwgeom_same().

348 {
349  uint32_t i;
350 
351  if ( p1->nrings != p2->nrings ) return 0;
352  for (i=0; i<p1->nrings; i++)
353  {
354  if ( ! ptarray_same(p1->rings[i], p2->rings[i]) )
355  return 0;
356  }
357  return 1;
358 }
unsigned int uint32_t
Definition: uthash.h:78
POINTARRAY ** rings
Definition: liblwgeom.h:457
int nrings
Definition: liblwgeom.h:455
char ptarray_same(const POINTARRAY *pa1, const POINTARRAY *pa2)
Definition: ptarray.c:479
Here is the call graph for this function:
Here is the caller graph for this function: