PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ lwpoly_same()

char lwpoly_same ( const LWPOLY p1,
const LWPOLY p2 
)

Definition at line 338 of file lwpoly.c.

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

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

Referenced by lwgeom_same().

Here is the call graph for this function:
Here is the caller graph for this function: