PostGIS  3.3.9dev-r@@SVN_REVISION@@

◆ make_geos_point()

GEOSGeometry* make_geos_point ( double  x,
double  y 
)

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

591 {
592  GEOSCoordSequence* seq = GEOSCoordSeq_create(1, 2);
593  GEOSGeometry* geom = NULL;
594 
595  if (!seq) return NULL;
596 
597 #if POSTGIS_GEOS_VERSION < 30800
598  GEOSCoordSeq_setX(seq, 0, x);
599  GEOSCoordSeq_setY(seq, 0, y);
600 #else
601  GEOSCoordSeq_setXY(seq, 0, x, y);
602 #endif
603 
604  geom = GEOSGeom_createPoint(seq);
605  if (!geom) GEOSCoordSeq_destroy(seq);
606  return geom;
607 }

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

Referenced by geos_envelope_surrogate().

Here is the caller graph for this function: