PostGIS
2.4.9dev-r@@SVN_REVISION@@
|
POINTARRAY* ptarray_construct_reference_data | ( | char | hasz, |
char | hasm, | ||
uint32_t | npoints, | ||
uint8_t * | ptlist | ||
) |
Build a new POINTARRAY, but on top of someone else's ordinate array.
Construct a new POINTARRAY, referencing to the data from ptlist.
Flag as read-only, so that ptarray_free() does not free the serialized_ptlist
Definition at line 295 of file ptarray.c.
References POINTARRAY::flags, FLAGS_SET_READONLY, gflags(), lwalloc(), LWDEBUGF, POINTARRAY::maxpoints, POINTARRAY::npoints, and POINTARRAY::serialized_pointlist.
Referenced by lwcircstring_from_gserialized_buffer(), lwcircstring_from_lwmpoint(), lwcircstring_from_lwpointarray(), lwline_from_gserialized_buffer(), lwpoint_from_gserialized_buffer(), lwpoly_from_gserialized_buffer(), lwtriangle_from_gserialized_buffer(), and test_gbox_from_spherical_coordinates().