PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ make_geos_point()

GEOSGeometry* make_geos_point ( double  x,
double  y 
)

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

625 {
626  GEOSCoordSequence* seq = GEOSCoordSeq_create(1, 2);
627  GEOSGeometry* geom = NULL;
628 
629  if (!seq) return NULL;
630 
631 #if POSTGIS_GEOS_VERSION < 30800
632  GEOSCoordSeq_setX(seq, 0, x);
633  GEOSCoordSeq_setY(seq, 0, y);
634 #else
635  GEOSCoordSeq_setXY(seq, 0, x, y);
636 #endif
637 
638  geom = GEOSGeom_createPoint(seq);
639  if (!geom) GEOSCoordSeq_destroy(seq);
640  return geom;
641 }

References pixval::x, and pixval::y.

Referenced by geos_envelope_surrogate().

Here is the caller graph for this function: