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

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

References dumpnode::geom.

Referenced by geos_envelope_surrogate().

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

Here is the caller graph for this function: