PostGIS
3.4.0dev-r@@SVN_REVISION@@
◆
parse_WKT_lwgeom()
Datum parse_WKT_lwgeom
(
PG_FUNCTION_ARGS
)
Definition at line
659
of file
lwgeom_inout.c
.
660
{
661
text *wkt_text = PG_GETARG_TEXT_P(0);
662
char
*wkt;
663
Datum
result
;
664
665
/* Unwrap the PgSQL text type into a cstring */
666
wkt = text_to_cstring(wkt_text);
667
668
/* Now we call over to the geometry_in function
669
* We need to initialize the fcinfo since cache might be used
670
*/
671
result
= CallerFInfoFunctionCall1(
LWGEOM_in
, fcinfo->flinfo, InvalidOid, CStringGetDatum(wkt));
672
673
/* Return null on null */
674
if
( !
result
)
675
PG_RETURN_NULL();
676
677
PG_RETURN_DATUM(
result
);
678
}
result
char result[OUT_DOUBLE_BUFFER_SIZE]
Definition:
cu_print.c:262
LWGEOM_in
Datum LWGEOM_in(PG_FUNCTION_ARGS)
Definition:
lwgeom_inout.c:85
References
LWGEOM_in()
, and
result
.
Here is the call graph for this function:
postgis
lwgeom_inout.c
Generated by
1.9.1