PostGIS  2.1.10dev-r@@SVN_REVISION@@
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 49 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(), 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_wkb_state(), ptarray_merge(), ptarray_remove_repeated_points(), ptarray_removePoint(), rt_raster_get_convex_hull(), rt_raster_get_perimeter(), rt_raster_pixel_as_polygon(), rt_util_envelope_to_lwpoly(), and test_lwline_clip_big().

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

Here is the call graph for this function:

Here is the caller graph for this function: