439{
442 text *wkt_text = PG_GETARG_TEXT_P(0);
443
444
445 char *wkt = text_to_cstring(wkt_text);
446
447
449 PG_PARSER_ERROR(lwg_parser_result);
450
451
452 srid_check_latlong(lwg_parser_result.
geom->
srid);
453
454
455 pfree(wkt);
457
458
460
461 PG_RETURN_POINTER(g_ser);
462}
GSERIALIZED * gserialized_geography_from_lwgeom(LWGEOM *lwgeom, int32 geog_typmod)
#define LW_PARSER_CHECK_ALL
void lwgeom_free(LWGEOM *geom)
int lwgeom_parse_wkt(LWGEOM_PARSER_RESULT *parser_result, char *wktstr, int parse_flags)
Parse a WKT geometry string into an LWGEOM structure.
Parser result structure: returns the result of attempting to convert (E)WKT/(E)WKB to LWGEOM.