Definition at line 72 of file geometry_inout.c.
80 geom = PG_GETARG_GSERIALIZED_P(0);
83 elog(ERROR,
"geometry_to_point only accepts Points");
92 PG_RETURN_POINT_P(point);
int gserialized_peek_first_point(const GSERIALIZED *g, POINT4D *out_point)
Pull the first point values of a GSERIALIZED.
uint32_t gserialized_get_type(const GSERIALIZED *g)
Extract the geometry type from the serialized form (it hides in the anonymous data area,...
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
References gserialized_get_type(), gserialized_peek_first_point(), LW_FAILURE, POINTTYPE, POINT4D::x, struct_point::x, POINT4D::y, and struct_point::y.