PostGIS  2.5.2dev-r@@SVN_REVISION@@

◆ LWGEOM_makepoint3dm()

Datum LWGEOM_makepoint3dm ( PG_FUNCTION_ARGS  )

Definition at line 2145 of file lwgeom_functions_basic.c.

References geometry_serialize(), LWGEOM_addpoint(), lwpoint_make3dm(), PG_FUNCTION_INFO_V1(), SRID_UNKNOWN, pixval::x, and pixval::y.

Referenced by LWGEOM_makepoint().

2146 {
2147  double x,y,m;
2148  LWPOINT *point;
2149  GSERIALIZED *result;
2150 
2151  POSTGIS_DEBUG(2, "LWGEOM_makepoint3dm called.");
2152 
2153  x = PG_GETARG_FLOAT8(0);
2154  y = PG_GETARG_FLOAT8(1);
2155  m = PG_GETARG_FLOAT8(2);
2156 
2157  point = lwpoint_make3dm(SRID_UNKNOWN, x, y, m);
2158  result = geometry_serialize((LWGEOM *)point);
2159 
2160  PG_RETURN_POINTER(result);
2161 }
LWPOINT * lwpoint_make3dm(int srid, double x, double y, double m)
Definition: lwpoint.c:184
#define SRID_UNKNOWN
Unknown SRID value.
Definition: liblwgeom.h:187
GSERIALIZED * geometry_serialize(LWGEOM *lwgeom)
Here is the call graph for this function:
Here is the caller graph for this function: