PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ ST_PointZ()

Datum ST_PointZ ( PG_FUNCTION_ARGS  )

Definition at line 2216 of file lwgeom_functions_basic.c.

2217 {
2218  double x = PG_GETARG_FLOAT8(0);
2219  double y = PG_GETARG_FLOAT8(1);
2220  double z = PG_GETARG_FLOAT8(2);
2221  int srid = PG_GETARG_INT32(3);
2222  LWPOINT *point = lwpoint_make3dz(srid, x, y, z);
2223  GSERIALIZED *result = geometry_serialize((LWGEOM *)point);
2224  PG_RETURN_POINTER(result);
2225 }
char result[OUT_DOUBLE_BUFFER_SIZE]
Definition: cu_print.c:267
LWPOINT * lwpoint_make3dz(int32_t srid, double x, double y, double z)
Definition: lwpoint.c:173

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

Here is the call graph for this function: