PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ SFCGALGeometry2POSTGIS()

GSERIALIZED* SFCGALGeometry2POSTGIS ( const sfcgal_geometry_t *  geom,
int  force3D,
int32_t  SRID 
)

Definition at line 108 of file postgis/lwgeom_sfcgal.c.

109 {
110  GSERIALIZED *result;
111  LWGEOM *lwgeom = SFCGAL2LWGEOM(geom, force3D, SRID);
112 
113  if (lwgeom_needs_bbox(lwgeom) == LW_TRUE)
114  lwgeom_add_bbox(lwgeom);
115 
116  result = geometry_serialize(lwgeom);
117  lwgeom_free(lwgeom);
118 
119  return result;
120 }
LWGEOM * SFCGAL2LWGEOM(const sfcgal_geometry_t *geom, int force3D, int32_t srid)
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1138
int lwgeom_needs_bbox(const LWGEOM *geom)
Check whether or not a lwgeom is big enough to warrant a bounding box.
Definition: lwgeom.c:1191
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:107
void lwgeom_add_bbox(LWGEOM *lwgeom)
Compute a bbox if not already computed.
Definition: lwgeom.c:677
GSERIALIZED * geometry_serialize(LWGEOM *lwgeom)

References geometry_serialize(), LW_TRUE, lwgeom_add_bbox(), lwgeom_free(), lwgeom_needs_bbox(), and SFCGAL2LWGEOM().

Referenced by sfcgal_approximate_medial_axis(), sfcgal_difference3D(), sfcgal_extrude(), sfcgal_force_lhr(), sfcgal_intersection3D(), sfcgal_minkowski_sum(), sfcgal_straight_skeleton(), sfcgal_tesselate(), sfcgal_union3D(), SFCGALPreparedGeometry2POSTGIS(), and ST_ConstrainedDelaunayTriangles().

Here is the call graph for this function:
Here is the caller graph for this function: