PostGIS
3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches
◆
make_geos_point()
GEOSGeometry * make_geos_point
(
double
x
,
double
y
)
Definition at line
570
of file
liblwgeom/lwgeom_geos.c
.
571
{
572
GEOSCoordSequence* seq = GEOSCoordSeq_create(1, 2);
573
GEOSGeometry* geom = NULL;
574
575
if
(!seq)
return
NULL;
576
577
#if POSTGIS_GEOS_VERSION < 38
578
GEOSCoordSeq_setX(seq, 0, x);
579
GEOSCoordSeq_setY(seq, 0, y);
580
#else
581
GEOSCoordSeq_setXY(seq, 0, x, y);
582
#endif
583
584
geom = GEOSGeom_createPoint(seq);
585
if
(!geom) GEOSCoordSeq_destroy(seq);
586
return
geom;
587
}
Referenced by
geos_envelope_surrogate()
.
Here is the caller graph for this function:
liblwgeom
lwgeom_geos.h
Generated by
1.9.8