PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ lwgeom_sfcgal_noop()

LWGEOM* lwgeom_sfcgal_noop ( const LWGEOM geom_in)

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

580 {
581  sfcgal_geometry_t *converted;
582 
583  assert(geom_in);
584 
585  converted = LWGEOM2SFCGAL(geom_in);
586  assert(converted);
587 
588  LWGEOM *geom_out = SFCGAL2LWGEOM(converted, 0, SRID_UNKNOWN);
589  sfcgal_geometry_delete(converted);
590 
591  /* copy SRID (SFCGAL does not store the SRID) */
592  geom_out->srid = geom_in->srid;
593  return geom_out;
594 }
sfcgal_geometry_t * LWGEOM2SFCGAL(const LWGEOM *geom)
LWGEOM * SFCGAL2LWGEOM(const sfcgal_geometry_t *geom, int force3D, int32_t srid)
#define SRID_UNKNOWN
Unknown SRID value.
Definition: liblwgeom.h:229
int32_t srid
Definition: liblwgeom.h:446

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

Referenced by postgis_sfcgal_noop(), and test_sfcgal_noop().

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