PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ LWGEOM_makepoint3dm()

Datum LWGEOM_makepoint3dm ( PG_FUNCTION_ARGS  )

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

2110 {
2111  double x,y,m;
2112  LWPOINT *point;
2113  GSERIALIZED *result;
2114 
2115  POSTGIS_DEBUG(2, "LWGEOM_makepoint3dm called.");
2116 
2117  x = PG_GETARG_FLOAT8(0);
2118  y = PG_GETARG_FLOAT8(1);
2119  m = PG_GETARG_FLOAT8(2);
2120 
2121  point = lwpoint_make3dm(SRID_UNKNOWN, x, y, m);
2122  result = geometry_serialize((LWGEOM *)point);
2123 
2124  PG_RETURN_POINTER(result);
2125 }
LWPOINT * lwpoint_make3dm(int srid, double x, double y, double m)
Definition: lwpoint.c:153
#define SRID_UNKNOWN
Unknown SRID value.
Definition: liblwgeom.h:172
GSERIALIZED * geometry_serialize(LWGEOM *lwgeom)
Here is the call graph for this function:
Here is the caller graph for this function: