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

Definition at line 229 of file lwpoly.c.

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

Referenced by lwgeom_same().

230 {
231  uint32_t i;
232 
233  if ( p1->nrings != p2->nrings ) return 0;
234  for (i=0; i<p1->nrings; i++)
235  {
236  if ( ! ptarray_same(p1->rings[i], p2->rings[i]) )
237  return 0;
238  }
239  return 1;
240 }
POINTARRAY ** rings
Definition: liblwgeom.h:413
int nrings
Definition: liblwgeom.h:411
char ptarray_same(const POINTARRAY *pa1, const POINTARRAY *pa2)
Definition: ptarray.c:443

Here is the call graph for this function:

Here is the caller graph for this function: