PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ make_geos_point()

GEOSGeometry* make_geos_point ( double  x,
double  y 
)

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

555 {
556  GEOSCoordSequence* seq = GEOSCoordSeq_create(1, 2);
557  GEOSGeometry* geom = NULL;
558 
559  if (!seq) return NULL;
560 
561 #if POSTGIS_GEOS_VERSION < 38
562  GEOSCoordSeq_setX(seq, 0, x);
563  GEOSCoordSeq_setY(seq, 0, y);
564 #else
565  GEOSCoordSeq_setXY(seq, 0, x, y);
566 #endif
567 
568  geom = GEOSGeom_createPoint(seq);
569  if (!geom) GEOSCoordSeq_destroy(seq);
570  return geom;
571 }

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

Referenced by geos_envelope_surrogate().

Here is the caller graph for this function: