PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ lwgeom_sfcgal_noop()

LWGEOM* lwgeom_sfcgal_noop ( const LWGEOM geom_in)

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

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

557 {
558  sfcgal_geometry_t* converted;
559 
560  assert(geom_in);
561 
562  converted = LWGEOM2SFCGAL(geom_in);
563  assert(converted);
564 
565  LWGEOM* geom_out = SFCGAL2LWGEOM(converted, 0, SRID_UNKNOWN);
566  sfcgal_geometry_delete(converted);
567 
568  /* copy SRID (SFCGAL does not store the SRID) */
569  geom_out->srid = geom_in->srid;
570  return geom_out;
571 }
int32_t srid
Definition: liblwgeom.h:383
sfcgal_geometry_t * LWGEOM2SFCGAL(const LWGEOM *geom)
#define SRID_UNKNOWN
Unknown SRID value.
Definition: liblwgeom.h:172
LWGEOM * SFCGAL2LWGEOM(const sfcgal_geometry_t *geom, int force3D, int srid)
Here is the call graph for this function: