PostGIS
2.4.9dev-r@@SVN_REVISION@@
|
int lwpoly_add_ring | ( | LWPOLY * | poly, |
POINTARRAY * | pa | ||
) |
Add a ring, allocating extra space if necessary.
The polygon takes ownership of the passed point array.
Add a ring, allocating extra space if necessary.
Point array will be referenced, not copied.
Definition at line 249 of file lwpoly.c.
References LW_FAILURE, LW_SUCCESS, lwrealloc(), LWPOLY::maxrings, LWPOLY::nrings, and LWPOLY::rings.
Referenced by GeneratePolygonGeometry(), geography_centroid_from_mpoly(), lwgeom_segmentize_sphere(), lwpoly_construct_circle(), lwpoly_construct_rectangle(), lwpoly_from_twkb_state(), lwpoly_from_wkb_state(), lwpoly_grid(), lwpoly_set_effective_area(), lwpoly_simplify(), parse_geojson_multipolygon(), and wkt_parser_polygon_add_ring().