PostGIS  3.0.0dev-r@@SVN_REVISION@@

◆ LWGEOM_makepoint3dm()

Datum LWGEOM_makepoint3dm ( PG_FUNCTION_ARGS  )

Definition at line 2144 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().

2145 {
2146  double x,y,m;
2147  LWPOINT *point;
2148  GSERIALIZED *result;
2149 
2150  POSTGIS_DEBUG(2, "LWGEOM_makepoint3dm called.");
2151 
2152  x = PG_GETARG_FLOAT8(0);
2153  y = PG_GETARG_FLOAT8(1);
2154  m = PG_GETARG_FLOAT8(2);
2155 
2156  point = lwpoint_make3dm(SRID_UNKNOWN, x, y, m);
2157  result = geometry_serialize((LWGEOM *)point);
2158 
2159  PG_RETURN_POINTER(result);
2160 }
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: