PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ sfcgal_from_ewkt()

Datum sfcgal_from_ewkt ( PG_FUNCTION_ARGS  )

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

133 {
134  GSERIALIZED *result;
135  sfcgal_prepared_geometry_t *g;
136  text *wkttext = PG_GETARG_TEXT_P(0);
137  char *cstring = text_to_cstring(wkttext);
138 
140 
141  g = sfcgal_io_read_ewkt(cstring, strlen(cstring));
142 
143  result = SFCGALPreparedGeometry2POSTGIS(g, 0);
144  sfcgal_prepared_geometry_delete(g);
145  PG_RETURN_POINTER(result);
146 }
char * text_to_cstring(const text *textptr)
void sfcgal_postgis_init(void)
GSERIALIZED * SFCGALPreparedGeometry2POSTGIS(const sfcgal_prepared_geometry_t *geom, int force3D)

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

Here is the call graph for this function: