PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ ptarray_construct()

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 information.

Should be used in conjunction with ptarray_set_point4d to fill in the information in the array.

Definition at line 62 of file ptarray.c.

References POINTARRAY::npoints, and ptarray_construct_empty().

Referenced by circstring_from_pa(), init_cg_suite(), linestring_from_pa(), lwcircstring_from_gserialized_buffer(), LWGEOM_line_interpolate_point(), lwgeom_project_spheroid(), lwgeom_split_wrapx(), lwline_clip_to_ordinate_range(), lwline_from_gserialized_buffer(), lwline_from_lwmpoint(), lwline_measured_from_lwline(), lwpoint_construct_empty(), lwpoint_from_gserialized_buffer(), lwpoint_from_wkb_state(), lwtriangle_from_gserialized_buffer(), parse_gml_curve(), ptarray_addPoint(), ptarray_from_GEOSCoordSeq(), ptarray_from_SFCGAL(), ptarray_from_twkb_state(), ptarray_from_wkb_state(), ptarray_merge(), ptarray_removePoint(), rt_raster_get_convex_hull(), rt_raster_get_envelope_geom(), rt_raster_get_perimeter(), rt_raster_pixel_as_polygon(), rt_util_envelope_to_lwpoly(), and test_lwline_clip_big().

63 {
64  POINTARRAY *pa = ptarray_construct_empty(hasz, hasm, npoints);
65  pa->npoints = npoints;
66  return pa;
67 }
int npoints
Definition: liblwgeom.h:371
POINTARRAY * ptarray_construct_empty(char hasz, char hasm, uint32_t maxpoints)
Create a new POINTARRAY with no points.
Definition: ptarray.c:70
Here is the call graph for this function:
Here is the caller graph for this function: