PostGIS  2.2.7dev-r@@SVN_REVISION@@
static void test_wkt_in_errlocation ( void  )
static

Definition at line 330 of file cu_in_wkt.c.

References struct_lwgeom_parser_result::errlocation, LW_FAILURE, LW_PARSER_CHECK_ALL, lwgeom_parse_wkt(), lwgeom_parser_result_free(), and lwgeom_parser_result_init().

Referenced by wkt_in_suite_setup().

331 {
333  int rv = 0;
334  char *wkt = 0;
335 
336  wkt = "LINESTRING((0 0 0,1 1)";
338  rv = lwgeom_parse_wkt(&p, wkt, LW_PARSER_CHECK_ALL);
339  CU_ASSERT_EQUAL( rv, LW_FAILURE );
340  CU_ASSERT((12 - p.errlocation) < 1.5);
341 
342 // printf("errlocation %d\n", p.errlocation);
343 // printf("message %s\n", p.message);
344 
346 
347 }
void lwgeom_parser_result_free(LWGEOM_PARSER_RESULT *parser_result)
Definition: lwin_wkt.c:871
#define LW_FAILURE
Definition: liblwgeom.h:64
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...
Definition: liblwgeom.h:1876
void lwgeom_parser_result_init(LWGEOM_PARSER_RESULT *parser_result)
Definition: lwin_wkt.c:865
#define LW_PARSER_CHECK_ALL
Definition: liblwgeom.h:1870

Here is the call graph for this function:

Here is the caller graph for this function: