PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ LWGEOM_makepoint3dm()

Datum LWGEOM_makepoint3dm ( PG_FUNCTION_ARGS  )

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

2139 {
2140  double x,y,m;
2141  LWPOINT *point;
2142  GSERIALIZED *result;
2143 
2144  POSTGIS_DEBUG(2, "LWGEOM_makepoint3dm called.");
2145 
2146  x = PG_GETARG_FLOAT8(0);
2147  y = PG_GETARG_FLOAT8(1);
2148  m = PG_GETARG_FLOAT8(2);
2149 
2150  point = lwpoint_make3dm(SRID_UNKNOWN, x, y, m);
2151  result = geometry_serialize((LWGEOM *)point);
2152 
2153  PG_RETURN_POINTER(result);
2154 }
LWPOINT * lwpoint_make3dm(int srid, double x, double y, double m)
Definition: lwpoint.c:184
#define SRID_UNKNOWN
Unknown SRID value.
Definition: liblwgeom.h:188
GSERIALIZED * geometry_serialize(LWGEOM *lwgeom)
Here is the call graph for this function:
Here is the caller graph for this function: