PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwgeom_sfcgal_noop()

LWGEOM* lwgeom_sfcgal_noop ( const LWGEOM geom_in)

Definition at line 567 of file liblwgeom/lwgeom_sfcgal.c.

568 {
569  sfcgal_geometry_t* converted;
570 
571  assert(geom_in);
572 
573  converted = LWGEOM2SFCGAL(geom_in);
574  assert(converted);
575 
576  LWGEOM* geom_out = SFCGAL2LWGEOM(converted, 0, SRID_UNKNOWN);
577  sfcgal_geometry_delete(converted);
578 
579  /* copy SRID (SFCGAL does not store the SRID) */
580  geom_out->srid = geom_in->srid;
581  return geom_out;
582 }
sfcgal_geometry_t * LWGEOM2SFCGAL(const LWGEOM *geom)
LWGEOM * SFCGAL2LWGEOM(const sfcgal_geometry_t *geom, int force3D, int srid)
#define SRID_UNKNOWN
Unknown SRID value.
Definition: liblwgeom.h:188
int32_t srid
Definition: liblwgeom.h:402

References LWGEOM2SFCGAL(), SFCGAL2LWGEOM(), LWGEOM::srid, and SRID_UNKNOWN.

Referenced by test_sfcgal_noop().

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