PostGIS  2.1.10dev-r@@SVN_REVISION@@
int ptarray_is_closed_2d ( const POINTARRAY pa)

Definition at line 672 of file ptarray.c.

References getPoint_internal(), and POINTARRAY::npoints.

Referenced by lwcircstring_is_closed(), lwline_is_closed(), lwpoly_from_lwlines(), lwpoly_from_wkb_state(), lwpoly_is_closed(), lwtriangle_from_lwline(), parse_gml_linearring(), parse_gml_patch(), parse_gml_polygon(), parse_gml_triangle(), parse_kml_polygon(), ptarray_close2d(), ptarray_is_closed_z(), and wkt_parser_polygon_add_ring().

673 {
674  return 0 == memcmp(getPoint_internal(in, 0), getPoint_internal(in, in->npoints-1), sizeof(POINT2D));
675 }
uint8_t * getPoint_internal(const POINTARRAY *pa, int n)
Definition: ptarray.c:1645

Here is the call graph for this function:

Here is the caller graph for this function: