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

◆ lwpoint_construct_empty()

LWPOINT * lwpoint_construct_empty ( int32_t  srid,
char  hasz,
char  hasm 
)

Definition at line 151 of file lwpoint.c.

152{
153 LWPOINT *result = lwalloc(sizeof(LWPOINT));
154 result->type = POINTTYPE;
155 result->flags = lwflags(hasz, hasm, 0);
156 result->srid = srid;
157 result->point = ptarray_construct(hasz, hasm, 0);
158 result->bbox = NULL;
159 return result;
160}
char result[OUT_DOUBLE_BUFFER_SIZE]
Definition cu_print.c:267
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
Definition liblwgeom.h:102
void * lwalloc(size_t size)
Definition lwutil.c:227
lwflags_t lwflags(int hasz, int hasm, int geodetic)
Construct a new flags bitmask.
Definition lwutil.c:477
POINTARRAY * ptarray_construct(char hasz, char hasm, uint32_t npoints)
Construct an empty pointarray, allocating storage and setting the npoints, but not filling in any inf...
Definition ptarray.c:51

References lwalloc(), lwflags(), POINTTYPE, ptarray_construct(), and result.

Referenced by GeneratePointGeometry(), GEOS2LWGEOM(), lwgeom_centroid(), lwgeom_construct_empty(), lwgeom_filter_m(), lwgeom_pointonsurface(), lwline_interpolate_point_3d(), lwmpoint_median(), lwpoint_force_dims(), lwpoint_from_twkb_state(), lwpoint_from_wkb_state(), parse_gml_point(), postgis_valid_typmod(), read_geos_from_partition(), read_lwgeom_from_partition(), SFCGAL2LWGEOM(), ST_LargestEmptyCircle(), ST_MaximumInscribedCircle(), ST_MinimumBoundingCircle(), ST_MinimumBoundingRadius(), and wkt_parser_point_new().

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