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

◆ lwpoly_construct_empty()

LWPOLY * lwpoly_construct_empty ( int32_t  srid,
char  hasz,
char  hasm 
)
extern

Definition at line 161 of file lwpoly.c.

162{
163 LWPOLY *result = lwalloc(sizeof(LWPOLY));
164 result->type = POLYGONTYPE;
165 result->flags = lwflags(hasz,hasm,0);
166 result->srid = srid;
167 result->nrings = 0;
168 result->maxrings = 1; /* Allocate room for ring, just in case. */
169 result->rings = lwalloc(result->maxrings * sizeof(POINTARRAY*));
170 result->bbox = NULL;
171 return result;
172}
char result[OUT_DOUBLE_BUFFER_SIZE]
Definition cu_print.c:267
void * lwalloc(size_t size)
Definition lwutil.c:227
#define POLYGONTYPE
Definition liblwgeom.h:104
lwflags_t lwflags(int hasz, int hasm, int geodetic)
Construct a new flags bitmask.
Definition lwutil.c:477

References lwalloc(), lwflags(), POLYGONTYPE, and result.

Referenced by _lwt_FaceByEdges(), buffer(), GeneratePolygonGeometry(), geography_centroid_from_mpoly(), GEOS2LWGEOM(), lwgeom_buildarea(), lwgeom_construct_empty(), lwgeom_filter_m(), lwgeom_segmentize_sphere(), lwpoly_chaikin(), lwpoly_clip_to_ordinate_range(), lwpoly_construct_circle(), lwpoly_construct_rectangle(), lwpoly_filterm(), lwpoly_force_dims(), lwpoly_from_twkb_state(), lwpoly_from_wkb_state(), lwpoly_set_effective_area(), lwt_GetFaceGeometry(), parse_geojson_poly_rings(), parse_gml_polygon(), SFCGAL2LWGEOM(), wkt_parser_polygon_finalize(), and wkt_parser_polygon_new().

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