PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ ST_Point()

Datum ST_Point ( PG_FUNCTION_ARGS  )

Definition at line 2239 of file lwgeom_functions_basic.c.

2240 {
2241  double x = PG_GETARG_FLOAT8(0);
2242  double y = PG_GETARG_FLOAT8(1);
2243  int srid = PG_GETARG_INT32(2);
2244  LWPOINT *point = lwpoint_make2d(srid, x, y);
2245  GSERIALIZED *result = geometry_serialize((LWGEOM *)point);
2246  PG_RETURN_POINTER(result);
2247 }
char result[OUT_DOUBLE_BUFFER_SIZE]
Definition: cu_print.c:262
LWPOINT * lwpoint_make2d(int32_t srid, double x, double y)
Definition: lwpoint.c:163

References lwpoint_make2d(), result, pixval::x, and pixval::y.

Here is the call graph for this function: