476{
477 int type1, type2, rv;
482
484
487
489 {
490 elog(ERROR,"This function only accepts LINESTRING as arguments.");
491 PG_RETURN_NULL();
492 }
493
496
498
499 PG_FREE_IF_COPY(geom1, 0);
500 PG_FREE_IF_COPY(geom2, 1);
501
502 PG_RETURN_INT32(rv);
503
504}
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,...
int lwline_crossing_direction(const LWLINE *l1, const LWLINE *l2)
Given two lines, characterize how (and if) they cross each other.
LWLINE * lwgeom_as_lwline(const LWGEOM *lwgeom)