PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ parse_WKT_lwgeom()

Datum parse_WKT_lwgeom ( PG_FUNCTION_ARGS  )

Definition at line 730 of file lwgeom_inout.c.

731{
732 text *wkt_text = PG_GETARG_TEXT_P(0);
733 char *wkt;
734 Datum result;
735
736 /* Unwrap the PgSQL text type into a cstring */
737 wkt = text_to_cstring(wkt_text);
738
739 /* Now we call over to the geometry_in function */
740 result = DirectFunctionCall1(LWGEOM_in, CStringGetDatum(wkt));
741
742 /* Return null on null */
743 if ( ! result )
744 PG_RETURN_NULL();
745
746 PG_RETURN_DATUM(result);
747}
Datum LWGEOM_in(PG_FUNCTION_ARGS)
char * text_to_cstring(const text *textptr)

References LWGEOM_in(), and text_to_cstring().

Here is the call graph for this function: