1403 geom1 = PG_GETARG_GSERIALIZED_P(0);
1407 PG_RETURN_BOOL(
true);
1414 lwpgerror(
"unable to deserialize input");
1425 PG_RETURN_BOOL(
false);
1428 result = GEOSisValid(g1);
1429 GEOSGeom_destroy(g1);
1433 elog(ERROR,
"GEOS isvalid() threw an error!");
1437 PG_FREE_IF_COPY(geom1, 0);
1438 PG_RETURN_BOOL(result);
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
int gserialized_is_empty(const GSERIALIZED *g)
Check if a GSERIALIZED is empty without deserializing first.
char lwgeom_geos_errmsg[LWGEOM_GEOS_ERRMSG_MAXSIZE]
GEOSGeometry * LWGEOM2GEOS(const LWGEOM *lwgeom, uint8_t autofix)
void lwgeom_geos_error(const char *fmt,...)
void lwgeom_free(LWGEOM *geom)