PostGIS  2.5.0dev-r@@SVN_REVISION@@

◆ make_geos_point()

GEOSGeometry* make_geos_point ( double  x,
double  y 
)

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

References dumpnode::geom.

Referenced by geos_envelope_surrogate().

459 {
460  GEOSCoordSequence* seq = GEOSCoordSeq_create(1, 2);
461  GEOSGeometry* geom = NULL;
462 
463  if (!seq) return NULL;
464 
465  GEOSCoordSeq_setX(seq, 0, x);
466  GEOSCoordSeq_setY(seq, 0, y);
467 
468  geom = GEOSGeom_createPoint(seq);
469  if (!geom) GEOSCoordSeq_destroy(seq);
470  return geom;
471 }
LWGEOM * geom
Here is the caller graph for this function: