PostGIS  2.5.0dev-r@@SVN_REVISION@@
GEOSGeometry* make_geos_point ( double  x,
double  y 
)

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

References dumpnode::geom.

Referenced by geos_envelope_surrogate().

514 {
515  GEOSCoordSequence* seq = GEOSCoordSeq_create(1, 2);
516  GEOSGeometry* geom = NULL;
517 
518  if (!seq)
519  return NULL;
520 
521  GEOSCoordSeq_setX(seq, 0, x);
522  GEOSCoordSeq_setY(seq, 0, y);
523 
524  geom = GEOSGeom_createPoint(seq);
525  if (!geom)
526  GEOSCoordSeq_destroy(seq);
527  return geom;
528 }
LWGEOM * geom
tuple x
Definition: pixval.py:53
tuple y
Definition: pixval.py:54

Here is the caller graph for this function: