PostGIS  2.3.7dev-r@@SVN_REVISION@@
Datum sfcgal_from_ewkt ( PG_FUNCTION_ARGS  )

Definition at line 141 of file postgis/lwgeom_sfcgal.c.

References sfcgal_postgis_init(), SFCGALPreparedGeometry2POSTGIS(), and text2cstring().

142 {
143  GSERIALIZED* result;
144  sfcgal_prepared_geometry_t* g;
145  text *wkttext = PG_GETARG_TEXT_P(0);
146  char *cstring = text2cstring(wkttext);
147 
149 
150  g = sfcgal_io_read_ewkt( cstring, strlen(cstring) );
151 
152  result = SFCGALPreparedGeometry2POSTGIS( g, 0 );
153  sfcgal_prepared_geometry_delete( g );
154  PG_RETURN_POINTER(result);
155 }
GSERIALIZED * SFCGALPreparedGeometry2POSTGIS(const sfcgal_prepared_geometry_t *geom, int force3D)
char * text2cstring(const text *textptr)
void sfcgal_postgis_init(void)

Here is the call graph for this function: