PostGIS  2.5.1dev-r@@SVN_REVISION@@

◆ make_geos_point()

GEOSGeometry* make_geos_point ( double  x,
double  y 
)

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

References dumpnode::geom.

Referenced by geos_envelope_surrogate().

501 {
502  GEOSCoordSequence* seq = GEOSCoordSeq_create(1, 2);
503  GEOSGeometry* geom = NULL;
504 
505  if (!seq) return NULL;
506 
507  GEOSCoordSeq_setX(seq, 0, x);
508  GEOSCoordSeq_setY(seq, 0, y);
509 
510  geom = GEOSGeom_createPoint(seq);
511  if (!geom) GEOSCoordSeq_destroy(seq);
512  return geom;
513 }
LWGEOM * geom
Here is the caller graph for this function: