1488{
1493
1494 POSTGIS_DEBUG(2, "LWGEOM_makeline called.");
1495
1496
1497 pglwg1 = PG_GETARG_GSERIALIZED_P(0);
1498 pglwg2 = PG_GETARG_GSERIALIZED_P(1);
1499
1502 {
1503 elog(ERROR, "Input geometries must be points or lines");
1504 PG_RETURN_NULL();
1505 }
1506
1508
1511
1513
1515
1516 PG_FREE_IF_COPY(pglwg1, 0);
1517 PG_FREE_IF_COPY(pglwg2, 1);
1520
1521 PG_RETURN_POINTER(result);
1522}
void gserialized_error_if_srid_mismatch(const GSERIALIZED *g1, const GSERIALIZED *g2, const char *funcname)
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,...
LWLINE * lwline_from_lwgeom_array(int32_t srid, uint32_t ngeoms, LWGEOM **geoms)
void lwgeom_free(LWGEOM *geom)
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
GSERIALIZED * geometry_serialize(LWGEOM *lwgeom)