PostGIS  2.1.10dev-r@@SVN_REVISION@@
LWGEOM* lwgeom_sfcgal_noop ( const LWGEOM geom_in)

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

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

Referenced by test_sfcgal_noop().

551 {
552  sfcgal_geometry_t* converted;
553 
554  assert(geom_in);
555 
556  converted = LWGEOM2SFCGAL(geom_in);
557  assert(converted);
558 
559  LWGEOM* geom_out = SFCGAL2LWGEOM(converted, 0, SRID_UNKNOWN);
560  sfcgal_geometry_delete(converted);
561 
562  /* copy SRID (SFCGAL does not store the SRID) */
563  geom_out->srid = geom_in->srid;
564  return geom_out;
565 }
int32_t srid
Definition: liblwgeom.h:355
sfcgal_geometry_t * LWGEOM2SFCGAL(const LWGEOM *geom)
#define SRID_UNKNOWN
Unknown SRID value.
Definition: liblwgeom.h:154
LWGEOM * SFCGAL2LWGEOM(const sfcgal_geometry_t *geom, int force3D, int srid)

Here is the call graph for this function:

Here is the caller graph for this function: