2581{
2584 LWGEOM *lwgeom1, *lwgeom2;
2586
2587 geom1 = PG_GETARG_GSERIALIZED_P(0);
2589 azimuth = PG_GETARG_FLOAT8(2);
2592
2593 if (!lwpoint1)
2594 lwpgerror("Argument must be POINT geometry");
2595
2597 PG_RETURN_NULL();
2598
2601 geom2 = geometry_serialize(lwgeom2);
2602 PG_RETURN_POINTER(geom2);
2603}
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
LWGEOM * lwpoint_as_lwgeom(const LWPOINT *obj)
LWPOINT * lwpoint_project(const LWPOINT *lwpoint1, double distance, double azimuth)
static LWPOINT * lwgeom_as_lwpoint(const LWGEOM *lwgeom)
static int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members)
static double distance(double x1, double y1, double x2, double y2)