PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ LWGEOM_makepoint3dm()

Datum LWGEOM_makepoint3dm ( PG_FUNCTION_ARGS  )

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

2170 {
2171  double x,y,m;
2172  LWPOINT *point;
2173  GSERIALIZED *result;
2174 
2175  POSTGIS_DEBUG(2, "LWGEOM_makepoint3dm called.");
2176 
2177  x = PG_GETARG_FLOAT8(0);
2178  y = PG_GETARG_FLOAT8(1);
2179  m = PG_GETARG_FLOAT8(2);
2180 
2181  point = lwpoint_make3dm(SRID_UNKNOWN, x, y, m);
2182  result = geometry_serialize((LWGEOM *)point);
2183 
2184  PG_RETURN_POINTER(result);
2185 }
LWPOINT * lwpoint_make3dm(int srid, double x, double y, double m)
Definition: lwpoint.c:166
#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: