1419 POSTGIS_DEBUG(2,
"LWGEOM_line_from_mpoint called");
1422 ingeom = PG_GETARG_GSERIALIZED_P(0);
1426 elog(ERROR,
"makeline: input must be a multipoint");
1434 PG_FREE_IF_COPY(ingeom, 0);
1435 elog(ERROR,
"makeline: lwline_from_lwmpoint returned NULL");
1441 PG_FREE_IF_COPY(ingeom, 0);
1444 PG_RETURN_POINTER(
result);
char result[OUT_DOUBLE_BUFFER_SIZE]
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from 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,...
LWGEOM * lwline_as_lwgeom(const LWLINE *obj)
LWMPOINT * lwgeom_as_lwmpoint(const LWGEOM *lwgeom)
LWLINE * lwline_from_lwmpoint(int32_t srid, const LWMPOINT *mpoint)
void lwline_free(LWLINE *line)