3442{
3445 GEOSGeometry* input_geos;
3446 GEOSGeometry* result_geos;
3447 int32_t srid;
3448
3450
3451 input = PG_GETARG_GSERIALIZED_P(0);
3454 if (!input_geos)
3456
3457 result_geos = GEOSMinimumClearanceLine(input_geos);
3458 GEOSGeom_destroy(input_geos);
3459 if (!result_geos)
3461
3462 GEOSSetSRID(result_geos, srid);
3464 GEOSGeom_destroy(result_geos);
3465
3466 PG_FREE_IF_COPY(input, 0);
3467 PG_RETURN_POINTER(result);
3468}
int32_t gserialized_get_srid(const GSERIALIZED *g)
Extract the SRID from the serialized form (it is packed into three bytes so this is a handy function)...
void lwgeom_geos_error(const char *fmt,...)
GSERIALIZED * GEOS2POSTGIS(GEOSGeom geom, char want3d)
#define HANDLE_GEOS_ERROR(label)
GEOSGeometry * POSTGIS2GEOS(GSERIALIZED *pglwgeom)