PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwgeom_sfcgal_noop()

LWGEOM* lwgeom_sfcgal_noop ( const LWGEOM geom_in)

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

Referenced by test_sfcgal_noop().

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 }
int32_t srid
Definition: liblwgeom.h:399
sfcgal_geometry_t * LWGEOM2SFCGAL(const LWGEOM *geom)
#define SRID_UNKNOWN
Unknown SRID value.
Definition: liblwgeom.h:188
LWGEOM * SFCGAL2LWGEOM(const sfcgal_geometry_t *geom, int force3D, int srid)
Here is the caller graph for this function: