434{
436 sfcgal_geometry_t *geom0, *geom1;
437 sfcgal_geometry_t *result;
438 srid_t srid;
439
441
442 input0 = PG_GETARG_GSERIALIZED_P(0);
444 input1 = PG_GETARG_GSERIALIZED_P(1);
446 PG_FREE_IF_COPY(input0, 0);
448 PG_FREE_IF_COPY(input1, 1);
449
450 result = sfcgal_geometry_minkowski_sum(geom0, geom1);
451 sfcgal_geometry_delete(geom0);
452 sfcgal_geometry_delete(geom1);
453
455 sfcgal_geometry_delete(result);
456
457 PG_RETURN_POINTER(output);
458}
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)...
sfcgal_geometry_t * POSTGIS2SFCGALGeometry(GSERIALIZED *pglwgeom)
GSERIALIZED * SFCGALGeometry2POSTGIS(const sfcgal_geometry_t *geom, int force3D, int32_t SRID)
void sfcgal_postgis_init(void)