Definition at line 855 of file liblwgeom/lwgeom_geos.c.
860 GEOSGeometry *g1, *g3;
874 g3 = GEOSPointOnSurface(g1);
877 GEOSSetSRID(g3, srid);
#define GEOS_FREE_AND_FAIL(...)
GEOSGeometry * LWGEOM2GEOS(const LWGEOM *lwgeom, uint8_t autofix)
LWGEOM * GEOS2LWGEOM(const GEOSGeometry *geom, uint8_t want3d)
void lwgeom_geos_error(const char *fmt,...)
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
LWGEOM * lwpoint_as_lwgeom(const LWPOINT *obj)
int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members)
LWPOINT * lwpoint_construct_empty(int srid, char hasz, char hasm)
int lwgeom_has_m(const LWGEOM *geom)
Return LW_TRUE if geometry has M ordinates.
void lwnotice(const char *fmt,...)
Write a notice out to the notice handler.
References AUTOFIX, LWGEOM::flags, FLAGS_GET_Z, GEOS2LWGEOM(), GEOS_FAIL, GEOS_FREE, GEOS_FREE_AND_FAIL, LWGEOM2GEOS(), lwgeom_geos_error(), lwgeom_has_m(), lwgeom_is_empty(), lwnotice(), lwpoint_as_lwgeom(), lwpoint_construct_empty(), RESULT_SRID, and SRID_INVALID.
Referenced by pointonsurface().