PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ make_geos_point()

GEOSGeometry* make_geos_point ( double  x,
double  y 
)

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

References dumpnode::geom.

Referenced by geos_envelope_surrogate().

517 {
518  GEOSCoordSequence* seq = GEOSCoordSeq_create(1, 2);
519  GEOSGeometry* geom = NULL;
520 
521  if (!seq)
522  return NULL;
523 
524  GEOSCoordSeq_setX(seq, 0, x);
525  GEOSCoordSeq_setY(seq, 0, y);
526 
527  geom = GEOSGeom_createPoint(seq);
528  if (!geom)
529  GEOSCoordSeq_destroy(seq);
530  return geom;
531 }
LWGEOM * geom
Here is the caller graph for this function: