PostGIS
2.5.7dev-r@@SVN_REVISION@@
|
int lwgeom_parse_wkt | ( | LWGEOM_PARSER_RESULT * | parser_result, |
char * | wktstr, | ||
int | parser_check_flags | ||
) |
Parse a WKT geometry string into an LWGEOM structure.
Note that this process uses globals and is not re-entrant, so don't call it within itself (eg, from within other functions in lwin_wkt.c) or from a threaded program. Note that parser_result.wkinput picks up a reference to wktstr.
Definition at line 126 of file lwin_wkt_parse.c.
References struct_lwgeom_parser_result::errcode, struct_lwgeom_parser_result::errlocation, YYLTYPE::first_line, struct_lwgeom_parser_result::geom, global_parser_result, YYLTYPE::last_column, YYLTYPE::last_line, LW_FAILURE, LW_SUCCESS, LWDEBUGF, lwgeom_free(), lwgeom_parser_result_init(), struct_lwgeom_parser_result::message, struct_lwgeom_parser_result::parser_check_flags, parser_error_messages, PARSER_ERROR_OTHER, struct_lwgeom_parser_result::wkinput, wkt_lexer_close(), wkt_lexer_init(), wkt_yylex_destroy(), wkt_yylloc, and wkt_yyparse().
Referenced by cu_twkb_in(), cu_wkb_in(), cu_wkb_malformed_in(), cu_wkt_in(), geography_from_text(), geography_in(), lwgeom_from_text(), LWGEOM_from_text(), lwgeom_from_wkt(), LWGEOM_in(), test_wkt_double(), and test_wkt_in_errlocation().