1686 char *yymsg = yymsgbuf;
1687 YYSIZE_T yymsg_alloc =
sizeof yymsgbuf;
1690 #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N), yylsp -= (N)) 1696 yyssp = yyss = yyssa;
1697 yyvsp = yyvs = yyvsa;
1698 yylsp = yyls = yylsa;
1701 YYDPRINTF ((stderr,
"Starting parse\n"));
1724 YYDPRINTF ((stderr,
"Entering state %d\n", yystate));
1728 if (yyss + yystacksize - 1 <= yyssp)
1729 #if !defined yyoverflow && !defined YYSTACK_RELOCATE 1730 goto yyexhaustedlab;
1736 # if defined yyoverflow 1749 yyoverflow (
YY_(
"memory exhausted"),
1750 &yyss1, yysize *
sizeof (*yyssp),
1751 &yyvs1, yysize *
sizeof (*yyvsp),
1752 &yyls1, yysize *
sizeof (*yylsp),
1761 goto yyexhaustedlab;
1771 goto yyexhaustedlab;
1775 # undef YYSTACK_RELOCATE 1781 yyssp = yyss + yysize - 1;
1782 yyvsp = yyvs + yysize - 1;
1783 yylsp = yyls + yysize - 1;
1785 YYDPRINTF ((stderr,
"Stack size increased to %lu\n",
1786 (
unsigned long) yystacksize));
1788 if (yyss + yystacksize - 1 <= yyssp)
1816 YYDPRINTF ((stderr,
"Reading a token: "));
1823 YYDPRINTF ((stderr,
"Now at end of input.\n"));
1889 yyval = yyvsp[1-yylen];
1893 yyerror_range[1] = yyloc;
1898 #line 218 "lwin_wkt_parse.y" 1900 #line 1901 "lwin_wkt_parse.c" 1904 #line 220 "lwin_wkt_parse.y" 1906 #line 1907 "lwin_wkt_parse.c" 1910 #line 223 "lwin_wkt_parse.y" 1912 #line 1913 "lwin_wkt_parse.c" 1916 #line 224 "lwin_wkt_parse.y" 1918 #line 1919 "lwin_wkt_parse.c" 1922 #line 225 "lwin_wkt_parse.y" 1924 #line 1925 "lwin_wkt_parse.c" 1928 #line 226 "lwin_wkt_parse.y" 1930 #line 1931 "lwin_wkt_parse.c" 1934 #line 227 "lwin_wkt_parse.y" 1936 #line 1937 "lwin_wkt_parse.c" 1940 #line 228 "lwin_wkt_parse.y" 1942 #line 1943 "lwin_wkt_parse.c" 1946 #line 229 "lwin_wkt_parse.y" 1948 #line 1949 "lwin_wkt_parse.c" 1952 #line 230 "lwin_wkt_parse.y" 1954 #line 1955 "lwin_wkt_parse.c" 1958 #line 231 "lwin_wkt_parse.y" 1960 #line 1961 "lwin_wkt_parse.c" 1964 #line 232 "lwin_wkt_parse.y" 1966 #line 1967 "lwin_wkt_parse.c" 1970 #line 233 "lwin_wkt_parse.y" 1972 #line 1973 "lwin_wkt_parse.c" 1976 #line 234 "lwin_wkt_parse.y" 1978 #line 1979 "lwin_wkt_parse.c" 1982 #line 235 "lwin_wkt_parse.y" 1984 #line 1985 "lwin_wkt_parse.c" 1988 #line 236 "lwin_wkt_parse.y" 1990 #line 1991 "lwin_wkt_parse.c" 1994 #line 237 "lwin_wkt_parse.y" 1996 #line 1997 "lwin_wkt_parse.c" 2000 #line 241 "lwin_wkt_parse.y" 2002 #line 2003 "lwin_wkt_parse.c" 2006 #line 243 "lwin_wkt_parse.y" 2008 #line 2009 "lwin_wkt_parse.c" 2012 #line 245 "lwin_wkt_parse.y" 2014 #line 2015 "lwin_wkt_parse.c" 2018 #line 247 "lwin_wkt_parse.y" 2020 #line 2021 "lwin_wkt_parse.c" 2024 #line 251 "lwin_wkt_parse.y" 2026 #line 2027 "lwin_wkt_parse.c" 2030 #line 253 "lwin_wkt_parse.y" 2032 #line 2033 "lwin_wkt_parse.c" 2036 #line 257 "lwin_wkt_parse.y" 2038 #line 2039 "lwin_wkt_parse.c" 2042 #line 259 "lwin_wkt_parse.y" 2044 #line 2045 "lwin_wkt_parse.c" 2048 #line 261 "lwin_wkt_parse.y" 2050 #line 2051 "lwin_wkt_parse.c" 2054 #line 263 "lwin_wkt_parse.y" 2056 #line 2057 "lwin_wkt_parse.c" 2060 #line 267 "lwin_wkt_parse.y" 2062 #line 2063 "lwin_wkt_parse.c" 2066 #line 269 "lwin_wkt_parse.y" 2068 #line 2069 "lwin_wkt_parse.c" 2072 #line 271 "lwin_wkt_parse.y" 2074 #line 2075 "lwin_wkt_parse.c" 2078 #line 273 "lwin_wkt_parse.y" 2080 #line 2081 "lwin_wkt_parse.c" 2084 #line 275 "lwin_wkt_parse.y" 2086 #line 2087 "lwin_wkt_parse.c" 2090 #line 277 "lwin_wkt_parse.y" 2092 #line 2093 "lwin_wkt_parse.c" 2096 #line 281 "lwin_wkt_parse.y" 2098 #line 2099 "lwin_wkt_parse.c" 2102 #line 283 "lwin_wkt_parse.y" 2104 #line 2105 "lwin_wkt_parse.c" 2108 #line 285 "lwin_wkt_parse.y" 2110 #line 2111 "lwin_wkt_parse.c" 2114 #line 287 "lwin_wkt_parse.y" 2116 #line 2117 "lwin_wkt_parse.c" 2120 #line 291 "lwin_wkt_parse.y" 2122 #line 2123 "lwin_wkt_parse.c" 2126 #line 293 "lwin_wkt_parse.y" 2128 #line 2129 "lwin_wkt_parse.c" 2132 #line 295 "lwin_wkt_parse.y" 2134 #line 2135 "lwin_wkt_parse.c" 2138 #line 297 "lwin_wkt_parse.y" 2140 #line 2141 "lwin_wkt_parse.c" 2144 #line 301 "lwin_wkt_parse.y" 2146 #line 2147 "lwin_wkt_parse.c" 2150 #line 303 "lwin_wkt_parse.y" 2152 #line 2153 "lwin_wkt_parse.c" 2156 #line 305 "lwin_wkt_parse.y" 2158 #line 2159 "lwin_wkt_parse.c" 2162 #line 307 "lwin_wkt_parse.y" 2164 #line 2165 "lwin_wkt_parse.c" 2168 #line 311 "lwin_wkt_parse.y" 2170 #line 2171 "lwin_wkt_parse.c" 2174 #line 313 "lwin_wkt_parse.y" 2176 #line 2177 "lwin_wkt_parse.c" 2180 #line 317 "lwin_wkt_parse.y" 2182 #line 2183 "lwin_wkt_parse.c" 2186 #line 319 "lwin_wkt_parse.y" 2188 #line 2189 "lwin_wkt_parse.c" 2192 #line 323 "lwin_wkt_parse.y" 2194 #line 2195 "lwin_wkt_parse.c" 2198 #line 325 "lwin_wkt_parse.y" 2200 #line 2201 "lwin_wkt_parse.c" 2204 #line 327 "lwin_wkt_parse.y" 2206 #line 2207 "lwin_wkt_parse.c" 2210 #line 329 "lwin_wkt_parse.y" 2212 #line 2213 "lwin_wkt_parse.c" 2216 #line 333 "lwin_wkt_parse.y" 2218 #line 2219 "lwin_wkt_parse.c" 2222 #line 335 "lwin_wkt_parse.y" 2224 #line 2225 "lwin_wkt_parse.c" 2228 #line 338 "lwin_wkt_parse.y" 2230 #line 2231 "lwin_wkt_parse.c" 2234 #line 342 "lwin_wkt_parse.y" 2236 #line 2237 "lwin_wkt_parse.c" 2240 #line 344 "lwin_wkt_parse.y" 2242 #line 2243 "lwin_wkt_parse.c" 2246 #line 346 "lwin_wkt_parse.y" 2248 #line 2249 "lwin_wkt_parse.c" 2252 #line 348 "lwin_wkt_parse.y" 2254 #line 2255 "lwin_wkt_parse.c" 2258 #line 352 "lwin_wkt_parse.y" 2260 #line 2261 "lwin_wkt_parse.c" 2264 #line 354 "lwin_wkt_parse.y" 2266 #line 2267 "lwin_wkt_parse.c" 2270 #line 357 "lwin_wkt_parse.y" 2272 #line 2273 "lwin_wkt_parse.c" 2276 #line 358 "lwin_wkt_parse.y" 2278 #line 2279 "lwin_wkt_parse.c" 2282 #line 359 "lwin_wkt_parse.y" 2284 #line 2285 "lwin_wkt_parse.c" 2288 #line 360 "lwin_wkt_parse.y" 2290 #line 2291 "lwin_wkt_parse.c" 2294 #line 364 "lwin_wkt_parse.y" 2296 #line 2297 "lwin_wkt_parse.c" 2300 #line 366 "lwin_wkt_parse.y" 2302 #line 2303 "lwin_wkt_parse.c" 2306 #line 370 "lwin_wkt_parse.y" 2308 #line 2309 "lwin_wkt_parse.c" 2312 #line 372 "lwin_wkt_parse.y" 2314 #line 2315 "lwin_wkt_parse.c" 2318 #line 375 "lwin_wkt_parse.y" 2320 #line 2321 "lwin_wkt_parse.c" 2324 #line 378 "lwin_wkt_parse.y" 2326 #line 2327 "lwin_wkt_parse.c" 2330 #line 382 "lwin_wkt_parse.y" 2332 #line 2333 "lwin_wkt_parse.c" 2336 #line 384 "lwin_wkt_parse.y" 2338 #line 2339 "lwin_wkt_parse.c" 2342 #line 386 "lwin_wkt_parse.y" 2344 #line 2345 "lwin_wkt_parse.c" 2348 #line 388 "lwin_wkt_parse.y" 2350 #line 2351 "lwin_wkt_parse.c" 2354 #line 392 "lwin_wkt_parse.y" 2356 #line 2357 "lwin_wkt_parse.c" 2360 #line 394 "lwin_wkt_parse.y" 2362 #line 2363 "lwin_wkt_parse.c" 2366 #line 396 "lwin_wkt_parse.y" 2368 #line 2369 "lwin_wkt_parse.c" 2372 #line 398 "lwin_wkt_parse.y" 2374 #line 2375 "lwin_wkt_parse.c" 2378 #line 400 "lwin_wkt_parse.y" 2380 #line 2381 "lwin_wkt_parse.c" 2384 #line 402 "lwin_wkt_parse.y" 2386 #line 2387 "lwin_wkt_parse.c" 2390 #line 406 "lwin_wkt_parse.y" 2392 #line 2393 "lwin_wkt_parse.c" 2396 #line 408 "lwin_wkt_parse.y" 2398 #line 2399 "lwin_wkt_parse.c" 2402 #line 410 "lwin_wkt_parse.y" 2404 #line 2405 "lwin_wkt_parse.c" 2408 #line 412 "lwin_wkt_parse.y" 2410 #line 2411 "lwin_wkt_parse.c" 2414 #line 416 "lwin_wkt_parse.y" 2416 #line 2417 "lwin_wkt_parse.c" 2420 #line 418 "lwin_wkt_parse.y" 2422 #line 2423 "lwin_wkt_parse.c" 2426 #line 420 "lwin_wkt_parse.y" 2428 #line 2429 "lwin_wkt_parse.c" 2432 #line 422 "lwin_wkt_parse.y" 2434 #line 2435 "lwin_wkt_parse.c" 2438 #line 424 "lwin_wkt_parse.y" 2440 #line 2441 "lwin_wkt_parse.c" 2444 #line 426 "lwin_wkt_parse.y" 2446 #line 2447 "lwin_wkt_parse.c" 2450 #line 428 "lwin_wkt_parse.y" 2452 #line 2453 "lwin_wkt_parse.c" 2456 #line 430 "lwin_wkt_parse.y" 2458 #line 2459 "lwin_wkt_parse.c" 2462 #line 434 "lwin_wkt_parse.y" 2464 #line 2465 "lwin_wkt_parse.c" 2468 #line 436 "lwin_wkt_parse.y" 2470 #line 2471 "lwin_wkt_parse.c" 2474 #line 438 "lwin_wkt_parse.y" 2476 #line 2477 "lwin_wkt_parse.c" 2480 #line 440 "lwin_wkt_parse.y" 2482 #line 2483 "lwin_wkt_parse.c" 2486 #line 444 "lwin_wkt_parse.y" 2488 #line 2489 "lwin_wkt_parse.c" 2492 #line 446 "lwin_wkt_parse.y" 2494 #line 2495 "lwin_wkt_parse.c" 2498 #line 450 "lwin_wkt_parse.y" 2500 #line 2501 "lwin_wkt_parse.c" 2504 #line 452 "lwin_wkt_parse.y" 2506 #line 2507 "lwin_wkt_parse.c" 2510 #line 454 "lwin_wkt_parse.y" 2512 #line 2513 "lwin_wkt_parse.c" 2516 #line 456 "lwin_wkt_parse.y" 2518 #line 2519 "lwin_wkt_parse.c" 2522 #line 460 "lwin_wkt_parse.y" 2524 #line 2525 "lwin_wkt_parse.c" 2528 #line 462 "lwin_wkt_parse.y" 2530 #line 2531 "lwin_wkt_parse.c" 2534 #line 464 "lwin_wkt_parse.y" 2536 #line 2537 "lwin_wkt_parse.c" 2540 #line 466 "lwin_wkt_parse.y" 2542 #line 2543 "lwin_wkt_parse.c" 2546 #line 470 "lwin_wkt_parse.y" 2548 #line 2549 "lwin_wkt_parse.c" 2552 #line 472 "lwin_wkt_parse.y" 2554 #line 2555 "lwin_wkt_parse.c" 2558 #line 476 "lwin_wkt_parse.y" 2560 #line 2561 "lwin_wkt_parse.c" 2564 #line 478 "lwin_wkt_parse.y" 2566 #line 2567 "lwin_wkt_parse.c" 2570 #line 482 "lwin_wkt_parse.y" 2572 #line 2573 "lwin_wkt_parse.c" 2576 #line 484 "lwin_wkt_parse.y" 2578 #line 2579 "lwin_wkt_parse.c" 2582 #line 486 "lwin_wkt_parse.y" 2584 #line 2585 "lwin_wkt_parse.c" 2588 #line 488 "lwin_wkt_parse.y" 2590 #line 2591 "lwin_wkt_parse.c" 2594 #line 492 "lwin_wkt_parse.y" 2596 #line 2597 "lwin_wkt_parse.c" 2600 #line 496 "lwin_wkt_parse.y" 2602 #line 2603 "lwin_wkt_parse.c" 2606 #line 498 "lwin_wkt_parse.y" 2608 #line 2609 "lwin_wkt_parse.c" 2612 #line 500 "lwin_wkt_parse.y" 2614 #line 2615 "lwin_wkt_parse.c" 2618 #line 502 "lwin_wkt_parse.y" 2620 #line 2621 "lwin_wkt_parse.c" 2624 #line 506 "lwin_wkt_parse.y" 2626 #line 2627 "lwin_wkt_parse.c" 2630 #line 508 "lwin_wkt_parse.y" 2632 #line 2633 "lwin_wkt_parse.c" 2636 #line 512 "lwin_wkt_parse.y" 2638 #line 2639 "lwin_wkt_parse.c" 2642 #line 514 "lwin_wkt_parse.y" 2644 #line 2645 "lwin_wkt_parse.c" 2648 #line 516 "lwin_wkt_parse.y" 2650 #line 2651 "lwin_wkt_parse.c" 2654 #line 520 "lwin_wkt_parse.y" 2656 #line 2657 "lwin_wkt_parse.c" 2660 #line 522 "lwin_wkt_parse.y" 2662 #line 2663 "lwin_wkt_parse.c" 2666 #line 524 "lwin_wkt_parse.y" 2668 #line 2669 "lwin_wkt_parse.c" 2672 #line 526 "lwin_wkt_parse.y" 2674 #line 2675 "lwin_wkt_parse.c" 2678 #line 530 "lwin_wkt_parse.y" 2680 #line 2681 "lwin_wkt_parse.c" 2684 #line 532 "lwin_wkt_parse.y" 2686 #line 2687 "lwin_wkt_parse.c" 2690 #line 536 "lwin_wkt_parse.y" 2692 #line 2693 "lwin_wkt_parse.c" 2696 #line 538 "lwin_wkt_parse.y" 2698 #line 2699 "lwin_wkt_parse.c" 2702 #line 540 "lwin_wkt_parse.y" 2704 #line 2705 "lwin_wkt_parse.c" 2708 #line 2709 "lwin_wkt_parse.c" 2737 const int yyi =
yypgoto[yylhs] + *yyssp;
2738 yystate = (0 <= yyi && yyi <=
YYLAST &&
yycheck[yyi] == *yyssp
2758 #if ! YYERROR_VERBOSE 2761 # define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \ 2764 char const *yymsgp =
YY_(
"syntax error");
2765 int yysyntax_error_status;
2767 if (yysyntax_error_status == 0)
2769 else if (yysyntax_error_status == 1)
2771 if (yymsg != yymsgbuf)
2777 yymsg_alloc =
sizeof yymsgbuf;
2778 yysyntax_error_status = 2;
2787 if (yysyntax_error_status == 2)
2788 goto yyexhaustedlab;
2790 # undef YYSYNTAX_ERROR 2794 yyerror_range[1] =
yylloc;
2796 if (yyerrstatus == 3)
2862 yyerror_range[1] = *yylsp;
2864 yystos[yystate], yyvsp, yylsp);
2874 yyerror_range[2] =
yylloc;
2903 #if !defined yyoverflow || YYERROR_VERBOSE 2930 while (yyssp != yyss)
2933 yystos[*yyssp], yyvsp, yylsp);
2941 if (yymsg != yymsgbuf)
LWGEOM * wkt_parser_polygon_finalize(LWGEOM *poly, char *dimensionality)
LWGEOM * wkt_parser_triangle_new(POINTARRAY *pa, char *dimensionality)
#define YY_IGNORE_MAYBE_UNINITIALIZED_END
LWGEOM * wkt_parser_point_new(POINTARRAY *pa, char *dimensionality)
Create a new point.
LWGEOM * wkt_parser_collection_add_geom(LWGEOM *col, LWGEOM *geom)
#define yypact_value_is_default(Yystate)
static const yytype_uint8 yydefact[]
LWGEOM * wkt_parser_polygon_add_ring(LWGEOM *poly, POINTARRAY *pa, char dimcheck)
POINTARRAY * ptarrayvalue
LWGEOM * wkt_parser_curvepolygon_new(LWGEOM *ring)
LWGEOM * wkt_parser_circularstring_new(POINTARRAY *pa, char *dimensionality)
Create a new circularstring.
LWGEOM * wkt_parser_collection_new(LWGEOM *geom)
#define POLYHEDRALSURFACETYPE
static const yytype_uint8 yycheck[]
LWGEOM * wkt_parser_linestring_new(POINTARRAY *pa, char *dimensionality)
Create a new linestring.
static const yytype_uint8 yyr1[]
#define yytable_value_is_error(Yytable_value)
LWGEOM * wkt_parser_curvepolygon_finalize(LWGEOM *poly, char *dimensionality)
LWGEOM * wkt_parser_collection_finalize(int lwtype, LWGEOM *geom, char *dimensionality)
POINTARRAY * wkt_parser_ptarray_new(POINT p)
Start a point array from the first coordinate.
POINTARRAY * wkt_parser_ptarray_add_coord(POINTARRAY *pa, POINT p)
#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
#define SRID_UNKNOWN
Unknown SRID value.
static const yytype_uint8 yyr2[]
static const yytype_uint8 yystos[]
#define YYSTACK_RELOCATE(Stack_alloc, Stack)
static const yytype_int16 yypgoto[]
POINT wkt_parser_coord_2(double c1, double c2)
Build a 2d coordinate.
LWGEOM * wkt_parser_compound_add_geom(LWGEOM *col, LWGEOM *geom)
#define YYLLOC_DEFAULT(Current, Rhs, N)
LWGEOM * wkt_parser_polygon_new(POINTARRAY *pa, char dimcheck)
POINT wkt_parser_coord_3(double c1, double c2, double c3)
Note, if this is an XYM coordinate we'll have to fix it later when we build the object itself and hav...
static void yydestruct(const char *yymsg, int yytype, YYSTYPE *yyvaluep, YYLTYPE *yylocationp)
#define YY_SYMBOL_PRINT(Title, Type, Value, Location)
#define YY_STACK_PRINT(Bottom, Top)
void wkt_parser_geometry_new(LWGEOM *geom, int srid)
LWGEOM * wkt_parser_curvepolygon_add_ring(LWGEOM *poly, LWGEOM *ring)
#define YY_REDUCE_PRINT(Rule)
static const yytype_int16 yypact[]
static const yytype_int16 yydefgoto[]
static const yytype_uint16 yytable[]
POINT wkt_parser_coord_4(double c1, double c2, double c3, double c4)
LWGEOM * wkt_parser_compound_new(LWGEOM *geom)