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

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

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

124 {
126  sfcgal_prepared_geometry_t* g;
127  text *wkttext = PG_GETARG_TEXT_P(0);
128  char *cstring = text2cstring(wkttext);
129 
131 
132  g = sfcgal_io_read_ewkt( cstring, strlen(cstring) );
133 
134  result = SFCGALPreparedGeometry2POSTGIS( g, 0 );
135  sfcgal_prepared_geometry_delete( g );
136  PG_RETURN_POINTER(result);
137 }
GSERIALIZED * SFCGALPreparedGeometry2POSTGIS(const sfcgal_prepared_geometry_t *geom, int force3D)
char ** result
Definition: liblwgeom.h:218
char * text2cstring(const text *textptr)
void sfcgal_postgis_init(void)

Here is the call graph for this function: