PostGIS  2.1.10dev-r@@SVN_REVISION@@
LWPOINT* lwpoint_construct_empty ( int  srid,
char  hasz,
char  hasm 

Definition at line 118 of file lwpoint.c.

References LWPOINT::bbox, LWPOINT::flags, gflags(), lwalloc(), LWPOINT::point, POINTTYPE, ptarray_construct(), result, LWPOINT::srid, and LWPOINT::type.

Referenced by centroid(), GEOS2LWGEOM(), lwgeom_construct_empty(), LWGEOM_line_interpolate_point(), lwpoint_force_dims(), parse_gml_point(), pointonsurface(), postgis_valid_typmod(), SFCGAL2LWGEOM(), and wkt_parser_point_new().

119 {
120  LWPOINT *result = lwalloc(sizeof(LWPOINT));
121  result->type = POINTTYPE;
122  result->flags = gflags(hasz, hasm, 0);
123  result->srid = srid;
124  result->point = ptarray_construct(hasz, hasm, 0);
125  result->bbox = NULL;
126  return result;
127 }
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:49
uint8_t type
Definition: liblwgeom.h:363
Definition: liblwgeom.h:367
char ** result
Definition: liblwgeom.h:218
int32_t srid
Definition: liblwgeom.h:366
uint8_t gflags(int hasz, int hasm, int geodetic)
Construct a new flags char.
Definition: g_util.c:131
uint8_t flags
Definition: liblwgeom.h:364
GBOX * bbox
Definition: liblwgeom.h:365
LWTYPE numbers, used internally by PostGIS.
Definition: liblwgeom.h:60
void * lwalloc(size_t size)
Definition: lwutil.c:175

Here is the call graph for this function:

Here is the caller graph for this function: