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

◆ ptarray_construct()

POINTARRAY * ptarray_construct ( char  hasz,
char  hasm,
uint32_t  npoints 
)
extern

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 51 of file ptarray.c.

52{
53 POINTARRAY *pa = ptarray_construct_empty(hasz, hasm, npoints);
54 pa->npoints = npoints;
55 return pa;
56}
POINTARRAY * ptarray_construct_empty(char hasz, char hasm, uint32_t maxpoints)
Create a new POINTARRAY with no points.
Definition ptarray.c:59
uint32_t npoints
Definition liblwgeom.h:427

References POINTARRAY::npoints, and ptarray_construct_empty().

Referenced by _lwt_FindFaceContainingRing(), box3d_transform(), circstring_from_pa(), geography_interpolate_points(), hexagon(), init_cg_suite(), linestring_from_pa(), lwcircstring_from_gserialized1_buffer(), lwcircstring_from_gserialized2_buffer(), lwcircstring_from_lwpointarray(), LWGEOM_dumpsegments(), lwgeom_split_wrapx(), lwline_clip_to_ordinate_range(), lwline_from_gserialized1_buffer(), lwline_from_gserialized2_buffer(), lwline_from_lwmpoint(), lwline_interpolate_points(), lwline_measured_from_lwline(), lwpoint_construct_empty(), lwpoint_from_gserialized1_buffer(), lwpoint_from_gserialized2_buffer(), lwpoint_from_wkb_state(), lwtriangle_from_gserialized1_buffer(), lwtriangle_from_gserialized2_buffer(), parse_gml_curve(), ptarray_addPoint(), ptarray_filterm(), ptarray_from_GEOSCoordSeq(), ptarray_from_SFCGAL(), ptarray_from_twkb_state(), ptarray_from_wkb_state(), ptarray_merge(), ptarray_removePoint(), ptarray_scroll_in_place(), 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().

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