437 int type1, type2, rv;
450 elog(ERROR,
"This function only accepts LINESTRING as arguments.");
459 PG_FREE_IF_COPY(geom1, 0);
460 PG_FREE_IF_COPY(geom2, 1);
int32_t gserialized_get_srid(const GSERIALIZED *s)
Extract the SRID from the serialized form (it is packed into three bytes so this is a handy function)...
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
uint32_t gserialized_get_type(const GSERIALIZED *s)
Extract the geometry type from the serialized form (it hides in the anonymous data area,...
LWLINE * lwgeom_as_lwline(const LWGEOM *lwgeom)
int lwline_crossing_direction(const LWLINE *l1, const LWLINE *l2)
Given two lines, characterize how (and if) they cross each other.
void error_if_srid_mismatch(int srid1, int srid2)