470{
471 int type1, type2, rv;
476
478
481
483 {
484 elog(ERROR,"This function only accepts LINESTRING as arguments.");
485 PG_RETURN_NULL();
486 }
487
490
492
493 PG_FREE_IF_COPY(geom1, 0);
494 PG_FREE_IF_COPY(geom2, 1);
495
496 PG_RETURN_INT32(rv);
497
498}
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)