PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ make_geos_point()

GEOSGeometry* make_geos_point ( double  x,
double  y 
)

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

588 {
589  GEOSCoordSequence* seq = GEOSCoordSeq_create(1, 2);
590  GEOSGeometry* geom = NULL;
591 
592  if (!seq) return NULL;
593 
594  GEOSCoordSeq_setXY(seq, 0, x, y);
595 
596  geom = GEOSGeom_createPoint(seq);
597  if (!geom) GEOSCoordSeq_destroy(seq);
598  return geom;
599 }

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

Referenced by geos_envelope_surrogate().

Here is the caller graph for this function: