PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ make_geos_segment()

GEOSGeometry * make_geos_segment ( double  x1,
double  y1,
double  x2,
double  y2 
)

Definition at line 602 of file liblwgeom/lwgeom_geos.c.

603{
604 GEOSCoordSequence* seq = GEOSCoordSeq_create(2, 2);
605 GEOSGeometry* geom = NULL;
606
607 if (!seq) return NULL;
608
609 GEOSCoordSeq_setXY(seq, 0, x1, y1);
610 GEOSCoordSeq_setXY(seq, 1, x2, y2);
611
612 geom = GEOSGeom_createLineString(seq);
613 if (!geom) GEOSCoordSeq_destroy(seq);
614 return geom;
615}

Referenced by dbscan_update_context(), and geos_envelope_surrogate().

Here is the caller graph for this function: