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

◆ lwpoint_make2d()

LWPOINT * lwpoint_make2d ( int32_t  srid,
double  x,
double  y 
)
extern

Definition at line 163 of file lwpoint.c.

164{
165 POINT4D p = {x, y, 0.0, 0.0};
166 POINTARRAY *pa = ptarray_construct_empty(0, 0, 1);
167
169 return lwpoint_construct(srid, NULL, pa);
170}
POINTARRAY * ptarray_construct_empty(char hasz, char hasm, uint32_t maxpoints)
Create a new POINTARRAY with no points.
Definition ptarray.c:59
int ptarray_append_point(POINTARRAY *pa, const POINT4D *pt, int allow_duplicates)
Append a point to the end of an existing POINTARRAY If allow_duplicate is LW_FALSE,...
Definition ptarray.c:147
#define LW_TRUE
Return types for functions with status returns.
Definition liblwgeom.h:93
LWPOINT * lwpoint_construct(int32_t srid, GBOX *bbox, POINTARRAY *point)
Definition lwpoint.c:129

References LW_TRUE, lwpoint_construct(), ptarray_append_point(), and ptarray_construct_empty().

Referenced by _lwt_FindFaceContainingRing(), BOX2D_to_LWGEOM(), cart_to_lwpoint(), geography_centroid_from_mline(), geography_point_outside(), geography_tree_closestpoint(), geography_tree_shortestline(), lw_dist2d_distanceline(), lw_dist2d_distancepoint(), LWGEOM_envelope(), LWGEOM_makepoint(), lwmpoint_median(), lwpoly_to_points(), parse_marc21(), point_from_geohash(), point_to_geometry(), rt_raster_get_convex_hull(), rt_raster_get_envelope_geom(), rt_raster_pixel_as_centroid_point(), srs_tuple_from_entry(), ST_MinimumBoundingCircle(), ST_MinimumBoundingRadius(), ST_Point(), test_itree_once(), and test_kmeans().

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