cariboujs 2.0.4 → 2.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/README.md +13 -3
  2. package/ada/ada2012/AdaLexer.js +486 -316
  3. package/ada/ada2012/AdaLexerBase.js +25 -0
  4. package/ada/ada2012/AdaParser.js +4547 -3823
  5. package/ada/ada2012/AdaParserBase.js +682 -0
  6. package/ada/ada2012/AdaParserListener.js +36 -0
  7. package/ada/ada2012/AdaParserVisitor.js +24 -0
  8. package/ada/ada2012/Symbol.js +20 -0
  9. package/ada/ada2012/SymbolTable.js +144 -0
  10. package/ada/ada2012/TypeClassification.js +15 -0
  11. package/ada/ada2022/AdaLexer.js +699 -0
  12. package/ada/ada2022/AdaLexerBase.js +25 -0
  13. package/ada/ada2022/AdaParser.js +37818 -0
  14. package/ada/ada2022/AdaParserBase.js +686 -0
  15. package/ada/ada2022/AdaParserListener.js +3024 -0
  16. package/ada/ada2022/AdaParserVisitor.js +2020 -0
  17. package/ada/ada2022/Symbol.js +20 -0
  18. package/ada/ada2022/SymbolTable.js +144 -0
  19. package/ada/ada2022/TypeClassification.js +15 -0
  20. package/c/CLexer.js +918 -0
  21. package/c/CLexerBase.js +96 -0
  22. package/c/CParser.js +14878 -0
  23. package/c/CParserBase.js +617 -0
  24. package/c/CParserListener.js +1062 -0
  25. package/c/CParserVisitor.js +712 -0
  26. package/c/ErrorListener.js +50 -0
  27. package/c/Symbol.js +28 -0
  28. package/c/SymbolTable.js +220 -0
  29. package/c/TypeClassification.js +21 -0
  30. package/cpp/CPP14Parser.js +630 -619
  31. package/cpp/CPP14ParserListener.js +56 -56
  32. package/cpp/CPP14ParserVisitor.js +28 -28
  33. package/csharp/v7/CSharpLexer.js +1339 -0
  34. package/csharp/v7/CSharpLexerBase.js +332 -0
  35. package/csharp/v7/CSharpParser.js +29239 -0
  36. package/csharp/v7/CSharpParserBase.js +48 -0
  37. package/csharp/v7/CSharpParserListener.js +2304 -0
  38. package/csharp/v7/CSharpParserVisitor.js +1540 -0
  39. package/csharp/v8-spec/CSharpLexer.js +1549 -0
  40. package/csharp/v8-spec/CSharpLexerBase.js +296 -0
  41. package/csharp/v8-spec/CSharpParser.js +45055 -0
  42. package/csharp/v8-spec/CSharpParserBase.js +587 -0
  43. package/csharp/v8-spec/CSharpParserListener.js +3582 -0
  44. package/csharp/v8-spec/CSharpParserVisitor.js +2392 -0
  45. package/cypher/CypherParser.js +1171 -780
  46. package/cypher/CypherParserListener.js +27 -0
  47. package/cypher/CypherParserVisitor.js +18 -0
  48. package/geekcode/geekcodeLexer.js +232 -0
  49. package/geekcode/geekcodeListener.js +81 -0
  50. package/geekcode/geekcodeParser.js +1516 -0
  51. package/geekcode/geekcodeVisitor.js +58 -0
  52. package/gql/GQLLexer.js +2203 -0
  53. package/gql/GQLListener.js +5499 -0
  54. package/gql/GQLParser.js +58653 -0
  55. package/gql/GQLVisitor.js +3670 -0
  56. package/kotlin/kotlin/KotlinLexer.js +1257 -1247
  57. package/kotlin/kotlin/KotlinParser.js +3991 -3425
  58. package/kotlin/kotlin/KotlinParserListener.js +36 -0
  59. package/kotlin/kotlin/KotlinParserVisitor.js +24 -0
  60. package/maml/MAMLLexer.js +116 -0
  61. package/maml/MAMLListener.js +72 -0
  62. package/maml/MAMLParser.js +935 -0
  63. package/maml/MAMLVisitor.js +52 -0
  64. package/odin/odinLexer.js +739 -0
  65. package/odin/odinListener.js +882 -0
  66. package/odin/odinParser.js +12189 -0
  67. package/odin/odinVisitor.js +592 -0
  68. package/package.json +1 -1
  69. package/plantUML/PlantUMLLexer.js +215 -316
  70. package/plantUML/PlantUMLParser.js +1045 -2393
  71. package/plantUML/PlantUMLParserListener.js +171 -0
  72. package/plantUML/PlantUMLParserVisitor.js +118 -0
  73. package/sql/mysql/Oracle/MySQLLexer.js +3689 -3668
  74. package/sql/mysql/Oracle/MySQLParser.js +4383 -4399
  75. package/sql/plsql/PlSqlLexer.js +13604 -13587
  76. package/sql/plsql/PlSqlParser.js +51622 -64188
  77. package/sql/plsql/PlSqlParserBase.js +30 -0
  78. package/sql/plsql/PlSqlParserListener.js +36 -9
  79. package/sql/plsql/PlSqlParserVisitor.js +24 -6
  80. package/sql/postgresql/PostgreSQLParser.js +91 -91
  81. package/sql/snowflake/SnowflakeLexer.js +5675 -5497
  82. package/sql/snowflake/SnowflakeParser.js +27252 -22655
  83. package/sql/snowflake/SnowflakeParserListener.js +278 -8
  84. package/sql/snowflake/SnowflakeParserVisitor.js +184 -4
  85. package/sql/sqlite/SQLiteParser.js +2638 -2301
  86. package/sql/sqlite/SQLiteParserListener.js +9 -9
  87. package/sql/sqlite/SQLiteParserVisitor.js +6 -6
  88. package/sysml-v2/SysMLv2Lexer.js +1047 -0
  89. package/sysml-v2/SysMLv2Parser.js +51339 -0
  90. package/sysml-v2/SysMLv2ParserListener.js +4464 -0
  91. package/sysml-v2/SysMLv2ParserVisitor.js +2980 -0
  92. package/turtle/TURTLELexer.js +155 -156
  93. package/vba/vba7_1/vbaLexer.js +1689 -0
  94. package/vba/vba7_1/vbaParser.js +42797 -0
  95. package/vba/vba7_1/vbaParserListener.js +3267 -0
  96. package/vba/vba7_1/vbaParserVisitor.js +2182 -0
  97. package/vhdl/vhdl2008/vhdl2008Listener.js +9 -0
  98. package/vhdl/vhdl2008/vhdl2008Parser.js +2840 -2705
  99. package/vhdl/vhdl2008/vhdl2008Visitor.js +6 -0
  100. package/wkt/wktLexer.js +177 -148
  101. package/wkt/wktListener.js +123 -60
  102. package/wkt/wktParser.js +1802 -1125
  103. package/wkt/wktVisitor.js +72 -30
  104. package/plantUML/PlantUMLListener.js +0 -279
  105. package/plantUML/PlantUMLVisitor.js +0 -190
  106. /package/scala/{ScalaLexer.js → scala2/ScalaLexer.js} +0 -0
  107. /package/scala/{ScalaListener.js → scala2/ScalaListener.js} +0 -0
  108. /package/scala/{ScalaParser.js → scala2/ScalaParser.js} +0 -0
  109. /package/scala/{ScalaVisitor.js → scala2/ScalaVisitor.js} +0 -0
package/wkt/wktParser.js CHANGED
@@ -4,109 +4,129 @@ import antlr4 from 'antlr4';
4
4
  import wktListener from './wktListener.js';
5
5
  import wktVisitor from './wktVisitor.js';
6
6
 
7
- const serializedATN = [4,1,24,316,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,
7
+ const serializedATN = [4,1,31,375,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,
8
8
  4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,
9
9
  2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,
10
- 20,7,20,1,0,5,0,44,8,0,10,0,12,0,47,9,0,1,0,1,0,1,1,1,1,1,1,1,1,1,1,5,1,
11
- 56,8,1,10,1,12,1,59,9,1,1,1,1,1,1,1,3,1,64,8,1,1,2,1,2,1,2,1,2,1,2,1,2,1,
12
- 2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,3,2,80,8,2,1,3,1,3,3,3,84,8,3,1,3,1,3,1,3,
13
- 1,3,1,3,3,3,91,8,3,1,4,1,4,1,4,1,5,1,5,1,5,1,6,1,6,1,6,1,6,1,6,3,6,104,8,
14
- 6,1,6,1,6,1,6,1,6,3,6,110,8,6,5,6,112,8,6,10,6,12,6,115,9,6,1,6,1,6,1,6,
15
- 3,6,120,8,6,1,7,1,7,1,7,1,7,3,7,126,8,7,1,7,1,7,1,7,3,7,131,8,7,5,7,133,
16
- 8,7,10,7,12,7,136,9,7,1,7,1,7,1,7,3,7,141,8,7,1,8,1,8,1,8,1,8,1,8,3,8,148,
17
- 8,8,1,8,1,8,1,8,1,8,3,8,154,8,8,5,8,156,8,8,10,8,12,8,159,9,8,1,8,1,8,1,
18
- 8,3,8,164,8,8,1,9,1,9,1,9,1,9,3,9,170,8,9,1,9,1,9,1,9,3,9,175,8,9,5,9,177,
19
- 8,9,10,9,12,9,180,9,9,1,9,1,9,1,9,3,9,185,8,9,1,10,1,10,1,10,1,10,1,10,5,
20
- 10,192,8,10,10,10,12,10,195,9,10,1,10,1,10,1,10,3,10,200,8,10,1,11,1,11,
21
- 1,11,1,11,1,11,5,11,207,8,11,10,11,12,11,210,9,11,1,11,1,11,1,11,3,11,215,
22
- 8,11,1,12,1,12,1,12,1,12,1,12,5,12,222,8,12,10,12,12,12,225,9,12,1,12,1,
23
- 12,1,12,3,12,230,8,12,1,13,1,13,1,13,1,13,1,13,5,13,237,8,13,10,13,12,13,
24
- 240,9,13,1,13,1,13,1,13,3,13,245,8,13,1,14,1,14,1,14,1,14,1,14,5,14,252,
25
- 8,14,10,14,12,14,255,9,14,1,14,1,14,1,14,3,14,260,8,14,1,15,1,15,1,15,1,
26
- 15,1,15,5,15,267,8,15,10,15,12,15,270,9,15,1,15,1,15,1,16,1,16,1,16,1,16,
27
- 1,16,3,16,279,8,16,1,17,1,17,1,17,1,17,5,17,285,8,17,10,17,12,17,288,9,17,
28
- 1,17,1,17,1,17,3,17,293,8,17,1,18,1,18,1,18,1,18,5,18,299,8,18,10,18,12,
29
- 18,302,9,18,1,18,1,18,1,18,3,18,307,8,18,1,19,4,19,310,8,19,11,19,12,19,
30
- 311,1,20,1,20,1,20,0,0,21,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,
31
- 34,36,38,40,0,0,349,0,45,1,0,0,0,2,50,1,0,0,0,4,79,1,0,0,0,6,81,1,0,0,0,
32
- 8,92,1,0,0,0,10,95,1,0,0,0,12,98,1,0,0,0,14,121,1,0,0,0,16,142,1,0,0,0,18,
33
- 165,1,0,0,0,20,186,1,0,0,0,22,201,1,0,0,0,24,216,1,0,0,0,26,231,1,0,0,0,
34
- 28,246,1,0,0,0,30,261,1,0,0,0,32,278,1,0,0,0,34,292,1,0,0,0,36,306,1,0,0,
35
- 0,38,309,1,0,0,0,40,313,1,0,0,0,42,44,3,4,2,0,43,42,1,0,0,0,44,47,1,0,0,
36
- 0,45,43,1,0,0,0,45,46,1,0,0,0,46,48,1,0,0,0,47,45,1,0,0,0,48,49,5,0,0,1,
37
- 49,1,1,0,0,0,50,63,5,13,0,0,51,52,5,5,0,0,52,57,3,4,2,0,53,54,5,4,0,0,54,
38
- 56,3,4,2,0,55,53,1,0,0,0,56,59,1,0,0,0,57,55,1,0,0,0,57,58,1,0,0,0,58,60,
39
- 1,0,0,0,59,57,1,0,0,0,60,61,5,6,0,0,61,64,1,0,0,0,62,64,5,14,0,0,63,51,1,
40
- 0,0,0,63,62,1,0,0,0,64,3,1,0,0,0,65,80,3,10,5,0,66,80,3,8,4,0,67,80,3,6,
41
- 3,0,68,80,3,18,9,0,69,80,3,16,8,0,70,80,3,14,7,0,71,80,3,12,6,0,72,80,3,
42
- 20,10,0,73,80,3,22,11,0,74,80,3,24,12,0,75,80,3,30,15,0,76,80,3,26,13,0,
43
- 77,80,3,28,14,0,78,80,3,2,1,0,79,65,1,0,0,0,79,66,1,0,0,0,79,67,1,0,0,0,
44
- 79,68,1,0,0,0,79,69,1,0,0,0,79,70,1,0,0,0,79,71,1,0,0,0,79,72,1,0,0,0,79,
45
- 73,1,0,0,0,79,74,1,0,0,0,79,75,1,0,0,0,79,76,1,0,0,0,79,77,1,0,0,0,79,78,
46
- 1,0,0,0,80,5,1,0,0,0,81,90,5,7,0,0,82,84,3,40,20,0,83,82,1,0,0,0,83,84,1,
47
- 0,0,0,84,85,1,0,0,0,85,86,5,5,0,0,86,87,3,38,19,0,87,88,5,6,0,0,88,91,1,
48
- 0,0,0,89,91,5,14,0,0,90,83,1,0,0,0,90,89,1,0,0,0,91,7,1,0,0,0,92,93,5,8,
49
- 0,0,93,94,3,36,18,0,94,9,1,0,0,0,95,96,5,9,0,0,96,97,3,34,17,0,97,11,1,0,
50
- 0,0,98,119,5,19,0,0,99,103,5,5,0,0,100,104,3,36,18,0,101,104,3,30,15,0,102,
51
- 104,3,18,9,0,103,100,1,0,0,0,103,101,1,0,0,0,103,102,1,0,0,0,104,113,1,0,
52
- 0,0,105,109,5,4,0,0,106,110,3,30,15,0,107,110,3,36,18,0,108,110,3,18,9,0,
53
- 109,106,1,0,0,0,109,107,1,0,0,0,109,108,1,0,0,0,110,112,1,0,0,0,111,105,
54
- 1,0,0,0,112,115,1,0,0,0,113,111,1,0,0,0,113,114,1,0,0,0,114,116,1,0,0,0,
55
- 115,113,1,0,0,0,116,117,5,6,0,0,117,120,1,0,0,0,118,120,5,14,0,0,119,99,
56
- 1,0,0,0,119,118,1,0,0,0,120,13,1,0,0,0,121,140,5,17,0,0,122,125,5,5,0,0,
57
- 123,126,3,34,17,0,124,126,3,16,8,0,125,123,1,0,0,0,125,124,1,0,0,0,126,134,
58
- 1,0,0,0,127,130,5,4,0,0,128,131,3,34,17,0,129,131,3,16,8,0,130,128,1,0,0,
59
- 0,130,129,1,0,0,0,131,133,1,0,0,0,132,127,1,0,0,0,133,136,1,0,0,0,134,132,
60
- 1,0,0,0,134,135,1,0,0,0,135,137,1,0,0,0,136,134,1,0,0,0,137,138,5,6,0,0,
61
- 138,141,1,0,0,0,139,141,5,14,0,0,140,122,1,0,0,0,140,139,1,0,0,0,141,15,
62
- 1,0,0,0,142,163,5,18,0,0,143,147,5,5,0,0,144,148,3,36,18,0,145,148,3,30,
63
- 15,0,146,148,3,18,9,0,147,144,1,0,0,0,147,145,1,0,0,0,147,146,1,0,0,0,148,
64
- 157,1,0,0,0,149,153,5,4,0,0,150,154,3,30,15,0,151,154,3,36,18,0,152,154,
65
- 3,18,9,0,153,150,1,0,0,0,153,151,1,0,0,0,153,152,1,0,0,0,154,156,1,0,0,0,
66
- 155,149,1,0,0,0,156,159,1,0,0,0,157,155,1,0,0,0,157,158,1,0,0,0,158,160,
67
- 1,0,0,0,159,157,1,0,0,0,160,161,5,6,0,0,161,164,1,0,0,0,162,164,5,14,0,0,
68
- 163,143,1,0,0,0,163,162,1,0,0,0,164,17,1,0,0,0,165,184,5,16,0,0,166,169,
69
- 5,5,0,0,167,170,3,36,18,0,168,170,3,30,15,0,169,167,1,0,0,0,169,168,1,0,
70
- 0,0,170,178,1,0,0,0,171,174,5,4,0,0,172,175,3,30,15,0,173,175,3,36,18,0,
71
- 174,172,1,0,0,0,174,173,1,0,0,0,175,177,1,0,0,0,176,171,1,0,0,0,177,180,
72
- 1,0,0,0,178,176,1,0,0,0,178,179,1,0,0,0,179,181,1,0,0,0,180,178,1,0,0,0,
73
- 181,182,5,6,0,0,182,185,1,0,0,0,183,185,5,14,0,0,184,166,1,0,0,0,184,183,
74
- 1,0,0,0,185,19,1,0,0,0,186,199,5,10,0,0,187,188,5,5,0,0,188,193,3,32,16,
75
- 0,189,190,5,4,0,0,190,192,3,32,16,0,191,189,1,0,0,0,192,195,1,0,0,0,193,
76
- 191,1,0,0,0,193,194,1,0,0,0,194,196,1,0,0,0,195,193,1,0,0,0,196,197,5,6,
77
- 0,0,197,200,1,0,0,0,198,200,5,14,0,0,199,187,1,0,0,0,199,198,1,0,0,0,200,
78
- 21,1,0,0,0,201,214,5,11,0,0,202,203,5,5,0,0,203,208,3,36,18,0,204,205,5,
79
- 4,0,0,205,207,3,36,18,0,206,204,1,0,0,0,207,210,1,0,0,0,208,206,1,0,0,0,
80
- 208,209,1,0,0,0,209,211,1,0,0,0,210,208,1,0,0,0,211,212,5,6,0,0,212,215,
81
- 1,0,0,0,213,215,5,14,0,0,214,202,1,0,0,0,214,213,1,0,0,0,215,23,1,0,0,0,
82
- 216,229,5,12,0,0,217,218,5,5,0,0,218,223,3,34,17,0,219,220,5,4,0,0,220,222,
83
- 3,34,17,0,221,219,1,0,0,0,222,225,1,0,0,0,223,221,1,0,0,0,223,224,1,0,0,
84
- 0,224,226,1,0,0,0,225,223,1,0,0,0,226,227,5,6,0,0,227,230,1,0,0,0,228,230,
85
- 5,14,0,0,229,217,1,0,0,0,229,228,1,0,0,0,230,25,1,0,0,0,231,244,5,22,0,0,
86
- 232,233,5,5,0,0,233,238,3,34,17,0,234,235,5,4,0,0,235,237,3,34,17,0,236,
87
- 234,1,0,0,0,237,240,1,0,0,0,238,236,1,0,0,0,238,239,1,0,0,0,239,241,1,0,
88
- 0,0,240,238,1,0,0,0,241,242,5,6,0,0,242,245,1,0,0,0,243,245,5,14,0,0,244,
89
- 232,1,0,0,0,244,243,1,0,0,0,245,27,1,0,0,0,246,259,5,21,0,0,247,248,5,5,
90
- 0,0,248,253,3,34,17,0,249,250,5,4,0,0,250,252,3,34,17,0,251,249,1,0,0,0,
91
- 252,255,1,0,0,0,253,251,1,0,0,0,253,254,1,0,0,0,254,256,1,0,0,0,255,253,
92
- 1,0,0,0,256,257,5,6,0,0,257,260,1,0,0,0,258,260,5,14,0,0,259,247,1,0,0,0,
93
- 259,258,1,0,0,0,260,29,1,0,0,0,261,262,5,15,0,0,262,263,5,5,0,0,263,268,
94
- 3,38,19,0,264,265,5,4,0,0,265,267,3,38,19,0,266,264,1,0,0,0,267,270,1,0,
95
- 0,0,268,266,1,0,0,0,268,269,1,0,0,0,269,271,1,0,0,0,270,268,1,0,0,0,271,
96
- 272,5,6,0,0,272,31,1,0,0,0,273,279,3,38,19,0,274,275,5,5,0,0,275,276,3,38,
97
- 19,0,276,277,5,6,0,0,277,279,1,0,0,0,278,273,1,0,0,0,278,274,1,0,0,0,279,
98
- 33,1,0,0,0,280,281,5,5,0,0,281,286,3,36,18,0,282,283,5,4,0,0,283,285,3,36,
99
- 18,0,284,282,1,0,0,0,285,288,1,0,0,0,286,284,1,0,0,0,286,287,1,0,0,0,287,
100
- 289,1,0,0,0,288,286,1,0,0,0,289,290,5,6,0,0,290,293,1,0,0,0,291,293,5,14,
101
- 0,0,292,280,1,0,0,0,292,291,1,0,0,0,293,35,1,0,0,0,294,295,5,5,0,0,295,300,
102
- 3,38,19,0,296,297,5,4,0,0,297,299,3,38,19,0,298,296,1,0,0,0,299,302,1,0,
103
- 0,0,300,298,1,0,0,0,300,301,1,0,0,0,301,303,1,0,0,0,302,300,1,0,0,0,303,
104
- 304,5,6,0,0,304,307,1,0,0,0,305,307,5,14,0,0,306,294,1,0,0,0,306,305,1,0,
105
- 0,0,307,37,1,0,0,0,308,310,5,1,0,0,309,308,1,0,0,0,310,311,1,0,0,0,311,309,
106
- 1,0,0,0,311,312,1,0,0,0,312,39,1,0,0,0,313,314,5,23,0,0,314,41,1,0,0,0,39,
107
- 45,57,63,79,83,90,103,109,113,119,125,130,134,140,147,153,157,163,169,174,
108
- 178,184,193,199,208,214,223,229,238,244,253,259,268,278,286,292,300,306,
109
- 311];
10
+ 20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,
11
+ 7,27,1,0,5,0,58,8,0,10,0,12,0,61,9,0,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
12
+ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,1,81,8,1,1,2,1,2,1,3,1,3,3,3,87,8,
13
+ 3,1,3,1,3,1,3,1,3,1,3,3,3,94,8,3,1,4,1,4,3,4,98,8,4,1,4,1,4,1,5,1,5,3,5,
14
+ 104,8,5,1,5,1,5,1,6,1,6,3,6,110,8,6,1,6,1,6,1,7,1,7,3,7,116,8,7,1,7,1,7,
15
+ 1,8,1,8,3,8,122,8,8,1,8,1,8,1,8,1,8,5,8,128,8,8,10,8,12,8,131,9,8,1,8,1,
16
+ 8,1,8,3,8,136,8,8,1,9,1,9,3,9,140,8,9,1,9,1,9,1,9,1,9,5,9,146,8,9,10,9,12,
17
+ 9,149,9,9,1,9,1,9,1,9,3,9,154,8,9,1,10,1,10,3,10,158,8,10,1,10,1,10,1,10,
18
+ 1,10,5,10,164,8,10,10,10,12,10,167,9,10,1,10,1,10,1,10,3,10,172,8,10,1,11,
19
+ 1,11,3,11,176,8,11,1,11,1,11,1,11,1,11,5,11,182,8,11,10,11,12,11,185,9,11,
20
+ 1,11,1,11,1,11,3,11,190,8,11,1,12,1,12,3,12,194,8,12,1,12,1,12,1,13,1,13,
21
+ 3,13,200,8,13,1,13,1,13,1,13,1,13,5,13,206,8,13,10,13,12,13,209,9,13,1,13,
22
+ 1,13,1,13,3,13,214,8,13,1,14,1,14,1,14,3,14,219,8,14,1,15,1,15,1,15,1,15,
23
+ 1,15,1,15,1,15,1,15,1,15,1,16,1,16,3,16,232,8,16,1,16,1,16,1,16,1,16,5,16,
24
+ 238,8,16,10,16,12,16,241,9,16,1,16,1,16,1,16,3,16,246,8,16,1,17,1,17,3,17,
25
+ 250,8,17,1,17,1,17,1,17,1,17,5,17,256,8,17,10,17,12,17,259,9,17,1,17,1,17,
26
+ 1,17,3,17,264,8,17,1,18,1,18,1,18,3,18,269,8,18,1,19,1,19,3,19,273,8,19,
27
+ 1,19,1,19,1,19,1,19,5,19,279,8,19,10,19,12,19,282,9,19,1,19,1,19,1,19,3,
28
+ 19,287,8,19,1,20,1,20,3,20,291,8,20,1,21,1,21,3,21,295,8,21,1,21,1,21,1,
29
+ 21,1,21,5,21,301,8,21,10,21,12,21,304,9,21,1,21,1,21,1,21,3,21,309,8,21,
30
+ 1,22,1,22,3,22,313,8,22,1,22,1,22,1,22,1,22,5,22,319,8,22,10,22,12,22,322,
31
+ 9,22,1,22,1,22,1,22,3,22,327,8,22,1,23,1,23,1,23,1,23,5,23,333,8,23,10,23,
32
+ 12,23,336,9,23,1,23,1,23,1,23,3,23,341,8,23,1,24,1,24,1,24,1,24,5,24,347,
33
+ 8,24,10,24,12,24,350,9,24,1,24,1,24,1,24,3,24,355,8,24,1,25,1,25,1,25,1,
34
+ 25,1,25,1,25,3,25,363,8,25,1,26,1,26,1,26,3,26,368,8,26,1,26,3,26,371,8,
35
+ 26,1,27,1,27,1,27,0,0,28,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,
36
+ 36,38,40,42,44,46,48,50,52,54,0,2,1,0,25,27,2,0,1,1,28,30,412,0,59,1,0,0,
37
+ 0,2,80,1,0,0,0,4,82,1,0,0,0,6,84,1,0,0,0,8,95,1,0,0,0,10,101,1,0,0,0,12,
38
+ 107,1,0,0,0,14,113,1,0,0,0,16,119,1,0,0,0,18,137,1,0,0,0,20,155,1,0,0,0,
39
+ 22,173,1,0,0,0,24,191,1,0,0,0,26,197,1,0,0,0,28,218,1,0,0,0,30,220,1,0,0,
40
+ 0,32,229,1,0,0,0,34,247,1,0,0,0,36,268,1,0,0,0,38,270,1,0,0,0,40,290,1,0,
41
+ 0,0,42,292,1,0,0,0,44,310,1,0,0,0,46,340,1,0,0,0,48,354,1,0,0,0,50,362,1,
42
+ 0,0,0,52,364,1,0,0,0,54,372,1,0,0,0,56,58,3,2,1,0,57,56,1,0,0,0,58,61,1,
43
+ 0,0,0,59,57,1,0,0,0,59,60,1,0,0,0,60,62,1,0,0,0,61,59,1,0,0,0,62,63,5,0,
44
+ 0,1,63,1,1,0,0,0,64,81,3,6,3,0,65,81,3,8,4,0,66,81,3,10,5,0,67,81,3,12,6,
45
+ 0,68,81,3,14,7,0,69,81,3,16,8,0,70,81,3,18,9,0,71,81,3,20,10,0,72,81,3,22,
46
+ 11,0,73,81,3,24,12,0,74,81,3,26,13,0,75,81,3,32,16,0,76,81,3,34,17,0,77,
47
+ 81,3,38,19,0,78,81,3,42,21,0,79,81,3,44,22,0,80,64,1,0,0,0,80,65,1,0,0,0,
48
+ 80,66,1,0,0,0,80,67,1,0,0,0,80,68,1,0,0,0,80,69,1,0,0,0,80,70,1,0,0,0,80,
49
+ 71,1,0,0,0,80,72,1,0,0,0,80,73,1,0,0,0,80,74,1,0,0,0,80,75,1,0,0,0,80,76,
50
+ 1,0,0,0,80,77,1,0,0,0,80,78,1,0,0,0,80,79,1,0,0,0,81,3,1,0,0,0,82,83,7,0,
51
+ 0,0,83,5,1,0,0,0,84,86,5,7,0,0,85,87,3,4,2,0,86,85,1,0,0,0,86,87,1,0,0,0,
52
+ 87,93,1,0,0,0,88,89,5,5,0,0,89,90,3,52,26,0,90,91,5,6,0,0,91,94,1,0,0,0,
53
+ 92,94,5,24,0,0,93,88,1,0,0,0,93,92,1,0,0,0,94,7,1,0,0,0,95,97,5,8,0,0,96,
54
+ 98,3,4,2,0,97,96,1,0,0,0,97,98,1,0,0,0,98,99,1,0,0,0,99,100,3,48,24,0,100,
55
+ 9,1,0,0,0,101,103,5,9,0,0,102,104,3,4,2,0,103,102,1,0,0,0,103,104,1,0,0,
56
+ 0,104,105,1,0,0,0,105,106,3,48,24,0,106,11,1,0,0,0,107,109,5,10,0,0,108,
57
+ 110,3,4,2,0,109,108,1,0,0,0,109,110,1,0,0,0,110,111,1,0,0,0,111,112,3,46,
58
+ 23,0,112,13,1,0,0,0,113,115,5,11,0,0,114,116,3,4,2,0,115,114,1,0,0,0,115,
59
+ 116,1,0,0,0,116,117,1,0,0,0,117,118,3,46,23,0,118,15,1,0,0,0,119,121,5,12,
60
+ 0,0,120,122,3,4,2,0,121,120,1,0,0,0,121,122,1,0,0,0,122,135,1,0,0,0,123,
61
+ 124,5,5,0,0,124,129,3,50,25,0,125,126,5,4,0,0,126,128,3,50,25,0,127,125,
62
+ 1,0,0,0,128,131,1,0,0,0,129,127,1,0,0,0,129,130,1,0,0,0,130,132,1,0,0,0,
63
+ 131,129,1,0,0,0,132,133,5,6,0,0,133,136,1,0,0,0,134,136,5,24,0,0,135,123,
64
+ 1,0,0,0,135,134,1,0,0,0,136,17,1,0,0,0,137,139,5,13,0,0,138,140,3,4,2,0,
65
+ 139,138,1,0,0,0,139,140,1,0,0,0,140,153,1,0,0,0,141,142,5,5,0,0,142,147,
66
+ 3,48,24,0,143,144,5,4,0,0,144,146,3,48,24,0,145,143,1,0,0,0,146,149,1,0,
67
+ 0,0,147,145,1,0,0,0,147,148,1,0,0,0,148,150,1,0,0,0,149,147,1,0,0,0,150,
68
+ 151,5,6,0,0,151,154,1,0,0,0,152,154,5,24,0,0,153,141,1,0,0,0,153,152,1,0,
69
+ 0,0,154,19,1,0,0,0,155,157,5,14,0,0,156,158,3,4,2,0,157,156,1,0,0,0,157,
70
+ 158,1,0,0,0,158,171,1,0,0,0,159,160,5,5,0,0,160,165,3,46,23,0,161,162,5,
71
+ 4,0,0,162,164,3,46,23,0,163,161,1,0,0,0,164,167,1,0,0,0,165,163,1,0,0,0,
72
+ 165,166,1,0,0,0,166,168,1,0,0,0,167,165,1,0,0,0,168,169,5,6,0,0,169,172,
73
+ 1,0,0,0,170,172,5,24,0,0,171,159,1,0,0,0,171,170,1,0,0,0,172,21,1,0,0,0,
74
+ 173,175,5,15,0,0,174,176,3,4,2,0,175,174,1,0,0,0,175,176,1,0,0,0,176,189,
75
+ 1,0,0,0,177,178,5,5,0,0,178,183,3,2,1,0,179,180,5,4,0,0,180,182,3,2,1,0,
76
+ 181,179,1,0,0,0,182,185,1,0,0,0,183,181,1,0,0,0,183,184,1,0,0,0,184,186,
77
+ 1,0,0,0,185,183,1,0,0,0,186,187,5,6,0,0,187,190,1,0,0,0,188,190,5,24,0,0,
78
+ 189,177,1,0,0,0,189,188,1,0,0,0,190,23,1,0,0,0,191,193,5,16,0,0,192,194,
79
+ 3,4,2,0,193,192,1,0,0,0,193,194,1,0,0,0,194,195,1,0,0,0,195,196,3,48,24,
80
+ 0,196,25,1,0,0,0,197,199,5,17,0,0,198,200,3,4,2,0,199,198,1,0,0,0,199,200,
81
+ 1,0,0,0,200,213,1,0,0,0,201,202,5,5,0,0,202,207,3,28,14,0,203,204,5,4,0,
82
+ 0,204,206,3,28,14,0,205,203,1,0,0,0,206,209,1,0,0,0,207,205,1,0,0,0,207,
83
+ 208,1,0,0,0,208,210,1,0,0,0,209,207,1,0,0,0,210,211,5,6,0,0,211,214,1,0,
84
+ 0,0,212,214,5,24,0,0,213,201,1,0,0,0,213,212,1,0,0,0,214,27,1,0,0,0,215,
85
+ 219,3,48,24,0,216,219,3,24,12,0,217,219,3,30,15,0,218,215,1,0,0,0,218,216,
86
+ 1,0,0,0,218,217,1,0,0,0,219,29,1,0,0,0,220,221,5,18,0,0,221,222,5,5,0,0,
87
+ 222,223,3,54,27,0,223,224,5,4,0,0,224,225,3,54,27,0,225,226,5,4,0,0,226,
88
+ 227,3,54,27,0,227,228,5,6,0,0,228,31,1,0,0,0,229,231,5,19,0,0,230,232,3,
89
+ 4,2,0,231,230,1,0,0,0,231,232,1,0,0,0,232,245,1,0,0,0,233,234,5,5,0,0,234,
90
+ 239,3,36,18,0,235,236,5,4,0,0,236,238,3,36,18,0,237,235,1,0,0,0,238,241,
91
+ 1,0,0,0,239,237,1,0,0,0,239,240,1,0,0,0,240,242,1,0,0,0,241,239,1,0,0,0,
92
+ 242,243,5,6,0,0,243,246,1,0,0,0,244,246,5,24,0,0,245,233,1,0,0,0,245,244,
93
+ 1,0,0,0,246,33,1,0,0,0,247,249,5,20,0,0,248,250,3,4,2,0,249,248,1,0,0,0,
94
+ 249,250,1,0,0,0,250,263,1,0,0,0,251,252,5,5,0,0,252,257,3,36,18,0,253,254,
95
+ 5,4,0,0,254,256,3,36,18,0,255,253,1,0,0,0,256,259,1,0,0,0,257,255,1,0,0,
96
+ 0,257,258,1,0,0,0,258,260,1,0,0,0,259,257,1,0,0,0,260,261,5,6,0,0,261,264,
97
+ 1,0,0,0,262,264,5,24,0,0,263,251,1,0,0,0,263,262,1,0,0,0,264,35,1,0,0,0,
98
+ 265,269,3,48,24,0,266,269,3,24,12,0,267,269,3,26,13,0,268,265,1,0,0,0,268,
99
+ 266,1,0,0,0,268,267,1,0,0,0,269,37,1,0,0,0,270,272,5,21,0,0,271,273,3,4,
100
+ 2,0,272,271,1,0,0,0,272,273,1,0,0,0,273,286,1,0,0,0,274,275,5,5,0,0,275,
101
+ 280,3,40,20,0,276,277,5,4,0,0,277,279,3,40,20,0,278,276,1,0,0,0,279,282,
102
+ 1,0,0,0,280,278,1,0,0,0,280,281,1,0,0,0,281,283,1,0,0,0,282,280,1,0,0,0,
103
+ 283,284,5,6,0,0,284,287,1,0,0,0,285,287,5,24,0,0,286,274,1,0,0,0,286,285,
104
+ 1,0,0,0,287,39,1,0,0,0,288,291,3,46,23,0,289,291,3,32,16,0,290,288,1,0,0,
105
+ 0,290,289,1,0,0,0,291,41,1,0,0,0,292,294,5,22,0,0,293,295,3,4,2,0,294,293,
106
+ 1,0,0,0,294,295,1,0,0,0,295,308,1,0,0,0,296,297,5,5,0,0,297,302,3,46,23,
107
+ 0,298,299,5,4,0,0,299,301,3,46,23,0,300,298,1,0,0,0,301,304,1,0,0,0,302,
108
+ 300,1,0,0,0,302,303,1,0,0,0,303,305,1,0,0,0,304,302,1,0,0,0,305,306,5,6,
109
+ 0,0,306,309,1,0,0,0,307,309,5,24,0,0,308,296,1,0,0,0,308,307,1,0,0,0,309,
110
+ 43,1,0,0,0,310,312,5,23,0,0,311,313,3,4,2,0,312,311,1,0,0,0,312,313,1,0,
111
+ 0,0,313,326,1,0,0,0,314,315,5,5,0,0,315,320,3,46,23,0,316,317,5,4,0,0,317,
112
+ 319,3,46,23,0,318,316,1,0,0,0,319,322,1,0,0,0,320,318,1,0,0,0,320,321,1,
113
+ 0,0,0,321,323,1,0,0,0,322,320,1,0,0,0,323,324,5,6,0,0,324,327,1,0,0,0,325,
114
+ 327,5,24,0,0,326,314,1,0,0,0,326,325,1,0,0,0,327,45,1,0,0,0,328,329,5,5,
115
+ 0,0,329,334,3,48,24,0,330,331,5,4,0,0,331,333,3,48,24,0,332,330,1,0,0,0,
116
+ 333,336,1,0,0,0,334,332,1,0,0,0,334,335,1,0,0,0,335,337,1,0,0,0,336,334,
117
+ 1,0,0,0,337,338,5,6,0,0,338,341,1,0,0,0,339,341,5,24,0,0,340,328,1,0,0,0,
118
+ 340,339,1,0,0,0,341,47,1,0,0,0,342,343,5,5,0,0,343,348,3,52,26,0,344,345,
119
+ 5,4,0,0,345,347,3,52,26,0,346,344,1,0,0,0,347,350,1,0,0,0,348,346,1,0,0,
120
+ 0,348,349,1,0,0,0,349,351,1,0,0,0,350,348,1,0,0,0,351,352,5,6,0,0,352,355,
121
+ 1,0,0,0,353,355,5,24,0,0,354,342,1,0,0,0,354,353,1,0,0,0,355,49,1,0,0,0,
122
+ 356,363,3,52,26,0,357,358,5,5,0,0,358,359,3,52,26,0,359,360,5,6,0,0,360,
123
+ 363,1,0,0,0,361,363,5,24,0,0,362,356,1,0,0,0,362,357,1,0,0,0,362,361,1,0,
124
+ 0,0,363,51,1,0,0,0,364,365,3,54,27,0,365,367,3,54,27,0,366,368,3,54,27,0,
125
+ 367,366,1,0,0,0,367,368,1,0,0,0,368,370,1,0,0,0,369,371,3,54,27,0,370,369,
126
+ 1,0,0,0,370,371,1,0,0,0,371,53,1,0,0,0,372,373,7,1,0,0,373,55,1,0,0,0,49,
127
+ 59,80,86,93,97,103,109,115,121,129,135,139,147,153,157,165,171,175,183,189,
128
+ 193,199,207,213,218,231,239,245,249,257,263,268,272,280,286,290,294,302,
129
+ 308,312,320,326,334,340,348,354,362,367,370];
110
130
 
111
131
 
112
132
  const atn = new antlr4.atn.ATNDeserializer().deserialize(serializedATN);
@@ -121,19 +141,22 @@ export default class wktParser extends antlr4.Parser {
121
141
  static literalNames = [ null, null, null, null, "','", "'('", "')'" ];
122
142
  static symbolicNames = [ null, "DECIMAL", "INTEGERPART", "DECIMALPART",
123
143
  "COMMA", "LPAR", "RPAR", "POINT", "LINESTRING",
124
- "POLYGON", "MULTIPOINT", "MULTILINESTRING",
125
- "MULTIPOLYGON", "GEOMETRYCOLLECTION", "EMPTY_",
126
- "CIRCULARSTRING", "COMPOUNDCURVE", "MULTISURFACE",
127
- "CURVEPOLYGON", "MULTICURVE", "TRIANGLE", "TIN",
128
- "POLYHEDRALSURFACE", "STRING", "WS" ];
129
- static ruleNames = [ "file_", "geometryCollection", "geometry", "pointGeometry",
130
- "lineStringGeometry", "polygonGeometry", "multiCurveGeometry",
131
- "multiSurfaceGeometry", "curvePolygonGeometry",
132
- "compoundCurveGeometry", "multiPointGeometry",
133
- "multiLineStringGeometry", "multiPolygonGeometry",
134
- "multiPolyhedralSurfaceGeometry", "multiTinGeometry",
135
- "circularStringGeometry", "pointOrClosedPoint",
136
- "polygon", "lineString", "point", "name" ];
144
+ "LINEARRING", "POLYGON", "TRIANGLE", "MULTIPOINT",
145
+ "MULTILINESTRING", "MULTIPOLYGON", "GEOMETRYCOLLECTION",
146
+ "CIRCULARSTRING", "COMPOUNDCURVE", "CLOTHOID",
147
+ "CURVEPOLYGON", "MULTICURVE", "MULTISURFACE",
148
+ "POLYHEDRALSURFACE", "TIN", "EMPTY_", "ZM_",
149
+ "Z_", "M_", "NAN_", "NEG_INF_", "INF_", "WS" ];
150
+ static ruleNames = [ "file_", "geometry", "dim", "pointGeometry", "lineStringGeometry",
151
+ "linearRingGeometry", "polygonGeometry", "triangleGeometry",
152
+ "multiPointGeometry", "multiLineStringGeometry",
153
+ "multiPolygonGeometry", "geometryCollection", "circularStringGeometry",
154
+ "compoundCurveGeometry", "compoundCurveMember",
155
+ "clothoidGeometry", "curvePolygonGeometry", "multiCurveGeometry",
156
+ "curveMember", "multiSurfaceGeometry", "surfaceMember",
157
+ "polyhedralSurfaceGeometry", "tinGeometry", "polygonText",
158
+ "lineStringText", "pointOrClosedPoint", "point",
159
+ "ordinate" ];
137
160
 
138
161
  constructor(input) {
139
162
  super(input);
@@ -151,17 +174,17 @@ export default class wktParser extends antlr4.Parser {
151
174
  var _la = 0;
152
175
  try {
153
176
  this.enterOuterAlt(localctx, 1);
154
- this.state = 45;
177
+ this.state = 59;
155
178
  this._errHandler.sync(this);
156
179
  _la = this._input.LA(1);
157
- while((((_la) & ~0x1f) === 0 && ((1 << _la) & 7323520) !== 0)) {
158
- this.state = 42;
180
+ while((((_la) & ~0x1f) === 0 && ((1 << _la) & 16514944) !== 0)) {
181
+ this.state = 56;
159
182
  this.geometry();
160
- this.state = 47;
183
+ this.state = 61;
161
184
  this._errHandler.sync(this);
162
185
  _la = this._input.LA(1);
163
186
  }
164
- this.state = 48;
187
+ this.state = 62;
165
188
  this.match(wktParser.EOF);
166
189
  } catch (re) {
167
190
  if(re instanceof antlr4.error.RecognitionException) {
@@ -179,123 +202,92 @@ export default class wktParser extends antlr4.Parser {
179
202
 
180
203
 
181
204
 
182
- geometryCollection() {
183
- let localctx = new GeometryCollectionContext(this, this._ctx, this.state);
184
- this.enterRule(localctx, 2, wktParser.RULE_geometryCollection);
185
- var _la = 0;
186
- try {
187
- this.enterOuterAlt(localctx, 1);
188
- this.state = 50;
189
- this.match(wktParser.GEOMETRYCOLLECTION);
190
- this.state = 63;
191
- this._errHandler.sync(this);
192
- switch(this._input.LA(1)) {
193
- case 5:
194
- this.state = 51;
195
- this.match(wktParser.LPAR);
196
- this.state = 52;
197
- this.geometry();
198
- this.state = 57;
199
- this._errHandler.sync(this);
200
- _la = this._input.LA(1);
201
- while(_la===4) {
202
- this.state = 53;
203
- this.match(wktParser.COMMA);
204
- this.state = 54;
205
- this.geometry();
206
- this.state = 59;
207
- this._errHandler.sync(this);
208
- _la = this._input.LA(1);
209
- }
210
- this.state = 60;
211
- this.match(wktParser.RPAR);
212
- break;
213
- case 14:
214
- this.state = 62;
215
- this.match(wktParser.EMPTY_);
216
- break;
217
- default:
218
- throw new antlr4.error.NoViableAltException(this);
219
- }
220
- } catch (re) {
221
- if(re instanceof antlr4.error.RecognitionException) {
222
- localctx.exception = re;
223
- this._errHandler.reportError(this, re);
224
- this._errHandler.recover(this, re);
225
- } else {
226
- throw re;
227
- }
228
- } finally {
229
- this.exitRule();
230
- }
231
- return localctx;
232
- }
233
-
234
-
235
-
236
205
  geometry() {
237
206
  let localctx = new GeometryContext(this, this._ctx, this.state);
238
- this.enterRule(localctx, 4, wktParser.RULE_geometry);
207
+ this.enterRule(localctx, 2, wktParser.RULE_geometry);
239
208
  try {
240
- this.enterOuterAlt(localctx, 1);
241
- this.state = 79;
209
+ this.state = 80;
242
210
  this._errHandler.sync(this);
243
211
  switch(this._input.LA(1)) {
244
- case 9:
245
- this.state = 65;
246
- this.polygonGeometry();
212
+ case 7:
213
+ this.enterOuterAlt(localctx, 1);
214
+ this.state = 64;
215
+ this.pointGeometry();
247
216
  break;
248
217
  case 8:
249
- this.state = 66;
218
+ this.enterOuterAlt(localctx, 2);
219
+ this.state = 65;
250
220
  this.lineStringGeometry();
251
221
  break;
252
- case 7:
222
+ case 9:
223
+ this.enterOuterAlt(localctx, 3);
224
+ this.state = 66;
225
+ this.linearRingGeometry();
226
+ break;
227
+ case 10:
228
+ this.enterOuterAlt(localctx, 4);
253
229
  this.state = 67;
254
- this.pointGeometry();
230
+ this.polygonGeometry();
255
231
  break;
256
- case 16:
232
+ case 11:
233
+ this.enterOuterAlt(localctx, 5);
257
234
  this.state = 68;
258
- this.compoundCurveGeometry();
235
+ this.triangleGeometry();
259
236
  break;
260
- case 18:
237
+ case 12:
238
+ this.enterOuterAlt(localctx, 6);
261
239
  this.state = 69;
262
- this.curvePolygonGeometry();
240
+ this.multiPointGeometry();
263
241
  break;
264
- case 17:
242
+ case 13:
243
+ this.enterOuterAlt(localctx, 7);
265
244
  this.state = 70;
266
- this.multiSurfaceGeometry();
245
+ this.multiLineStringGeometry();
267
246
  break;
268
- case 19:
247
+ case 14:
248
+ this.enterOuterAlt(localctx, 8);
269
249
  this.state = 71;
270
- this.multiCurveGeometry();
250
+ this.multiPolygonGeometry();
271
251
  break;
272
- case 10:
252
+ case 15:
253
+ this.enterOuterAlt(localctx, 9);
273
254
  this.state = 72;
274
- this.multiPointGeometry();
255
+ this.geometryCollection();
275
256
  break;
276
- case 11:
257
+ case 16:
258
+ this.enterOuterAlt(localctx, 10);
277
259
  this.state = 73;
278
- this.multiLineStringGeometry();
260
+ this.circularStringGeometry();
279
261
  break;
280
- case 12:
262
+ case 17:
263
+ this.enterOuterAlt(localctx, 11);
281
264
  this.state = 74;
282
- this.multiPolygonGeometry();
265
+ this.compoundCurveGeometry();
283
266
  break;
284
- case 15:
267
+ case 19:
268
+ this.enterOuterAlt(localctx, 12);
285
269
  this.state = 75;
286
- this.circularStringGeometry();
270
+ this.curvePolygonGeometry();
287
271
  break;
288
- case 22:
272
+ case 20:
273
+ this.enterOuterAlt(localctx, 13);
289
274
  this.state = 76;
290
- this.multiPolyhedralSurfaceGeometry();
275
+ this.multiCurveGeometry();
291
276
  break;
292
277
  case 21:
278
+ this.enterOuterAlt(localctx, 14);
293
279
  this.state = 77;
294
- this.multiTinGeometry();
280
+ this.multiSurfaceGeometry();
295
281
  break;
296
- case 13:
282
+ case 22:
283
+ this.enterOuterAlt(localctx, 15);
297
284
  this.state = 78;
298
- this.geometryCollection();
285
+ this.polyhedralSurfaceGeometry();
286
+ break;
287
+ case 23:
288
+ this.enterOuterAlt(localctx, 16);
289
+ this.state = 79;
290
+ this.tinGeometry();
299
291
  break;
300
292
  default:
301
293
  throw new antlr4.error.NoViableAltException(this);
@@ -316,36 +308,66 @@ export default class wktParser extends antlr4.Parser {
316
308
 
317
309
 
318
310
 
311
+ dim() {
312
+ let localctx = new DimContext(this, this._ctx, this.state);
313
+ this.enterRule(localctx, 4, wktParser.RULE_dim);
314
+ var _la = 0;
315
+ try {
316
+ this.enterOuterAlt(localctx, 1);
317
+ this.state = 82;
318
+ _la = this._input.LA(1);
319
+ if(!((((_la) & ~0x1f) === 0 && ((1 << _la) & 234881024) !== 0))) {
320
+ this._errHandler.recoverInline(this);
321
+ }
322
+ else {
323
+ this._errHandler.reportMatch(this);
324
+ this.consume();
325
+ }
326
+ } catch (re) {
327
+ if(re instanceof antlr4.error.RecognitionException) {
328
+ localctx.exception = re;
329
+ this._errHandler.reportError(this, re);
330
+ this._errHandler.recover(this, re);
331
+ } else {
332
+ throw re;
333
+ }
334
+ } finally {
335
+ this.exitRule();
336
+ }
337
+ return localctx;
338
+ }
339
+
340
+
341
+
319
342
  pointGeometry() {
320
343
  let localctx = new PointGeometryContext(this, this._ctx, this.state);
321
344
  this.enterRule(localctx, 6, wktParser.RULE_pointGeometry);
322
345
  var _la = 0;
323
346
  try {
324
347
  this.enterOuterAlt(localctx, 1);
325
- this.state = 81;
348
+ this.state = 84;
326
349
  this.match(wktParser.POINT);
327
- this.state = 90;
350
+ this.state = 86;
351
+ this._errHandler.sync(this);
352
+ _la = this._input.LA(1);
353
+ if((((_la) & ~0x1f) === 0 && ((1 << _la) & 234881024) !== 0)) {
354
+ this.state = 85;
355
+ this.dim();
356
+ }
357
+
358
+ this.state = 93;
328
359
  this._errHandler.sync(this);
329
360
  switch(this._input.LA(1)) {
330
361
  case 5:
331
- case 23:
332
- this.state = 83;
333
- this._errHandler.sync(this);
334
- _la = this._input.LA(1);
335
- if(_la===23) {
336
- this.state = 82;
337
- this.name();
338
- }
339
-
340
- this.state = 85;
362
+ this.state = 88;
341
363
  this.match(wktParser.LPAR);
342
- this.state = 86;
364
+ this.state = 89;
343
365
  this.point();
344
- this.state = 87;
366
+ this.state = 90;
345
367
  this.match(wktParser.RPAR);
346
368
  break;
347
- case 14:
348
- this.state = 89;
369
+ case 24:
370
+ this.state = 92;
349
371
  this.match(wktParser.EMPTY_);
350
372
  break;
351
373
  default:
@@ -370,12 +392,55 @@ export default class wktParser extends antlr4.Parser {
370
392
  lineStringGeometry() {
371
393
  let localctx = new LineStringGeometryContext(this, this._ctx, this.state);
372
394
  this.enterRule(localctx, 8, wktParser.RULE_lineStringGeometry);
395
+ var _la = 0;
373
396
  try {
374
397
  this.enterOuterAlt(localctx, 1);
375
- this.state = 92;
398
+ this.state = 95;
376
399
  this.match(wktParser.LINESTRING);
377
- this.state = 93;
378
- this.lineString();
400
+ this.state = 97;
401
+ this._errHandler.sync(this);
402
+ _la = this._input.LA(1);
403
+ if((((_la) & ~0x1f) === 0 && ((1 << _la) & 234881024) !== 0)) {
404
+ this.state = 96;
405
+ this.dim();
406
+ }
407
+
408
+ this.state = 99;
409
+ this.lineStringText();
410
+ } catch (re) {
411
+ if(re instanceof antlr4.error.RecognitionException) {
412
+ localctx.exception = re;
413
+ this._errHandler.reportError(this, re);
414
+ this._errHandler.recover(this, re);
415
+ } else {
416
+ throw re;
417
+ }
418
+ } finally {
419
+ this.exitRule();
420
+ }
421
+ return localctx;
422
+ }
423
+
424
+
425
+
426
+ linearRingGeometry() {
427
+ let localctx = new LinearRingGeometryContext(this, this._ctx, this.state);
428
+ this.enterRule(localctx, 10, wktParser.RULE_linearRingGeometry);
429
+ var _la = 0;
430
+ try {
431
+ this.enterOuterAlt(localctx, 1);
432
+ this.state = 101;
433
+ this.match(wktParser.LINEARRING);
434
+ this.state = 103;
435
+ this._errHandler.sync(this);
436
+ _la = this._input.LA(1);
437
+ if((((_la) & ~0x1f) === 0 && ((1 << _la) & 234881024) !== 0)) {
438
+ this.state = 102;
439
+ this.dim();
440
+ }
441
+
442
+ this.state = 105;
443
+ this.lineStringText();
379
444
  } catch (re) {
380
445
  if(re instanceof antlr4.error.RecognitionException) {
381
446
  localctx.exception = re;
@@ -394,13 +459,22 @@ export default class wktParser extends antlr4.Parser {
394
459
 
395
460
  polygonGeometry() {
396
461
  let localctx = new PolygonGeometryContext(this, this._ctx, this.state);
397
- this.enterRule(localctx, 10, wktParser.RULE_polygonGeometry);
462
+ this.enterRule(localctx, 12, wktParser.RULE_polygonGeometry);
463
+ var _la = 0;
398
464
  try {
399
465
  this.enterOuterAlt(localctx, 1);
400
- this.state = 95;
466
+ this.state = 107;
401
467
  this.match(wktParser.POLYGON);
402
- this.state = 96;
403
- this.polygon();
468
+ this.state = 109;
469
+ this._errHandler.sync(this);
470
+ _la = this._input.LA(1);
471
+ if((((_la) & ~0x1f) === 0 && ((1 << _la) & 234881024) !== 0)) {
472
+ this.state = 108;
473
+ this.dim();
474
+ }
475
+
476
+ this.state = 111;
477
+ this.polygonText();
404
478
  } catch (re) {
405
479
  if(re instanceof antlr4.error.RecognitionException) {
406
480
  localctx.exception = re;
@@ -417,78 +491,24 @@ export default class wktParser extends antlr4.Parser {
417
491
 
418
492
 
419
493
 
420
- multiCurveGeometry() {
421
- let localctx = new MultiCurveGeometryContext(this, this._ctx, this.state);
422
- this.enterRule(localctx, 12, wktParser.RULE_multiCurveGeometry);
494
+ triangleGeometry() {
495
+ let localctx = new TriangleGeometryContext(this, this._ctx, this.state);
496
+ this.enterRule(localctx, 14, wktParser.RULE_triangleGeometry);
423
497
  var _la = 0;
424
498
  try {
425
499
  this.enterOuterAlt(localctx, 1);
426
- this.state = 98;
427
- this.match(wktParser.MULTICURVE);
428
- this.state = 119;
500
+ this.state = 113;
501
+ this.match(wktParser.TRIANGLE);
502
+ this.state = 115;
429
503
  this._errHandler.sync(this);
430
- switch(this._input.LA(1)) {
431
- case 5:
432
- this.state = 99;
433
- this.match(wktParser.LPAR);
434
- this.state = 103;
435
- this._errHandler.sync(this);
436
- switch(this._input.LA(1)) {
437
- case 5:
438
- case 14:
439
- this.state = 100;
440
- this.lineString();
441
- break;
442
- case 15:
443
- this.state = 101;
444
- this.circularStringGeometry();
445
- break;
446
- case 16:
447
- this.state = 102;
448
- this.compoundCurveGeometry();
449
- break;
450
- default:
451
- throw new antlr4.error.NoViableAltException(this);
452
- }
453
- this.state = 113;
454
- this._errHandler.sync(this);
455
- _la = this._input.LA(1);
456
- while(_la===4) {
457
- this.state = 105;
458
- this.match(wktParser.COMMA);
459
- this.state = 109;
460
- this._errHandler.sync(this);
461
- switch(this._input.LA(1)) {
462
- case 15:
463
- this.state = 106;
464
- this.circularStringGeometry();
465
- break;
466
- case 5:
467
- case 14:
468
- this.state = 107;
469
- this.lineString();
470
- break;
471
- case 16:
472
- this.state = 108;
473
- this.compoundCurveGeometry();
474
- break;
475
- default:
476
- throw new antlr4.error.NoViableAltException(this);
477
- }
478
- this.state = 115;
479
- this._errHandler.sync(this);
480
- _la = this._input.LA(1);
481
- }
482
- this.state = 116;
483
- this.match(wktParser.RPAR);
484
- break;
485
- case 14:
486
- this.state = 118;
487
- this.match(wktParser.EMPTY_);
488
- break;
489
- default:
490
- throw new antlr4.error.NoViableAltException(this);
504
+ _la = this._input.LA(1);
505
+ if((((_la) & ~0x1f) === 0 && ((1 << _la) & 234881024) !== 0)) {
506
+ this.state = 114;
507
+ this.dim();
491
508
  }
509
+
510
+ this.state = 117;
511
+ this.polygonText();
492
512
  } catch (re) {
493
513
  if(re instanceof antlr4.error.RecognitionException) {
494
514
  localctx.exception = re;
@@ -505,65 +525,47 @@ export default class wktParser extends antlr4.Parser {
505
525
 
506
526
 
507
527
 
508
- multiSurfaceGeometry() {
509
- let localctx = new MultiSurfaceGeometryContext(this, this._ctx, this.state);
510
- this.enterRule(localctx, 14, wktParser.RULE_multiSurfaceGeometry);
528
+ multiPointGeometry() {
529
+ let localctx = new MultiPointGeometryContext(this, this._ctx, this.state);
530
+ this.enterRule(localctx, 16, wktParser.RULE_multiPointGeometry);
511
531
  var _la = 0;
512
532
  try {
513
533
  this.enterOuterAlt(localctx, 1);
534
+ this.state = 119;
535
+ this.match(wktParser.MULTIPOINT);
514
536
  this.state = 121;
515
- this.match(wktParser.MULTISURFACE);
516
- this.state = 140;
537
+ this._errHandler.sync(this);
538
+ _la = this._input.LA(1);
539
+ if((((_la) & ~0x1f) === 0 && ((1 << _la) & 234881024) !== 0)) {
540
+ this.state = 120;
541
+ this.dim();
542
+ }
543
+
544
+ this.state = 135;
517
545
  this._errHandler.sync(this);
518
546
  switch(this._input.LA(1)) {
519
547
  case 5:
520
- this.state = 122;
548
+ this.state = 123;
521
549
  this.match(wktParser.LPAR);
522
- this.state = 125;
523
- this._errHandler.sync(this);
524
- switch(this._input.LA(1)) {
525
- case 5:
526
- case 14:
527
- this.state = 123;
528
- this.polygon();
529
- break;
530
- case 18:
531
- this.state = 124;
532
- this.curvePolygonGeometry();
533
- break;
534
- default:
535
- throw new antlr4.error.NoViableAltException(this);
536
- }
537
- this.state = 134;
550
+ this.state = 124;
551
+ this.pointOrClosedPoint();
552
+ this.state = 129;
538
553
  this._errHandler.sync(this);
539
554
  _la = this._input.LA(1);
540
555
  while(_la===4) {
541
- this.state = 127;
556
+ this.state = 125;
542
557
  this.match(wktParser.COMMA);
543
- this.state = 130;
544
- this._errHandler.sync(this);
545
- switch(this._input.LA(1)) {
546
- case 5:
547
- case 14:
548
- this.state = 128;
549
- this.polygon();
550
- break;
551
- case 18:
552
- this.state = 129;
553
- this.curvePolygonGeometry();
554
- break;
555
- default:
556
- throw new antlr4.error.NoViableAltException(this);
557
- }
558
- this.state = 136;
558
+ this.state = 126;
559
+ this.pointOrClosedPoint();
560
+ this.state = 131;
559
561
  this._errHandler.sync(this);
560
562
  _la = this._input.LA(1);
561
563
  }
562
- this.state = 137;
564
+ this.state = 132;
563
565
  this.match(wktParser.RPAR);
564
566
  break;
565
- case 14:
566
- this.state = 139;
567
+ case 24:
568
+ this.state = 134;
567
569
  this.match(wktParser.EMPTY_);
568
570
  break;
569
571
  default:
@@ -585,73 +587,47 @@ export default class wktParser extends antlr4.Parser {
585
587
 
586
588
 
587
589
 
588
- curvePolygonGeometry() {
589
- let localctx = new CurvePolygonGeometryContext(this, this._ctx, this.state);
590
- this.enterRule(localctx, 16, wktParser.RULE_curvePolygonGeometry);
590
+ multiLineStringGeometry() {
591
+ let localctx = new MultiLineStringGeometryContext(this, this._ctx, this.state);
592
+ this.enterRule(localctx, 18, wktParser.RULE_multiLineStringGeometry);
591
593
  var _la = 0;
592
594
  try {
593
595
  this.enterOuterAlt(localctx, 1);
594
- this.state = 142;
595
- this.match(wktParser.CURVEPOLYGON);
596
- this.state = 163;
596
+ this.state = 137;
597
+ this.match(wktParser.MULTILINESTRING);
598
+ this.state = 139;
599
+ this._errHandler.sync(this);
600
+ _la = this._input.LA(1);
601
+ if((((_la) & ~0x1f) === 0 && ((1 << _la) & 234881024) !== 0)) {
602
+ this.state = 138;
603
+ this.dim();
604
+ }
605
+
606
+ this.state = 153;
597
607
  this._errHandler.sync(this);
598
608
  switch(this._input.LA(1)) {
599
609
  case 5:
600
- this.state = 143;
610
+ this.state = 141;
601
611
  this.match(wktParser.LPAR);
612
+ this.state = 142;
613
+ this.lineStringText();
602
614
  this.state = 147;
603
615
  this._errHandler.sync(this);
604
- switch(this._input.LA(1)) {
605
- case 5:
606
- case 14:
607
- this.state = 144;
608
- this.lineString();
609
- break;
610
- case 15:
611
- this.state = 145;
612
- this.circularStringGeometry();
613
- break;
614
- case 16:
615
- this.state = 146;
616
- this.compoundCurveGeometry();
617
- break;
618
- default:
619
- throw new antlr4.error.NoViableAltException(this);
620
- }
621
- this.state = 157;
622
- this._errHandler.sync(this);
623
616
  _la = this._input.LA(1);
624
617
  while(_la===4) {
625
- this.state = 149;
618
+ this.state = 143;
626
619
  this.match(wktParser.COMMA);
627
- this.state = 153;
628
- this._errHandler.sync(this);
629
- switch(this._input.LA(1)) {
630
- case 15:
631
- this.state = 150;
632
- this.circularStringGeometry();
633
- break;
634
- case 5:
635
- case 14:
636
- this.state = 151;
637
- this.lineString();
638
- break;
639
- case 16:
640
- this.state = 152;
641
- this.compoundCurveGeometry();
642
- break;
643
- default:
644
- throw new antlr4.error.NoViableAltException(this);
645
- }
646
- this.state = 159;
620
+ this.state = 144;
621
+ this.lineStringText();
622
+ this.state = 149;
647
623
  this._errHandler.sync(this);
648
624
  _la = this._input.LA(1);
649
625
  }
650
- this.state = 160;
626
+ this.state = 150;
651
627
  this.match(wktParser.RPAR);
652
628
  break;
653
- case 14:
654
- this.state = 162;
629
+ case 24:
630
+ this.state = 152;
655
631
  this.match(wktParser.EMPTY_);
656
632
  break;
657
633
  default:
@@ -673,65 +649,47 @@ export default class wktParser extends antlr4.Parser {
673
649
 
674
650
 
675
651
 
676
- compoundCurveGeometry() {
677
- let localctx = new CompoundCurveGeometryContext(this, this._ctx, this.state);
678
- this.enterRule(localctx, 18, wktParser.RULE_compoundCurveGeometry);
652
+ multiPolygonGeometry() {
653
+ let localctx = new MultiPolygonGeometryContext(this, this._ctx, this.state);
654
+ this.enterRule(localctx, 20, wktParser.RULE_multiPolygonGeometry);
679
655
  var _la = 0;
680
656
  try {
681
657
  this.enterOuterAlt(localctx, 1);
682
- this.state = 165;
683
- this.match(wktParser.COMPOUNDCURVE);
684
- this.state = 184;
658
+ this.state = 155;
659
+ this.match(wktParser.MULTIPOLYGON);
660
+ this.state = 157;
661
+ this._errHandler.sync(this);
662
+ _la = this._input.LA(1);
663
+ if((((_la) & ~0x1f) === 0 && ((1 << _la) & 234881024) !== 0)) {
664
+ this.state = 156;
665
+ this.dim();
666
+ }
667
+
668
+ this.state = 171;
685
669
  this._errHandler.sync(this);
686
670
  switch(this._input.LA(1)) {
687
671
  case 5:
688
- this.state = 166;
672
+ this.state = 159;
689
673
  this.match(wktParser.LPAR);
690
- this.state = 169;
691
- this._errHandler.sync(this);
692
- switch(this._input.LA(1)) {
693
- case 5:
694
- case 14:
695
- this.state = 167;
696
- this.lineString();
697
- break;
698
- case 15:
699
- this.state = 168;
700
- this.circularStringGeometry();
701
- break;
702
- default:
703
- throw new antlr4.error.NoViableAltException(this);
704
- }
705
- this.state = 178;
674
+ this.state = 160;
675
+ this.polygonText();
676
+ this.state = 165;
706
677
  this._errHandler.sync(this);
707
678
  _la = this._input.LA(1);
708
679
  while(_la===4) {
709
- this.state = 171;
680
+ this.state = 161;
710
681
  this.match(wktParser.COMMA);
711
- this.state = 174;
712
- this._errHandler.sync(this);
713
- switch(this._input.LA(1)) {
714
- case 15:
715
- this.state = 172;
716
- this.circularStringGeometry();
717
- break;
718
- case 5:
719
- case 14:
720
- this.state = 173;
721
- this.lineString();
722
- break;
723
- default:
724
- throw new antlr4.error.NoViableAltException(this);
725
- }
726
- this.state = 180;
682
+ this.state = 162;
683
+ this.polygonText();
684
+ this.state = 167;
727
685
  this._errHandler.sync(this);
728
686
  _la = this._input.LA(1);
729
687
  }
730
- this.state = 181;
688
+ this.state = 168;
731
689
  this.match(wktParser.RPAR);
732
690
  break;
733
- case 14:
734
- this.state = 183;
691
+ case 24:
692
+ this.state = 170;
735
693
  this.match(wktParser.EMPTY_);
736
694
  break;
737
695
  default:
@@ -753,39 +711,47 @@ export default class wktParser extends antlr4.Parser {
753
711
 
754
712
 
755
713
 
756
- multiPointGeometry() {
757
- let localctx = new MultiPointGeometryContext(this, this._ctx, this.state);
758
- this.enterRule(localctx, 20, wktParser.RULE_multiPointGeometry);
714
+ geometryCollection() {
715
+ let localctx = new GeometryCollectionContext(this, this._ctx, this.state);
716
+ this.enterRule(localctx, 22, wktParser.RULE_geometryCollection);
759
717
  var _la = 0;
760
718
  try {
761
719
  this.enterOuterAlt(localctx, 1);
762
- this.state = 186;
763
- this.match(wktParser.MULTIPOINT);
764
- this.state = 199;
720
+ this.state = 173;
721
+ this.match(wktParser.GEOMETRYCOLLECTION);
722
+ this.state = 175;
723
+ this._errHandler.sync(this);
724
+ _la = this._input.LA(1);
725
+ if((((_la) & ~0x1f) === 0 && ((1 << _la) & 234881024) !== 0)) {
726
+ this.state = 174;
727
+ this.dim();
728
+ }
729
+
730
+ this.state = 189;
765
731
  this._errHandler.sync(this);
766
732
  switch(this._input.LA(1)) {
767
733
  case 5:
768
- this.state = 187;
734
+ this.state = 177;
769
735
  this.match(wktParser.LPAR);
770
- this.state = 188;
771
- this.pointOrClosedPoint();
772
- this.state = 193;
736
+ this.state = 178;
737
+ this.geometry();
738
+ this.state = 183;
773
739
  this._errHandler.sync(this);
774
740
  _la = this._input.LA(1);
775
741
  while(_la===4) {
776
- this.state = 189;
742
+ this.state = 179;
777
743
  this.match(wktParser.COMMA);
778
- this.state = 190;
779
- this.pointOrClosedPoint();
780
- this.state = 195;
744
+ this.state = 180;
745
+ this.geometry();
746
+ this.state = 185;
781
747
  this._errHandler.sync(this);
782
748
  _la = this._input.LA(1);
783
749
  }
784
- this.state = 196;
750
+ this.state = 186;
785
751
  this.match(wktParser.RPAR);
786
752
  break;
787
- case 14:
788
- this.state = 198;
753
+ case 24:
754
+ this.state = 188;
789
755
  this.match(wktParser.EMPTY_);
790
756
  break;
791
757
  default:
@@ -807,39 +773,81 @@ export default class wktParser extends antlr4.Parser {
807
773
 
808
774
 
809
775
 
810
- multiLineStringGeometry() {
811
- let localctx = new MultiLineStringGeometryContext(this, this._ctx, this.state);
812
- this.enterRule(localctx, 22, wktParser.RULE_multiLineStringGeometry);
776
+ circularStringGeometry() {
777
+ let localctx = new CircularStringGeometryContext(this, this._ctx, this.state);
778
+ this.enterRule(localctx, 24, wktParser.RULE_circularStringGeometry);
813
779
  var _la = 0;
814
780
  try {
815
781
  this.enterOuterAlt(localctx, 1);
816
- this.state = 201;
817
- this.match(wktParser.MULTILINESTRING);
818
- this.state = 214;
782
+ this.state = 191;
783
+ this.match(wktParser.CIRCULARSTRING);
784
+ this.state = 193;
785
+ this._errHandler.sync(this);
786
+ _la = this._input.LA(1);
787
+ if((((_la) & ~0x1f) === 0 && ((1 << _la) & 234881024) !== 0)) {
788
+ this.state = 192;
789
+ this.dim();
790
+ }
791
+
792
+ this.state = 195;
793
+ this.lineStringText();
794
+ } catch (re) {
795
+ if(re instanceof antlr4.error.RecognitionException) {
796
+ localctx.exception = re;
797
+ this._errHandler.reportError(this, re);
798
+ this._errHandler.recover(this, re);
799
+ } else {
800
+ throw re;
801
+ }
802
+ } finally {
803
+ this.exitRule();
804
+ }
805
+ return localctx;
806
+ }
807
+
808
+
809
+
810
+ compoundCurveGeometry() {
811
+ let localctx = new CompoundCurveGeometryContext(this, this._ctx, this.state);
812
+ this.enterRule(localctx, 26, wktParser.RULE_compoundCurveGeometry);
813
+ var _la = 0;
814
+ try {
815
+ this.enterOuterAlt(localctx, 1);
816
+ this.state = 197;
817
+ this.match(wktParser.COMPOUNDCURVE);
818
+ this.state = 199;
819
+ this._errHandler.sync(this);
820
+ _la = this._input.LA(1);
821
+ if((((_la) & ~0x1f) === 0 && ((1 << _la) & 234881024) !== 0)) {
822
+ this.state = 198;
823
+ this.dim();
824
+ }
825
+
826
+ this.state = 213;
819
827
  this._errHandler.sync(this);
820
828
  switch(this._input.LA(1)) {
821
829
  case 5:
822
- this.state = 202;
830
+ this.state = 201;
823
831
  this.match(wktParser.LPAR);
824
- this.state = 203;
825
- this.lineString();
826
- this.state = 208;
832
+ this.state = 202;
833
+ this.compoundCurveMember();
834
+ this.state = 207;
827
835
  this._errHandler.sync(this);
828
836
  _la = this._input.LA(1);
829
837
  while(_la===4) {
830
- this.state = 204;
838
+ this.state = 203;
831
839
  this.match(wktParser.COMMA);
832
- this.state = 205;
833
- this.lineString();
834
- this.state = 210;
840
+ this.state = 204;
841
+ this.compoundCurveMember();
842
+ this.state = 209;
835
843
  this._errHandler.sync(this);
836
844
  _la = this._input.LA(1);
837
845
  }
838
- this.state = 211;
846
+ this.state = 210;
839
847
  this.match(wktParser.RPAR);
840
848
  break;
841
- case 14:
842
- this.state = 213;
849
+ case 24:
850
+ this.state = 212;
843
851
  this.match(wktParser.EMPTY_);
844
852
  break;
845
853
  default:
@@ -861,40 +869,28 @@ export default class wktParser extends antlr4.Parser {
861
869
 
862
870
 
863
871
 
864
- multiPolygonGeometry() {
865
- let localctx = new MultiPolygonGeometryContext(this, this._ctx, this.state);
866
- this.enterRule(localctx, 24, wktParser.RULE_multiPolygonGeometry);
867
- var _la = 0;
872
+ compoundCurveMember() {
873
+ let localctx = new CompoundCurveMemberContext(this, this._ctx, this.state);
874
+ this.enterRule(localctx, 28, wktParser.RULE_compoundCurveMember);
868
875
  try {
869
- this.enterOuterAlt(localctx, 1);
870
- this.state = 216;
871
- this.match(wktParser.MULTIPOLYGON);
872
- this.state = 229;
876
+ this.state = 218;
873
877
  this._errHandler.sync(this);
874
878
  switch(this._input.LA(1)) {
875
879
  case 5:
876
- this.state = 217;
877
- this.match(wktParser.LPAR);
878
- this.state = 218;
879
- this.polygon();
880
- this.state = 223;
881
- this._errHandler.sync(this);
882
- _la = this._input.LA(1);
883
- while(_la===4) {
884
- this.state = 219;
885
- this.match(wktParser.COMMA);
886
- this.state = 220;
887
- this.polygon();
888
- this.state = 225;
889
- this._errHandler.sync(this);
890
- _la = this._input.LA(1);
891
- }
892
- this.state = 226;
893
- this.match(wktParser.RPAR);
880
+ case 24:
881
+ this.enterOuterAlt(localctx, 1);
882
+ this.state = 215;
883
+ this.lineStringText();
894
884
  break;
895
- case 14:
896
- this.state = 228;
897
- this.match(wktParser.EMPTY_);
885
+ case 16:
886
+ this.enterOuterAlt(localctx, 2);
887
+ this.state = 216;
888
+ this.circularStringGeometry();
889
+ break;
890
+ case 18:
891
+ this.enterOuterAlt(localctx, 3);
892
+ this.state = 217;
893
+ this.clothoidGeometry();
898
894
  break;
899
895
  default:
900
896
  throw new antlr4.error.NoViableAltException(this);
@@ -915,39 +911,84 @@ export default class wktParser extends antlr4.Parser {
915
911
 
916
912
 
917
913
 
918
- multiPolyhedralSurfaceGeometry() {
919
- let localctx = new MultiPolyhedralSurfaceGeometryContext(this, this._ctx, this.state);
920
- this.enterRule(localctx, 26, wktParser.RULE_multiPolyhedralSurfaceGeometry);
914
+ clothoidGeometry() {
915
+ let localctx = new ClothoidGeometryContext(this, this._ctx, this.state);
916
+ this.enterRule(localctx, 30, wktParser.RULE_clothoidGeometry);
917
+ try {
918
+ this.enterOuterAlt(localctx, 1);
919
+ this.state = 220;
920
+ this.match(wktParser.CLOTHOID);
921
+ this.state = 221;
922
+ this.match(wktParser.LPAR);
923
+ this.state = 222;
924
+ this.ordinate();
925
+ this.state = 223;
926
+ this.match(wktParser.COMMA);
927
+ this.state = 224;
928
+ this.ordinate();
929
+ this.state = 225;
930
+ this.match(wktParser.COMMA);
931
+ this.state = 226;
932
+ this.ordinate();
933
+ this.state = 227;
934
+ this.match(wktParser.RPAR);
935
+ } catch (re) {
936
+ if(re instanceof antlr4.error.RecognitionException) {
937
+ localctx.exception = re;
938
+ this._errHandler.reportError(this, re);
939
+ this._errHandler.recover(this, re);
940
+ } else {
941
+ throw re;
942
+ }
943
+ } finally {
944
+ this.exitRule();
945
+ }
946
+ return localctx;
947
+ }
948
+
949
+
950
+
951
+ curvePolygonGeometry() {
952
+ let localctx = new CurvePolygonGeometryContext(this, this._ctx, this.state);
953
+ this.enterRule(localctx, 32, wktParser.RULE_curvePolygonGeometry);
921
954
  var _la = 0;
922
955
  try {
923
956
  this.enterOuterAlt(localctx, 1);
957
+ this.state = 229;
958
+ this.match(wktParser.CURVEPOLYGON);
924
959
  this.state = 231;
925
- this.match(wktParser.POLYHEDRALSURFACE);
926
- this.state = 244;
960
+ this._errHandler.sync(this);
961
+ _la = this._input.LA(1);
962
+ if((((_la) & ~0x1f) === 0 && ((1 << _la) & 234881024) !== 0)) {
963
+ this.state = 230;
964
+ this.dim();
965
+ }
966
+
967
+ this.state = 245;
927
968
  this._errHandler.sync(this);
928
969
  switch(this._input.LA(1)) {
929
970
  case 5:
930
- this.state = 232;
931
- this.match(wktParser.LPAR);
932
971
  this.state = 233;
933
- this.polygon();
934
- this.state = 238;
972
+ this.match(wktParser.LPAR);
973
+ this.state = 234;
974
+ this.curveMember();
975
+ this.state = 239;
935
976
  this._errHandler.sync(this);
936
977
  _la = this._input.LA(1);
937
978
  while(_la===4) {
938
- this.state = 234;
939
- this.match(wktParser.COMMA);
940
979
  this.state = 235;
941
- this.polygon();
942
- this.state = 240;
980
+ this.match(wktParser.COMMA);
981
+ this.state = 236;
982
+ this.curveMember();
983
+ this.state = 241;
943
984
  this._errHandler.sync(this);
944
985
  _la = this._input.LA(1);
945
986
  }
946
- this.state = 241;
987
+ this.state = 242;
947
988
  this.match(wktParser.RPAR);
948
989
  break;
949
- case 14:
950
- this.state = 243;
990
+ case 24:
991
+ this.state = 244;
951
992
  this.match(wktParser.EMPTY_);
952
993
  break;
953
994
  default:
@@ -969,39 +1010,47 @@ export default class wktParser extends antlr4.Parser {
969
1010
 
970
1011
 
971
1012
 
972
- multiTinGeometry() {
973
- let localctx = new MultiTinGeometryContext(this, this._ctx, this.state);
974
- this.enterRule(localctx, 28, wktParser.RULE_multiTinGeometry);
1013
+ multiCurveGeometry() {
1014
+ let localctx = new MultiCurveGeometryContext(this, this._ctx, this.state);
1015
+ this.enterRule(localctx, 34, wktParser.RULE_multiCurveGeometry);
975
1016
  var _la = 0;
976
1017
  try {
977
1018
  this.enterOuterAlt(localctx, 1);
978
- this.state = 246;
979
- this.match(wktParser.TIN);
980
- this.state = 259;
1019
+ this.state = 247;
1020
+ this.match(wktParser.MULTICURVE);
1021
+ this.state = 249;
1022
+ this._errHandler.sync(this);
1023
+ _la = this._input.LA(1);
1024
+ if((((_la) & ~0x1f) === 0 && ((1 << _la) & 234881024) !== 0)) {
1025
+ this.state = 248;
1026
+ this.dim();
1027
+ }
1028
+
1029
+ this.state = 263;
981
1030
  this._errHandler.sync(this);
982
1031
  switch(this._input.LA(1)) {
983
1032
  case 5:
984
- this.state = 247;
1033
+ this.state = 251;
985
1034
  this.match(wktParser.LPAR);
986
- this.state = 248;
987
- this.polygon();
988
- this.state = 253;
1035
+ this.state = 252;
1036
+ this.curveMember();
1037
+ this.state = 257;
989
1038
  this._errHandler.sync(this);
990
1039
  _la = this._input.LA(1);
991
1040
  while(_la===4) {
992
- this.state = 249;
1041
+ this.state = 253;
993
1042
  this.match(wktParser.COMMA);
994
- this.state = 250;
995
- this.polygon();
996
- this.state = 255;
1043
+ this.state = 254;
1044
+ this.curveMember();
1045
+ this.state = 259;
997
1046
  this._errHandler.sync(this);
998
1047
  _la = this._input.LA(1);
999
1048
  }
1000
- this.state = 256;
1049
+ this.state = 260;
1001
1050
  this.match(wktParser.RPAR);
1002
1051
  break;
1003
- case 14:
1004
- this.state = 258;
1052
+ case 24:
1053
+ this.state = 262;
1005
1054
  this.match(wktParser.EMPTY_);
1006
1055
  break;
1007
1056
  default:
@@ -1023,32 +1072,32 @@ export default class wktParser extends antlr4.Parser {
1023
1072
 
1024
1073
 
1025
1074
 
1026
- circularStringGeometry() {
1027
- let localctx = new CircularStringGeometryContext(this, this._ctx, this.state);
1028
- this.enterRule(localctx, 30, wktParser.RULE_circularStringGeometry);
1029
- var _la = 0;
1075
+ curveMember() {
1076
+ let localctx = new CurveMemberContext(this, this._ctx, this.state);
1077
+ this.enterRule(localctx, 36, wktParser.RULE_curveMember);
1030
1078
  try {
1031
- this.enterOuterAlt(localctx, 1);
1032
- this.state = 261;
1033
- this.match(wktParser.CIRCULARSTRING);
1034
- this.state = 262;
1035
- this.match(wktParser.LPAR);
1036
- this.state = 263;
1037
- this.point();
1038
1079
  this.state = 268;
1039
1080
  this._errHandler.sync(this);
1040
- _la = this._input.LA(1);
1041
- while(_la===4) {
1042
- this.state = 264;
1043
- this.match(wktParser.COMMA);
1081
+ switch(this._input.LA(1)) {
1082
+ case 5:
1083
+ case 24:
1084
+ this.enterOuterAlt(localctx, 1);
1044
1085
  this.state = 265;
1045
- this.point();
1046
- this.state = 270;
1047
- this._errHandler.sync(this);
1048
- _la = this._input.LA(1);
1086
+ this.lineStringText();
1087
+ break;
1088
+ case 16:
1089
+ this.enterOuterAlt(localctx, 2);
1090
+ this.state = 266;
1091
+ this.circularStringGeometry();
1092
+ break;
1093
+ case 17:
1094
+ this.enterOuterAlt(localctx, 3);
1095
+ this.state = 267;
1096
+ this.compoundCurveGeometry();
1097
+ break;
1098
+ default:
1099
+ throw new antlr4.error.NoViableAltException(this);
1049
1100
  }
1050
- this.state = 271;
1051
- this.match(wktParser.RPAR);
1052
1101
  } catch (re) {
1053
1102
  if(re instanceof antlr4.error.RecognitionException) {
1054
1103
  localctx.exception = re;
@@ -1065,27 +1114,49 @@ export default class wktParser extends antlr4.Parser {
1065
1114
 
1066
1115
 
1067
1116
 
1068
- pointOrClosedPoint() {
1069
- let localctx = new PointOrClosedPointContext(this, this._ctx, this.state);
1070
- this.enterRule(localctx, 32, wktParser.RULE_pointOrClosedPoint);
1117
+ multiSurfaceGeometry() {
1118
+ let localctx = new MultiSurfaceGeometryContext(this, this._ctx, this.state);
1119
+ this.enterRule(localctx, 38, wktParser.RULE_multiSurfaceGeometry);
1120
+ var _la = 0;
1071
1121
  try {
1072
- this.state = 278;
1122
+ this.enterOuterAlt(localctx, 1);
1123
+ this.state = 270;
1124
+ this.match(wktParser.MULTISURFACE);
1125
+ this.state = 272;
1126
+ this._errHandler.sync(this);
1127
+ _la = this._input.LA(1);
1128
+ if((((_la) & ~0x1f) === 0 && ((1 << _la) & 234881024) !== 0)) {
1129
+ this.state = 271;
1130
+ this.dim();
1131
+ }
1132
+
1133
+ this.state = 286;
1073
1134
  this._errHandler.sync(this);
1074
1135
  switch(this._input.LA(1)) {
1075
- case 1:
1076
- this.enterOuterAlt(localctx, 1);
1077
- this.state = 273;
1078
- this.point();
1079
- break;
1080
1136
  case 5:
1081
- this.enterOuterAlt(localctx, 2);
1082
1137
  this.state = 274;
1083
1138
  this.match(wktParser.LPAR);
1084
1139
  this.state = 275;
1085
- this.point();
1086
- this.state = 276;
1140
+ this.surfaceMember();
1141
+ this.state = 280;
1142
+ this._errHandler.sync(this);
1143
+ _la = this._input.LA(1);
1144
+ while(_la===4) {
1145
+ this.state = 276;
1146
+ this.match(wktParser.COMMA);
1147
+ this.state = 277;
1148
+ this.surfaceMember();
1149
+ this.state = 282;
1150
+ this._errHandler.sync(this);
1151
+ _la = this._input.LA(1);
1152
+ }
1153
+ this.state = 283;
1087
1154
  this.match(wktParser.RPAR);
1088
1155
  break;
1156
+ case 24:
1157
+ this.state = 285;
1158
+ this.match(wktParser.EMPTY_);
1159
+ break;
1089
1160
  default:
1090
1161
  throw new antlr4.error.NoViableAltException(this);
1091
1162
  }
@@ -1105,39 +1176,23 @@ export default class wktParser extends antlr4.Parser {
1105
1176
 
1106
1177
 
1107
1178
 
1108
- polygon() {
1109
- let localctx = new PolygonContext(this, this._ctx, this.state);
1110
- this.enterRule(localctx, 34, wktParser.RULE_polygon);
1111
- var _la = 0;
1179
+ surfaceMember() {
1180
+ let localctx = new SurfaceMemberContext(this, this._ctx, this.state);
1181
+ this.enterRule(localctx, 40, wktParser.RULE_surfaceMember);
1112
1182
  try {
1113
- this.state = 292;
1183
+ this.state = 290;
1114
1184
  this._errHandler.sync(this);
1115
1185
  switch(this._input.LA(1)) {
1116
1186
  case 5:
1187
+ case 24:
1117
1188
  this.enterOuterAlt(localctx, 1);
1118
- this.state = 280;
1119
- this.match(wktParser.LPAR);
1120
- this.state = 281;
1121
- this.lineString();
1122
- this.state = 286;
1123
- this._errHandler.sync(this);
1124
- _la = this._input.LA(1);
1125
- while(_la===4) {
1126
- this.state = 282;
1127
- this.match(wktParser.COMMA);
1128
- this.state = 283;
1129
- this.lineString();
1130
- this.state = 288;
1131
- this._errHandler.sync(this);
1132
- _la = this._input.LA(1);
1133
- }
1134
- this.state = 289;
1135
- this.match(wktParser.RPAR);
1189
+ this.state = 288;
1190
+ this.polygonText();
1136
1191
  break;
1137
- case 14:
1192
+ case 19:
1138
1193
  this.enterOuterAlt(localctx, 2);
1139
- this.state = 291;
1140
- this.match(wktParser.EMPTY_);
1194
+ this.state = 289;
1195
+ this.curvePolygonGeometry();
1141
1196
  break;
1142
1197
  default:
1143
1198
  throw new antlr4.error.NoViableAltException(this);
@@ -1158,38 +1213,47 @@ export default class wktParser extends antlr4.Parser {
1158
1213
 
1159
1214
 
1160
1215
 
1161
- lineString() {
1162
- let localctx = new LineStringContext(this, this._ctx, this.state);
1163
- this.enterRule(localctx, 36, wktParser.RULE_lineString);
1216
+ polyhedralSurfaceGeometry() {
1217
+ let localctx = new PolyhedralSurfaceGeometryContext(this, this._ctx, this.state);
1218
+ this.enterRule(localctx, 42, wktParser.RULE_polyhedralSurfaceGeometry);
1164
1219
  var _la = 0;
1165
1220
  try {
1166
- this.state = 306;
1221
+ this.enterOuterAlt(localctx, 1);
1222
+ this.state = 292;
1223
+ this.match(wktParser.POLYHEDRALSURFACE);
1224
+ this.state = 294;
1225
+ this._errHandler.sync(this);
1226
+ _la = this._input.LA(1);
1227
+ if((((_la) & ~0x1f) === 0 && ((1 << _la) & 234881024) !== 0)) {
1228
+ this.state = 293;
1229
+ this.dim();
1230
+ }
1231
+
1232
+ this.state = 308;
1167
1233
  this._errHandler.sync(this);
1168
1234
  switch(this._input.LA(1)) {
1169
1235
  case 5:
1170
- this.enterOuterAlt(localctx, 1);
1171
- this.state = 294;
1236
+ this.state = 296;
1172
1237
  this.match(wktParser.LPAR);
1173
- this.state = 295;
1174
- this.point();
1175
- this.state = 300;
1238
+ this.state = 297;
1239
+ this.polygonText();
1240
+ this.state = 302;
1176
1241
  this._errHandler.sync(this);
1177
1242
  _la = this._input.LA(1);
1178
1243
  while(_la===4) {
1179
- this.state = 296;
1244
+ this.state = 298;
1180
1245
  this.match(wktParser.COMMA);
1181
- this.state = 297;
1182
- this.point();
1183
- this.state = 302;
1246
+ this.state = 299;
1247
+ this.polygonText();
1248
+ this.state = 304;
1184
1249
  this._errHandler.sync(this);
1185
1250
  _la = this._input.LA(1);
1186
1251
  }
1187
- this.state = 303;
1252
+ this.state = 305;
1188
1253
  this.match(wktParser.RPAR);
1189
1254
  break;
1190
- case 14:
1191
- this.enterOuterAlt(localctx, 2);
1192
- this.state = 305;
1255
+ case 24:
1256
+ this.state = 307;
1193
1257
  this.match(wktParser.EMPTY_);
1194
1258
  break;
1195
1259
  default:
@@ -1211,22 +1275,52 @@ export default class wktParser extends antlr4.Parser {
1211
1275
 
1212
1276
 
1213
1277
 
1214
- point() {
1215
- let localctx = new PointContext(this, this._ctx, this.state);
1216
- this.enterRule(localctx, 38, wktParser.RULE_point);
1278
+ tinGeometry() {
1279
+ let localctx = new TinGeometryContext(this, this._ctx, this.state);
1280
+ this.enterRule(localctx, 44, wktParser.RULE_tinGeometry);
1217
1281
  var _la = 0;
1218
1282
  try {
1219
1283
  this.enterOuterAlt(localctx, 1);
1220
- this.state = 309;
1284
+ this.state = 310;
1285
+ this.match(wktParser.TIN);
1286
+ this.state = 312;
1221
1287
  this._errHandler.sync(this);
1222
1288
  _la = this._input.LA(1);
1223
- do {
1224
- this.state = 308;
1225
- this.match(wktParser.DECIMAL);
1226
- this.state = 311;
1289
+ if((((_la) & ~0x1f) === 0 && ((1 << _la) & 234881024) !== 0)) {
1290
+ this.state = 311;
1291
+ this.dim();
1292
+ }
1293
+
1294
+ this.state = 326;
1295
+ this._errHandler.sync(this);
1296
+ switch(this._input.LA(1)) {
1297
+ case 5:
1298
+ this.state = 314;
1299
+ this.match(wktParser.LPAR);
1300
+ this.state = 315;
1301
+ this.polygonText();
1302
+ this.state = 320;
1227
1303
  this._errHandler.sync(this);
1228
1304
  _la = this._input.LA(1);
1229
- } while(_la===1);
1305
+ while(_la===4) {
1306
+ this.state = 316;
1307
+ this.match(wktParser.COMMA);
1308
+ this.state = 317;
1309
+ this.polygonText();
1310
+ this.state = 322;
1311
+ this._errHandler.sync(this);
1312
+ _la = this._input.LA(1);
1313
+ }
1314
+ this.state = 323;
1315
+ this.match(wktParser.RPAR);
1316
+ break;
1317
+ case 24:
1318
+ this.state = 325;
1319
+ this.match(wktParser.EMPTY_);
1320
+ break;
1321
+ default:
1322
+ throw new antlr4.error.NoViableAltException(this);
1323
+ }
1230
1324
  } catch (re) {
1231
1325
  if(re instanceof antlr4.error.RecognitionException) {
1232
1326
  localctx.exception = re;
@@ -1243,79 +1337,568 @@ export default class wktParser extends antlr4.Parser {
1243
1337
 
1244
1338
 
1245
1339
 
1246
- name() {
1247
- let localctx = new NameContext(this, this._ctx, this.state);
1248
- this.enterRule(localctx, 40, wktParser.RULE_name);
1340
+ polygonText() {
1341
+ let localctx = new PolygonTextContext(this, this._ctx, this.state);
1342
+ this.enterRule(localctx, 46, wktParser.RULE_polygonText);
1343
+ var _la = 0;
1249
1344
  try {
1250
- this.enterOuterAlt(localctx, 1);
1251
- this.state = 313;
1252
- this.match(wktParser.STRING);
1253
- } catch (re) {
1254
- if(re instanceof antlr4.error.RecognitionException) {
1255
- localctx.exception = re;
1256
- this._errHandler.reportError(this, re);
1257
- this._errHandler.recover(this, re);
1258
- } else {
1259
- throw re;
1260
- }
1261
- } finally {
1262
- this.exitRule();
1263
- }
1345
+ this.state = 340;
1346
+ this._errHandler.sync(this);
1347
+ switch(this._input.LA(1)) {
1348
+ case 5:
1349
+ this.enterOuterAlt(localctx, 1);
1350
+ this.state = 328;
1351
+ this.match(wktParser.LPAR);
1352
+ this.state = 329;
1353
+ this.lineStringText();
1354
+ this.state = 334;
1355
+ this._errHandler.sync(this);
1356
+ _la = this._input.LA(1);
1357
+ while(_la===4) {
1358
+ this.state = 330;
1359
+ this.match(wktParser.COMMA);
1360
+ this.state = 331;
1361
+ this.lineStringText();
1362
+ this.state = 336;
1363
+ this._errHandler.sync(this);
1364
+ _la = this._input.LA(1);
1365
+ }
1366
+ this.state = 337;
1367
+ this.match(wktParser.RPAR);
1368
+ break;
1369
+ case 24:
1370
+ this.enterOuterAlt(localctx, 2);
1371
+ this.state = 339;
1372
+ this.match(wktParser.EMPTY_);
1373
+ break;
1374
+ default:
1375
+ throw new antlr4.error.NoViableAltException(this);
1376
+ }
1377
+ } catch (re) {
1378
+ if(re instanceof antlr4.error.RecognitionException) {
1379
+ localctx.exception = re;
1380
+ this._errHandler.reportError(this, re);
1381
+ this._errHandler.recover(this, re);
1382
+ } else {
1383
+ throw re;
1384
+ }
1385
+ } finally {
1386
+ this.exitRule();
1387
+ }
1388
+ return localctx;
1389
+ }
1390
+
1391
+
1392
+
1393
+ lineStringText() {
1394
+ let localctx = new LineStringTextContext(this, this._ctx, this.state);
1395
+ this.enterRule(localctx, 48, wktParser.RULE_lineStringText);
1396
+ var _la = 0;
1397
+ try {
1398
+ this.state = 354;
1399
+ this._errHandler.sync(this);
1400
+ switch(this._input.LA(1)) {
1401
+ case 5:
1402
+ this.enterOuterAlt(localctx, 1);
1403
+ this.state = 342;
1404
+ this.match(wktParser.LPAR);
1405
+ this.state = 343;
1406
+ this.point();
1407
+ this.state = 348;
1408
+ this._errHandler.sync(this);
1409
+ _la = this._input.LA(1);
1410
+ while(_la===4) {
1411
+ this.state = 344;
1412
+ this.match(wktParser.COMMA);
1413
+ this.state = 345;
1414
+ this.point();
1415
+ this.state = 350;
1416
+ this._errHandler.sync(this);
1417
+ _la = this._input.LA(1);
1418
+ }
1419
+ this.state = 351;
1420
+ this.match(wktParser.RPAR);
1421
+ break;
1422
+ case 24:
1423
+ this.enterOuterAlt(localctx, 2);
1424
+ this.state = 353;
1425
+ this.match(wktParser.EMPTY_);
1426
+ break;
1427
+ default:
1428
+ throw new antlr4.error.NoViableAltException(this);
1429
+ }
1430
+ } catch (re) {
1431
+ if(re instanceof antlr4.error.RecognitionException) {
1432
+ localctx.exception = re;
1433
+ this._errHandler.reportError(this, re);
1434
+ this._errHandler.recover(this, re);
1435
+ } else {
1436
+ throw re;
1437
+ }
1438
+ } finally {
1439
+ this.exitRule();
1440
+ }
1264
1441
  return localctx;
1265
1442
  }
1266
1443
 
1267
1444
 
1445
+
1446
+ pointOrClosedPoint() {
1447
+ let localctx = new PointOrClosedPointContext(this, this._ctx, this.state);
1448
+ this.enterRule(localctx, 50, wktParser.RULE_pointOrClosedPoint);
1449
+ try {
1450
+ this.state = 362;
1451
+ this._errHandler.sync(this);
1452
+ switch(this._input.LA(1)) {
1453
+ case 1:
1454
+ case 28:
1455
+ case 29:
1456
+ case 30:
1457
+ this.enterOuterAlt(localctx, 1);
1458
+ this.state = 356;
1459
+ this.point();
1460
+ break;
1461
+ case 5:
1462
+ this.enterOuterAlt(localctx, 2);
1463
+ this.state = 357;
1464
+ this.match(wktParser.LPAR);
1465
+ this.state = 358;
1466
+ this.point();
1467
+ this.state = 359;
1468
+ this.match(wktParser.RPAR);
1469
+ break;
1470
+ case 24:
1471
+ this.enterOuterAlt(localctx, 3);
1472
+ this.state = 361;
1473
+ this.match(wktParser.EMPTY_);
1474
+ break;
1475
+ default:
1476
+ throw new antlr4.error.NoViableAltException(this);
1477
+ }
1478
+ } catch (re) {
1479
+ if(re instanceof antlr4.error.RecognitionException) {
1480
+ localctx.exception = re;
1481
+ this._errHandler.reportError(this, re);
1482
+ this._errHandler.recover(this, re);
1483
+ } else {
1484
+ throw re;
1485
+ }
1486
+ } finally {
1487
+ this.exitRule();
1488
+ }
1489
+ return localctx;
1490
+ }
1491
+
1492
+
1493
+
1494
+ point() {
1495
+ let localctx = new PointContext(this, this._ctx, this.state);
1496
+ this.enterRule(localctx, 52, wktParser.RULE_point);
1497
+ var _la = 0;
1498
+ try {
1499
+ this.enterOuterAlt(localctx, 1);
1500
+ this.state = 364;
1501
+ this.ordinate();
1502
+ this.state = 365;
1503
+ this.ordinate();
1504
+ this.state = 367;
1505
+ this._errHandler.sync(this);
1506
+ var la_ = this._interp.adaptivePredict(this._input,47,this._ctx);
1507
+ if(la_===1) {
1508
+ this.state = 366;
1509
+ this.ordinate();
1510
+
1511
+ }
1512
+ this.state = 370;
1513
+ this._errHandler.sync(this);
1514
+ _la = this._input.LA(1);
1515
+ if((((_la) & ~0x1f) === 0 && ((1 << _la) & 1879048194) !== 0)) {
1516
+ this.state = 369;
1517
+ this.ordinate();
1518
+ }
1519
+
1520
+ } catch (re) {
1521
+ if(re instanceof antlr4.error.RecognitionException) {
1522
+ localctx.exception = re;
1523
+ this._errHandler.reportError(this, re);
1524
+ this._errHandler.recover(this, re);
1525
+ } else {
1526
+ throw re;
1527
+ }
1528
+ } finally {
1529
+ this.exitRule();
1530
+ }
1531
+ return localctx;
1532
+ }
1533
+
1534
+
1535
+
1536
+ ordinate() {
1537
+ let localctx = new OrdinateContext(this, this._ctx, this.state);
1538
+ this.enterRule(localctx, 54, wktParser.RULE_ordinate);
1539
+ var _la = 0;
1540
+ try {
1541
+ this.enterOuterAlt(localctx, 1);
1542
+ this.state = 372;
1543
+ _la = this._input.LA(1);
1544
+ if(!((((_la) & ~0x1f) === 0 && ((1 << _la) & 1879048194) !== 0))) {
1545
+ this._errHandler.recoverInline(this);
1546
+ }
1547
+ else {
1548
+ this._errHandler.reportMatch(this);
1549
+ this.consume();
1550
+ }
1551
+ } catch (re) {
1552
+ if(re instanceof antlr4.error.RecognitionException) {
1553
+ localctx.exception = re;
1554
+ this._errHandler.reportError(this, re);
1555
+ this._errHandler.recover(this, re);
1556
+ } else {
1557
+ throw re;
1558
+ }
1559
+ } finally {
1560
+ this.exitRule();
1561
+ }
1562
+ return localctx;
1563
+ }
1564
+
1565
+
1566
+ }
1567
+
1568
+ wktParser.EOF = antlr4.Token.EOF;
1569
+ wktParser.DECIMAL = 1;
1570
+ wktParser.INTEGERPART = 2;
1571
+ wktParser.DECIMALPART = 3;
1572
+ wktParser.COMMA = 4;
1573
+ wktParser.LPAR = 5;
1574
+ wktParser.RPAR = 6;
1575
+ wktParser.POINT = 7;
1576
+ wktParser.LINESTRING = 8;
1577
+ wktParser.LINEARRING = 9;
1578
+ wktParser.POLYGON = 10;
1579
+ wktParser.TRIANGLE = 11;
1580
+ wktParser.MULTIPOINT = 12;
1581
+ wktParser.MULTILINESTRING = 13;
1582
+ wktParser.MULTIPOLYGON = 14;
1583
+ wktParser.GEOMETRYCOLLECTION = 15;
1584
+ wktParser.CIRCULARSTRING = 16;
1585
+ wktParser.COMPOUNDCURVE = 17;
1586
+ wktParser.CLOTHOID = 18;
1587
+ wktParser.CURVEPOLYGON = 19;
1588
+ wktParser.MULTICURVE = 20;
1589
+ wktParser.MULTISURFACE = 21;
1590
+ wktParser.POLYHEDRALSURFACE = 22;
1591
+ wktParser.TIN = 23;
1592
+ wktParser.EMPTY_ = 24;
1593
+ wktParser.ZM_ = 25;
1594
+ wktParser.Z_ = 26;
1595
+ wktParser.M_ = 27;
1596
+ wktParser.NAN_ = 28;
1597
+ wktParser.NEG_INF_ = 29;
1598
+ wktParser.INF_ = 30;
1599
+ wktParser.WS = 31;
1600
+
1601
+ wktParser.RULE_file_ = 0;
1602
+ wktParser.RULE_geometry = 1;
1603
+ wktParser.RULE_dim = 2;
1604
+ wktParser.RULE_pointGeometry = 3;
1605
+ wktParser.RULE_lineStringGeometry = 4;
1606
+ wktParser.RULE_linearRingGeometry = 5;
1607
+ wktParser.RULE_polygonGeometry = 6;
1608
+ wktParser.RULE_triangleGeometry = 7;
1609
+ wktParser.RULE_multiPointGeometry = 8;
1610
+ wktParser.RULE_multiLineStringGeometry = 9;
1611
+ wktParser.RULE_multiPolygonGeometry = 10;
1612
+ wktParser.RULE_geometryCollection = 11;
1613
+ wktParser.RULE_circularStringGeometry = 12;
1614
+ wktParser.RULE_compoundCurveGeometry = 13;
1615
+ wktParser.RULE_compoundCurveMember = 14;
1616
+ wktParser.RULE_clothoidGeometry = 15;
1617
+ wktParser.RULE_curvePolygonGeometry = 16;
1618
+ wktParser.RULE_multiCurveGeometry = 17;
1619
+ wktParser.RULE_curveMember = 18;
1620
+ wktParser.RULE_multiSurfaceGeometry = 19;
1621
+ wktParser.RULE_surfaceMember = 20;
1622
+ wktParser.RULE_polyhedralSurfaceGeometry = 21;
1623
+ wktParser.RULE_tinGeometry = 22;
1624
+ wktParser.RULE_polygonText = 23;
1625
+ wktParser.RULE_lineStringText = 24;
1626
+ wktParser.RULE_pointOrClosedPoint = 25;
1627
+ wktParser.RULE_point = 26;
1628
+ wktParser.RULE_ordinate = 27;
1629
+
1630
+ class File_Context extends antlr4.ParserRuleContext {
1631
+
1632
+ constructor(parser, parent, invokingState) {
1633
+ if(parent===undefined) {
1634
+ parent = null;
1635
+ }
1636
+ if(invokingState===undefined || invokingState===null) {
1637
+ invokingState = -1;
1638
+ }
1639
+ super(parent, invokingState);
1640
+ this.parser = parser;
1641
+ this.ruleIndex = wktParser.RULE_file_;
1642
+ }
1643
+
1644
+ EOF() {
1645
+ return this.getToken(wktParser.EOF, 0);
1646
+ };
1647
+
1648
+ geometry = function(i) {
1649
+ if(i===undefined) {
1650
+ i = null;
1651
+ }
1652
+ if(i===null) {
1653
+ return this.getTypedRuleContexts(GeometryContext);
1654
+ } else {
1655
+ return this.getTypedRuleContext(GeometryContext,i);
1656
+ }
1657
+ };
1658
+
1659
+ enterRule(listener) {
1660
+ if(listener instanceof wktListener ) {
1661
+ listener.enterFile_(this);
1662
+ }
1663
+ }
1664
+
1665
+ exitRule(listener) {
1666
+ if(listener instanceof wktListener ) {
1667
+ listener.exitFile_(this);
1668
+ }
1669
+ }
1670
+
1671
+ accept(visitor) {
1672
+ if ( visitor instanceof wktVisitor ) {
1673
+ return visitor.visitFile_(this);
1674
+ } else {
1675
+ return visitor.visitChildren(this);
1676
+ }
1677
+ }
1678
+
1679
+
1680
+ }
1681
+
1682
+
1683
+
1684
+ class GeometryContext extends antlr4.ParserRuleContext {
1685
+
1686
+ constructor(parser, parent, invokingState) {
1687
+ if(parent===undefined) {
1688
+ parent = null;
1689
+ }
1690
+ if(invokingState===undefined || invokingState===null) {
1691
+ invokingState = -1;
1692
+ }
1693
+ super(parent, invokingState);
1694
+ this.parser = parser;
1695
+ this.ruleIndex = wktParser.RULE_geometry;
1696
+ }
1697
+
1698
+ pointGeometry() {
1699
+ return this.getTypedRuleContext(PointGeometryContext,0);
1700
+ };
1701
+
1702
+ lineStringGeometry() {
1703
+ return this.getTypedRuleContext(LineStringGeometryContext,0);
1704
+ };
1705
+
1706
+ linearRingGeometry() {
1707
+ return this.getTypedRuleContext(LinearRingGeometryContext,0);
1708
+ };
1709
+
1710
+ polygonGeometry() {
1711
+ return this.getTypedRuleContext(PolygonGeometryContext,0);
1712
+ };
1713
+
1714
+ triangleGeometry() {
1715
+ return this.getTypedRuleContext(TriangleGeometryContext,0);
1716
+ };
1717
+
1718
+ multiPointGeometry() {
1719
+ return this.getTypedRuleContext(MultiPointGeometryContext,0);
1720
+ };
1721
+
1722
+ multiLineStringGeometry() {
1723
+ return this.getTypedRuleContext(MultiLineStringGeometryContext,0);
1724
+ };
1725
+
1726
+ multiPolygonGeometry() {
1727
+ return this.getTypedRuleContext(MultiPolygonGeometryContext,0);
1728
+ };
1729
+
1730
+ geometryCollection() {
1731
+ return this.getTypedRuleContext(GeometryCollectionContext,0);
1732
+ };
1733
+
1734
+ circularStringGeometry() {
1735
+ return this.getTypedRuleContext(CircularStringGeometryContext,0);
1736
+ };
1737
+
1738
+ compoundCurveGeometry() {
1739
+ return this.getTypedRuleContext(CompoundCurveGeometryContext,0);
1740
+ };
1741
+
1742
+ curvePolygonGeometry() {
1743
+ return this.getTypedRuleContext(CurvePolygonGeometryContext,0);
1744
+ };
1745
+
1746
+ multiCurveGeometry() {
1747
+ return this.getTypedRuleContext(MultiCurveGeometryContext,0);
1748
+ };
1749
+
1750
+ multiSurfaceGeometry() {
1751
+ return this.getTypedRuleContext(MultiSurfaceGeometryContext,0);
1752
+ };
1753
+
1754
+ polyhedralSurfaceGeometry() {
1755
+ return this.getTypedRuleContext(PolyhedralSurfaceGeometryContext,0);
1756
+ };
1757
+
1758
+ tinGeometry() {
1759
+ return this.getTypedRuleContext(TinGeometryContext,0);
1760
+ };
1761
+
1762
+ enterRule(listener) {
1763
+ if(listener instanceof wktListener ) {
1764
+ listener.enterGeometry(this);
1765
+ }
1766
+ }
1767
+
1768
+ exitRule(listener) {
1769
+ if(listener instanceof wktListener ) {
1770
+ listener.exitGeometry(this);
1771
+ }
1772
+ }
1773
+
1774
+ accept(visitor) {
1775
+ if ( visitor instanceof wktVisitor ) {
1776
+ return visitor.visitGeometry(this);
1777
+ } else {
1778
+ return visitor.visitChildren(this);
1779
+ }
1780
+ }
1781
+
1782
+
1783
+ }
1784
+
1785
+
1786
+
1787
+ class DimContext extends antlr4.ParserRuleContext {
1788
+
1789
+ constructor(parser, parent, invokingState) {
1790
+ if(parent===undefined) {
1791
+ parent = null;
1792
+ }
1793
+ if(invokingState===undefined || invokingState===null) {
1794
+ invokingState = -1;
1795
+ }
1796
+ super(parent, invokingState);
1797
+ this.parser = parser;
1798
+ this.ruleIndex = wktParser.RULE_dim;
1799
+ }
1800
+
1801
+ Z_() {
1802
+ return this.getToken(wktParser.Z_, 0);
1803
+ };
1804
+
1805
+ M_() {
1806
+ return this.getToken(wktParser.M_, 0);
1807
+ };
1808
+
1809
+ ZM_() {
1810
+ return this.getToken(wktParser.ZM_, 0);
1811
+ };
1812
+
1813
+ enterRule(listener) {
1814
+ if(listener instanceof wktListener ) {
1815
+ listener.enterDim(this);
1816
+ }
1817
+ }
1818
+
1819
+ exitRule(listener) {
1820
+ if(listener instanceof wktListener ) {
1821
+ listener.exitDim(this);
1822
+ }
1823
+ }
1824
+
1825
+ accept(visitor) {
1826
+ if ( visitor instanceof wktVisitor ) {
1827
+ return visitor.visitDim(this);
1828
+ } else {
1829
+ return visitor.visitChildren(this);
1830
+ }
1831
+ }
1832
+
1833
+
1834
+ }
1835
+
1836
+
1837
+
1838
+ class PointGeometryContext extends antlr4.ParserRuleContext {
1839
+
1840
+ constructor(parser, parent, invokingState) {
1841
+ if(parent===undefined) {
1842
+ parent = null;
1843
+ }
1844
+ if(invokingState===undefined || invokingState===null) {
1845
+ invokingState = -1;
1846
+ }
1847
+ super(parent, invokingState);
1848
+ this.parser = parser;
1849
+ this.ruleIndex = wktParser.RULE_pointGeometry;
1850
+ }
1851
+
1852
+ POINT() {
1853
+ return this.getToken(wktParser.POINT, 0);
1854
+ };
1855
+
1856
+ LPAR() {
1857
+ return this.getToken(wktParser.LPAR, 0);
1858
+ };
1859
+
1860
+ point() {
1861
+ return this.getTypedRuleContext(PointContext,0);
1862
+ };
1863
+
1864
+ RPAR() {
1865
+ return this.getToken(wktParser.RPAR, 0);
1866
+ };
1867
+
1868
+ EMPTY_() {
1869
+ return this.getToken(wktParser.EMPTY_, 0);
1870
+ };
1871
+
1872
+ dim() {
1873
+ return this.getTypedRuleContext(DimContext,0);
1874
+ };
1875
+
1876
+ enterRule(listener) {
1877
+ if(listener instanceof wktListener ) {
1878
+ listener.enterPointGeometry(this);
1879
+ }
1880
+ }
1881
+
1882
+ exitRule(listener) {
1883
+ if(listener instanceof wktListener ) {
1884
+ listener.exitPointGeometry(this);
1885
+ }
1886
+ }
1887
+
1888
+ accept(visitor) {
1889
+ if ( visitor instanceof wktVisitor ) {
1890
+ return visitor.visitPointGeometry(this);
1891
+ } else {
1892
+ return visitor.visitChildren(this);
1893
+ }
1894
+ }
1895
+
1896
+
1268
1897
  }
1269
1898
 
1270
- wktParser.EOF = antlr4.Token.EOF;
1271
- wktParser.DECIMAL = 1;
1272
- wktParser.INTEGERPART = 2;
1273
- wktParser.DECIMALPART = 3;
1274
- wktParser.COMMA = 4;
1275
- wktParser.LPAR = 5;
1276
- wktParser.RPAR = 6;
1277
- wktParser.POINT = 7;
1278
- wktParser.LINESTRING = 8;
1279
- wktParser.POLYGON = 9;
1280
- wktParser.MULTIPOINT = 10;
1281
- wktParser.MULTILINESTRING = 11;
1282
- wktParser.MULTIPOLYGON = 12;
1283
- wktParser.GEOMETRYCOLLECTION = 13;
1284
- wktParser.EMPTY_ = 14;
1285
- wktParser.CIRCULARSTRING = 15;
1286
- wktParser.COMPOUNDCURVE = 16;
1287
- wktParser.MULTISURFACE = 17;
1288
- wktParser.CURVEPOLYGON = 18;
1289
- wktParser.MULTICURVE = 19;
1290
- wktParser.TRIANGLE = 20;
1291
- wktParser.TIN = 21;
1292
- wktParser.POLYHEDRALSURFACE = 22;
1293
- wktParser.STRING = 23;
1294
- wktParser.WS = 24;
1295
1899
 
1296
- wktParser.RULE_file_ = 0;
1297
- wktParser.RULE_geometryCollection = 1;
1298
- wktParser.RULE_geometry = 2;
1299
- wktParser.RULE_pointGeometry = 3;
1300
- wktParser.RULE_lineStringGeometry = 4;
1301
- wktParser.RULE_polygonGeometry = 5;
1302
- wktParser.RULE_multiCurveGeometry = 6;
1303
- wktParser.RULE_multiSurfaceGeometry = 7;
1304
- wktParser.RULE_curvePolygonGeometry = 8;
1305
- wktParser.RULE_compoundCurveGeometry = 9;
1306
- wktParser.RULE_multiPointGeometry = 10;
1307
- wktParser.RULE_multiLineStringGeometry = 11;
1308
- wktParser.RULE_multiPolygonGeometry = 12;
1309
- wktParser.RULE_multiPolyhedralSurfaceGeometry = 13;
1310
- wktParser.RULE_multiTinGeometry = 14;
1311
- wktParser.RULE_circularStringGeometry = 15;
1312
- wktParser.RULE_pointOrClosedPoint = 16;
1313
- wktParser.RULE_polygon = 17;
1314
- wktParser.RULE_lineString = 18;
1315
- wktParser.RULE_point = 19;
1316
- wktParser.RULE_name = 20;
1317
1900
 
1318
- class File_Context extends antlr4.ParserRuleContext {
1901
+ class LineStringGeometryContext extends antlr4.ParserRuleContext {
1319
1902
 
1320
1903
  constructor(parser, parent, invokingState) {
1321
1904
  if(parent===undefined) {
@@ -1326,39 +1909,138 @@ class File_Context extends antlr4.ParserRuleContext {
1326
1909
  }
1327
1910
  super(parent, invokingState);
1328
1911
  this.parser = parser;
1329
- this.ruleIndex = wktParser.RULE_file_;
1912
+ this.ruleIndex = wktParser.RULE_lineStringGeometry;
1330
1913
  }
1331
1914
 
1332
- EOF() {
1333
- return this.getToken(wktParser.EOF, 0);
1915
+ LINESTRING() {
1916
+ return this.getToken(wktParser.LINESTRING, 0);
1334
1917
  };
1335
1918
 
1336
- geometry = function(i) {
1337
- if(i===undefined) {
1338
- i = null;
1919
+ lineStringText() {
1920
+ return this.getTypedRuleContext(LineStringTextContext,0);
1921
+ };
1922
+
1923
+ dim() {
1924
+ return this.getTypedRuleContext(DimContext,0);
1925
+ };
1926
+
1927
+ enterRule(listener) {
1928
+ if(listener instanceof wktListener ) {
1929
+ listener.enterLineStringGeometry(this);
1930
+ }
1931
+ }
1932
+
1933
+ exitRule(listener) {
1934
+ if(listener instanceof wktListener ) {
1935
+ listener.exitLineStringGeometry(this);
1936
+ }
1937
+ }
1938
+
1939
+ accept(visitor) {
1940
+ if ( visitor instanceof wktVisitor ) {
1941
+ return visitor.visitLineStringGeometry(this);
1942
+ } else {
1943
+ return visitor.visitChildren(this);
1339
1944
  }
1340
- if(i===null) {
1341
- return this.getTypedRuleContexts(GeometryContext);
1945
+ }
1946
+
1947
+
1948
+ }
1949
+
1950
+
1951
+
1952
+ class LinearRingGeometryContext extends antlr4.ParserRuleContext {
1953
+
1954
+ constructor(parser, parent, invokingState) {
1955
+ if(parent===undefined) {
1956
+ parent = null;
1957
+ }
1958
+ if(invokingState===undefined || invokingState===null) {
1959
+ invokingState = -1;
1960
+ }
1961
+ super(parent, invokingState);
1962
+ this.parser = parser;
1963
+ this.ruleIndex = wktParser.RULE_linearRingGeometry;
1964
+ }
1965
+
1966
+ LINEARRING() {
1967
+ return this.getToken(wktParser.LINEARRING, 0);
1968
+ };
1969
+
1970
+ lineStringText() {
1971
+ return this.getTypedRuleContext(LineStringTextContext,0);
1972
+ };
1973
+
1974
+ dim() {
1975
+ return this.getTypedRuleContext(DimContext,0);
1976
+ };
1977
+
1978
+ enterRule(listener) {
1979
+ if(listener instanceof wktListener ) {
1980
+ listener.enterLinearRingGeometry(this);
1981
+ }
1982
+ }
1983
+
1984
+ exitRule(listener) {
1985
+ if(listener instanceof wktListener ) {
1986
+ listener.exitLinearRingGeometry(this);
1987
+ }
1988
+ }
1989
+
1990
+ accept(visitor) {
1991
+ if ( visitor instanceof wktVisitor ) {
1992
+ return visitor.visitLinearRingGeometry(this);
1342
1993
  } else {
1343
- return this.getTypedRuleContext(GeometryContext,i);
1994
+ return visitor.visitChildren(this);
1344
1995
  }
1996
+ }
1997
+
1998
+
1999
+ }
2000
+
2001
+
2002
+
2003
+ class PolygonGeometryContext extends antlr4.ParserRuleContext {
2004
+
2005
+ constructor(parser, parent, invokingState) {
2006
+ if(parent===undefined) {
2007
+ parent = null;
2008
+ }
2009
+ if(invokingState===undefined || invokingState===null) {
2010
+ invokingState = -1;
2011
+ }
2012
+ super(parent, invokingState);
2013
+ this.parser = parser;
2014
+ this.ruleIndex = wktParser.RULE_polygonGeometry;
2015
+ }
2016
+
2017
+ POLYGON() {
2018
+ return this.getToken(wktParser.POLYGON, 0);
2019
+ };
2020
+
2021
+ polygonText() {
2022
+ return this.getTypedRuleContext(PolygonTextContext,0);
2023
+ };
2024
+
2025
+ dim() {
2026
+ return this.getTypedRuleContext(DimContext,0);
1345
2027
  };
1346
2028
 
1347
2029
  enterRule(listener) {
1348
2030
  if(listener instanceof wktListener ) {
1349
- listener.enterFile_(this);
2031
+ listener.enterPolygonGeometry(this);
1350
2032
  }
1351
2033
  }
1352
2034
 
1353
2035
  exitRule(listener) {
1354
2036
  if(listener instanceof wktListener ) {
1355
- listener.exitFile_(this);
2037
+ listener.exitPolygonGeometry(this);
1356
2038
  }
1357
2039
  }
1358
2040
 
1359
2041
  accept(visitor) {
1360
2042
  if ( visitor instanceof wktVisitor ) {
1361
- return visitor.visitFile_(this);
2043
+ return visitor.visitPolygonGeometry(this);
1362
2044
  } else {
1363
2045
  return visitor.visitChildren(this);
1364
2046
  }
@@ -1369,7 +2051,7 @@ class File_Context extends antlr4.ParserRuleContext {
1369
2051
 
1370
2052
 
1371
2053
 
1372
- class GeometryCollectionContext extends antlr4.ParserRuleContext {
2054
+ class TriangleGeometryContext extends antlr4.ParserRuleContext {
1373
2055
 
1374
2056
  constructor(parser, parent, invokingState) {
1375
2057
  if(parent===undefined) {
@@ -1380,25 +2062,76 @@ class GeometryCollectionContext extends antlr4.ParserRuleContext {
1380
2062
  }
1381
2063
  super(parent, invokingState);
1382
2064
  this.parser = parser;
1383
- this.ruleIndex = wktParser.RULE_geometryCollection;
2065
+ this.ruleIndex = wktParser.RULE_triangleGeometry;
1384
2066
  }
1385
2067
 
1386
- GEOMETRYCOLLECTION() {
1387
- return this.getToken(wktParser.GEOMETRYCOLLECTION, 0);
2068
+ TRIANGLE() {
2069
+ return this.getToken(wktParser.TRIANGLE, 0);
2070
+ };
2071
+
2072
+ polygonText() {
2073
+ return this.getTypedRuleContext(PolygonTextContext,0);
2074
+ };
2075
+
2076
+ dim() {
2077
+ return this.getTypedRuleContext(DimContext,0);
2078
+ };
2079
+
2080
+ enterRule(listener) {
2081
+ if(listener instanceof wktListener ) {
2082
+ listener.enterTriangleGeometry(this);
2083
+ }
2084
+ }
2085
+
2086
+ exitRule(listener) {
2087
+ if(listener instanceof wktListener ) {
2088
+ listener.exitTriangleGeometry(this);
2089
+ }
2090
+ }
2091
+
2092
+ accept(visitor) {
2093
+ if ( visitor instanceof wktVisitor ) {
2094
+ return visitor.visitTriangleGeometry(this);
2095
+ } else {
2096
+ return visitor.visitChildren(this);
2097
+ }
2098
+ }
2099
+
2100
+
2101
+ }
2102
+
2103
+
2104
+
2105
+ class MultiPointGeometryContext extends antlr4.ParserRuleContext {
2106
+
2107
+ constructor(parser, parent, invokingState) {
2108
+ if(parent===undefined) {
2109
+ parent = null;
2110
+ }
2111
+ if(invokingState===undefined || invokingState===null) {
2112
+ invokingState = -1;
2113
+ }
2114
+ super(parent, invokingState);
2115
+ this.parser = parser;
2116
+ this.ruleIndex = wktParser.RULE_multiPointGeometry;
2117
+ }
2118
+
2119
+ MULTIPOINT() {
2120
+ return this.getToken(wktParser.MULTIPOINT, 0);
1388
2121
  };
1389
2122
 
1390
2123
  LPAR() {
1391
2124
  return this.getToken(wktParser.LPAR, 0);
1392
2125
  };
1393
2126
 
1394
- geometry = function(i) {
2127
+ pointOrClosedPoint = function(i) {
1395
2128
  if(i===undefined) {
1396
2129
  i = null;
1397
2130
  }
1398
2131
  if(i===null) {
1399
- return this.getTypedRuleContexts(GeometryContext);
2132
+ return this.getTypedRuleContexts(PointOrClosedPointContext);
1400
2133
  } else {
1401
- return this.getTypedRuleContext(GeometryContext,i);
2134
+ return this.getTypedRuleContext(PointOrClosedPointContext,i);
1402
2135
  }
1403
2136
  };
1404
2137
 
@@ -1410,6 +2143,10 @@ class GeometryCollectionContext extends antlr4.ParserRuleContext {
1410
2143
  return this.getToken(wktParser.EMPTY_, 0);
1411
2144
  };
1412
2145
 
2146
+ dim() {
2147
+ return this.getTypedRuleContext(DimContext,0);
2148
+ };
2149
+
1413
2150
  COMMA = function(i) {
1414
2151
  if(i===undefined) {
1415
2152
  i = null;
@@ -1424,19 +2161,19 @@ class GeometryCollectionContext extends antlr4.ParserRuleContext {
1424
2161
 
1425
2162
  enterRule(listener) {
1426
2163
  if(listener instanceof wktListener ) {
1427
- listener.enterGeometryCollection(this);
2164
+ listener.enterMultiPointGeometry(this);
1428
2165
  }
1429
2166
  }
1430
2167
 
1431
2168
  exitRule(listener) {
1432
2169
  if(listener instanceof wktListener ) {
1433
- listener.exitGeometryCollection(this);
2170
+ listener.exitMultiPointGeometry(this);
1434
2171
  }
1435
2172
  }
1436
2173
 
1437
2174
  accept(visitor) {
1438
2175
  if ( visitor instanceof wktVisitor ) {
1439
- return visitor.visitGeometryCollection(this);
2176
+ return visitor.visitMultiPointGeometry(this);
1440
2177
  } else {
1441
2178
  return visitor.visitChildren(this);
1442
2179
  }
@@ -1447,7 +2184,7 @@ class GeometryCollectionContext extends antlr4.ParserRuleContext {
1447
2184
 
1448
2185
 
1449
2186
 
1450
- class GeometryContext extends antlr4.ParserRuleContext {
2187
+ class MultiLineStringGeometryContext extends antlr4.ParserRuleContext {
1451
2188
 
1452
2189
  constructor(parser, parent, invokingState) {
1453
2190
  if(parent===undefined) {
@@ -1458,80 +2195,67 @@ class GeometryContext extends antlr4.ParserRuleContext {
1458
2195
  }
1459
2196
  super(parent, invokingState);
1460
2197
  this.parser = parser;
1461
- this.ruleIndex = wktParser.RULE_geometry;
2198
+ this.ruleIndex = wktParser.RULE_multiLineStringGeometry;
1462
2199
  }
1463
2200
 
1464
- polygonGeometry() {
1465
- return this.getTypedRuleContext(PolygonGeometryContext,0);
1466
- };
1467
-
1468
- lineStringGeometry() {
1469
- return this.getTypedRuleContext(LineStringGeometryContext,0);
1470
- };
1471
-
1472
- pointGeometry() {
1473
- return this.getTypedRuleContext(PointGeometryContext,0);
1474
- };
1475
-
1476
- compoundCurveGeometry() {
1477
- return this.getTypedRuleContext(CompoundCurveGeometryContext,0);
1478
- };
1479
-
1480
- curvePolygonGeometry() {
1481
- return this.getTypedRuleContext(CurvePolygonGeometryContext,0);
1482
- };
1483
-
1484
- multiSurfaceGeometry() {
1485
- return this.getTypedRuleContext(MultiSurfaceGeometryContext,0);
1486
- };
1487
-
1488
- multiCurveGeometry() {
1489
- return this.getTypedRuleContext(MultiCurveGeometryContext,0);
2201
+ MULTILINESTRING() {
2202
+ return this.getToken(wktParser.MULTILINESTRING, 0);
1490
2203
  };
1491
2204
 
1492
- multiPointGeometry() {
1493
- return this.getTypedRuleContext(MultiPointGeometryContext,0);
2205
+ LPAR() {
2206
+ return this.getToken(wktParser.LPAR, 0);
1494
2207
  };
1495
2208
 
1496
- multiLineStringGeometry() {
1497
- return this.getTypedRuleContext(MultiLineStringGeometryContext,0);
2209
+ lineStringText = function(i) {
2210
+ if(i===undefined) {
2211
+ i = null;
2212
+ }
2213
+ if(i===null) {
2214
+ return this.getTypedRuleContexts(LineStringTextContext);
2215
+ } else {
2216
+ return this.getTypedRuleContext(LineStringTextContext,i);
2217
+ }
1498
2218
  };
1499
2219
 
1500
- multiPolygonGeometry() {
1501
- return this.getTypedRuleContext(MultiPolygonGeometryContext,0);
2220
+ RPAR() {
2221
+ return this.getToken(wktParser.RPAR, 0);
1502
2222
  };
1503
2223
 
1504
- circularStringGeometry() {
1505
- return this.getTypedRuleContext(CircularStringGeometryContext,0);
2224
+ EMPTY_() {
2225
+ return this.getToken(wktParser.EMPTY_, 0);
1506
2226
  };
1507
2227
 
1508
- multiPolyhedralSurfaceGeometry() {
1509
- return this.getTypedRuleContext(MultiPolyhedralSurfaceGeometryContext,0);
2228
+ dim() {
2229
+ return this.getTypedRuleContext(DimContext,0);
1510
2230
  };
1511
2231
 
1512
- multiTinGeometry() {
1513
- return this.getTypedRuleContext(MultiTinGeometryContext,0);
2232
+ COMMA = function(i) {
2233
+ if(i===undefined) {
2234
+ i = null;
2235
+ }
2236
+ if(i===null) {
2237
+ return this.getTokens(wktParser.COMMA);
2238
+ } else {
2239
+ return this.getToken(wktParser.COMMA, i);
2240
+ }
1514
2241
  };
1515
2242
 
1516
- geometryCollection() {
1517
- return this.getTypedRuleContext(GeometryCollectionContext,0);
1518
- };
1519
2243
 
1520
2244
  enterRule(listener) {
1521
2245
  if(listener instanceof wktListener ) {
1522
- listener.enterGeometry(this);
2246
+ listener.enterMultiLineStringGeometry(this);
1523
2247
  }
1524
2248
  }
1525
2249
 
1526
2250
  exitRule(listener) {
1527
2251
  if(listener instanceof wktListener ) {
1528
- listener.exitGeometry(this);
2252
+ listener.exitMultiLineStringGeometry(this);
1529
2253
  }
1530
2254
  }
1531
2255
 
1532
2256
  accept(visitor) {
1533
2257
  if ( visitor instanceof wktVisitor ) {
1534
- return visitor.visitGeometry(this);
2258
+ return visitor.visitMultiLineStringGeometry(this);
1535
2259
  } else {
1536
2260
  return visitor.visitChildren(this);
1537
2261
  }
@@ -1542,7 +2266,7 @@ class GeometryContext extends antlr4.ParserRuleContext {
1542
2266
 
1543
2267
 
1544
2268
 
1545
- class PointGeometryContext extends antlr4.ParserRuleContext {
2269
+ class MultiPolygonGeometryContext extends antlr4.ParserRuleContext {
1546
2270
 
1547
2271
  constructor(parser, parent, invokingState) {
1548
2272
  if(parent===undefined) {
@@ -1553,48 +2277,67 @@ class PointGeometryContext extends antlr4.ParserRuleContext {
1553
2277
  }
1554
2278
  super(parent, invokingState);
1555
2279
  this.parser = parser;
1556
- this.ruleIndex = wktParser.RULE_pointGeometry;
2280
+ this.ruleIndex = wktParser.RULE_multiPolygonGeometry;
1557
2281
  }
1558
2282
 
1559
- POINT() {
1560
- return this.getToken(wktParser.POINT, 0);
1561
- };
1562
-
1563
- EMPTY_() {
1564
- return this.getToken(wktParser.EMPTY_, 0);
2283
+ MULTIPOLYGON() {
2284
+ return this.getToken(wktParser.MULTIPOLYGON, 0);
1565
2285
  };
1566
2286
 
1567
2287
  LPAR() {
1568
2288
  return this.getToken(wktParser.LPAR, 0);
1569
2289
  };
1570
2290
 
1571
- point() {
1572
- return this.getTypedRuleContext(PointContext,0);
2291
+ polygonText = function(i) {
2292
+ if(i===undefined) {
2293
+ i = null;
2294
+ }
2295
+ if(i===null) {
2296
+ return this.getTypedRuleContexts(PolygonTextContext);
2297
+ } else {
2298
+ return this.getTypedRuleContext(PolygonTextContext,i);
2299
+ }
1573
2300
  };
1574
2301
 
1575
2302
  RPAR() {
1576
2303
  return this.getToken(wktParser.RPAR, 0);
1577
2304
  };
1578
2305
 
1579
- name() {
1580
- return this.getTypedRuleContext(NameContext,0);
2306
+ EMPTY_() {
2307
+ return this.getToken(wktParser.EMPTY_, 0);
2308
+ };
2309
+
2310
+ dim() {
2311
+ return this.getTypedRuleContext(DimContext,0);
2312
+ };
2313
+
2314
+ COMMA = function(i) {
2315
+ if(i===undefined) {
2316
+ i = null;
2317
+ }
2318
+ if(i===null) {
2319
+ return this.getTokens(wktParser.COMMA);
2320
+ } else {
2321
+ return this.getToken(wktParser.COMMA, i);
2322
+ }
1581
2323
  };
1582
2324
 
2325
+
1583
2326
  enterRule(listener) {
1584
2327
  if(listener instanceof wktListener ) {
1585
- listener.enterPointGeometry(this);
2328
+ listener.enterMultiPolygonGeometry(this);
1586
2329
  }
1587
2330
  }
1588
2331
 
1589
2332
  exitRule(listener) {
1590
2333
  if(listener instanceof wktListener ) {
1591
- listener.exitPointGeometry(this);
2334
+ listener.exitMultiPolygonGeometry(this);
1592
2335
  }
1593
2336
  }
1594
2337
 
1595
2338
  accept(visitor) {
1596
2339
  if ( visitor instanceof wktVisitor ) {
1597
- return visitor.visitPointGeometry(this);
2340
+ return visitor.visitMultiPolygonGeometry(this);
1598
2341
  } else {
1599
2342
  return visitor.visitChildren(this);
1600
2343
  }
@@ -1605,7 +2348,7 @@ class PointGeometryContext extends antlr4.ParserRuleContext {
1605
2348
 
1606
2349
 
1607
2350
 
1608
- class LineStringGeometryContext extends antlr4.ParserRuleContext {
2351
+ class GeometryCollectionContext extends antlr4.ParserRuleContext {
1609
2352
 
1610
2353
  constructor(parser, parent, invokingState) {
1611
2354
  if(parent===undefined) {
@@ -1616,32 +2359,67 @@ class LineStringGeometryContext extends antlr4.ParserRuleContext {
1616
2359
  }
1617
2360
  super(parent, invokingState);
1618
2361
  this.parser = parser;
1619
- this.ruleIndex = wktParser.RULE_lineStringGeometry;
2362
+ this.ruleIndex = wktParser.RULE_geometryCollection;
1620
2363
  }
1621
2364
 
1622
- LINESTRING() {
1623
- return this.getToken(wktParser.LINESTRING, 0);
2365
+ GEOMETRYCOLLECTION() {
2366
+ return this.getToken(wktParser.GEOMETRYCOLLECTION, 0);
2367
+ };
2368
+
2369
+ LPAR() {
2370
+ return this.getToken(wktParser.LPAR, 0);
2371
+ };
2372
+
2373
+ geometry = function(i) {
2374
+ if(i===undefined) {
2375
+ i = null;
2376
+ }
2377
+ if(i===null) {
2378
+ return this.getTypedRuleContexts(GeometryContext);
2379
+ } else {
2380
+ return this.getTypedRuleContext(GeometryContext,i);
2381
+ }
2382
+ };
2383
+
2384
+ RPAR() {
2385
+ return this.getToken(wktParser.RPAR, 0);
2386
+ };
2387
+
2388
+ EMPTY_() {
2389
+ return this.getToken(wktParser.EMPTY_, 0);
2390
+ };
2391
+
2392
+ dim() {
2393
+ return this.getTypedRuleContext(DimContext,0);
1624
2394
  };
1625
2395
 
1626
- lineString() {
1627
- return this.getTypedRuleContext(LineStringContext,0);
2396
+ COMMA = function(i) {
2397
+ if(i===undefined) {
2398
+ i = null;
2399
+ }
2400
+ if(i===null) {
2401
+ return this.getTokens(wktParser.COMMA);
2402
+ } else {
2403
+ return this.getToken(wktParser.COMMA, i);
2404
+ }
1628
2405
  };
1629
2406
 
2407
+
1630
2408
  enterRule(listener) {
1631
2409
  if(listener instanceof wktListener ) {
1632
- listener.enterLineStringGeometry(this);
2410
+ listener.enterGeometryCollection(this);
1633
2411
  }
1634
2412
  }
1635
2413
 
1636
2414
  exitRule(listener) {
1637
2415
  if(listener instanceof wktListener ) {
1638
- listener.exitLineStringGeometry(this);
2416
+ listener.exitGeometryCollection(this);
1639
2417
  }
1640
2418
  }
1641
2419
 
1642
2420
  accept(visitor) {
1643
2421
  if ( visitor instanceof wktVisitor ) {
1644
- return visitor.visitLineStringGeometry(this);
2422
+ return visitor.visitGeometryCollection(this);
1645
2423
  } else {
1646
2424
  return visitor.visitChildren(this);
1647
2425
  }
@@ -1652,7 +2430,7 @@ class LineStringGeometryContext extends antlr4.ParserRuleContext {
1652
2430
 
1653
2431
 
1654
2432
 
1655
- class PolygonGeometryContext extends antlr4.ParserRuleContext {
2433
+ class CircularStringGeometryContext extends antlr4.ParserRuleContext {
1656
2434
 
1657
2435
  constructor(parser, parent, invokingState) {
1658
2436
  if(parent===undefined) {
@@ -1663,32 +2441,36 @@ class PolygonGeometryContext extends antlr4.ParserRuleContext {
1663
2441
  }
1664
2442
  super(parent, invokingState);
1665
2443
  this.parser = parser;
1666
- this.ruleIndex = wktParser.RULE_polygonGeometry;
2444
+ this.ruleIndex = wktParser.RULE_circularStringGeometry;
1667
2445
  }
1668
2446
 
1669
- POLYGON() {
1670
- return this.getToken(wktParser.POLYGON, 0);
2447
+ CIRCULARSTRING() {
2448
+ return this.getToken(wktParser.CIRCULARSTRING, 0);
2449
+ };
2450
+
2451
+ lineStringText() {
2452
+ return this.getTypedRuleContext(LineStringTextContext,0);
1671
2453
  };
1672
2454
 
1673
- polygon() {
1674
- return this.getTypedRuleContext(PolygonContext,0);
2455
+ dim() {
2456
+ return this.getTypedRuleContext(DimContext,0);
1675
2457
  };
1676
2458
 
1677
2459
  enterRule(listener) {
1678
2460
  if(listener instanceof wktListener ) {
1679
- listener.enterPolygonGeometry(this);
2461
+ listener.enterCircularStringGeometry(this);
1680
2462
  }
1681
2463
  }
1682
2464
 
1683
2465
  exitRule(listener) {
1684
2466
  if(listener instanceof wktListener ) {
1685
- listener.exitPolygonGeometry(this);
2467
+ listener.exitCircularStringGeometry(this);
1686
2468
  }
1687
2469
  }
1688
2470
 
1689
2471
  accept(visitor) {
1690
2472
  if ( visitor instanceof wktVisitor ) {
1691
- return visitor.visitPolygonGeometry(this);
2473
+ return visitor.visitCircularStringGeometry(this);
1692
2474
  } else {
1693
2475
  return visitor.visitChildren(this);
1694
2476
  }
@@ -1699,7 +2481,7 @@ class PolygonGeometryContext extends antlr4.ParserRuleContext {
1699
2481
 
1700
2482
 
1701
2483
 
1702
- class MultiCurveGeometryContext extends antlr4.ParserRuleContext {
2484
+ class CompoundCurveGeometryContext extends antlr4.ParserRuleContext {
1703
2485
 
1704
2486
  constructor(parser, parent, invokingState) {
1705
2487
  if(parent===undefined) {
@@ -1710,56 +2492,38 @@ class MultiCurveGeometryContext extends antlr4.ParserRuleContext {
1710
2492
  }
1711
2493
  super(parent, invokingState);
1712
2494
  this.parser = parser;
1713
- this.ruleIndex = wktParser.RULE_multiCurveGeometry;
2495
+ this.ruleIndex = wktParser.RULE_compoundCurveGeometry;
1714
2496
  }
1715
2497
 
1716
- MULTICURVE() {
1717
- return this.getToken(wktParser.MULTICURVE, 0);
1718
- };
1719
-
1720
- EMPTY_() {
1721
- return this.getToken(wktParser.EMPTY_, 0);
2498
+ COMPOUNDCURVE() {
2499
+ return this.getToken(wktParser.COMPOUNDCURVE, 0);
1722
2500
  };
1723
2501
 
1724
2502
  LPAR() {
1725
2503
  return this.getToken(wktParser.LPAR, 0);
1726
2504
  };
1727
2505
 
1728
- RPAR() {
1729
- return this.getToken(wktParser.RPAR, 0);
1730
- };
1731
-
1732
- lineString = function(i) {
2506
+ compoundCurveMember = function(i) {
1733
2507
  if(i===undefined) {
1734
2508
  i = null;
1735
2509
  }
1736
2510
  if(i===null) {
1737
- return this.getTypedRuleContexts(LineStringContext);
2511
+ return this.getTypedRuleContexts(CompoundCurveMemberContext);
1738
2512
  } else {
1739
- return this.getTypedRuleContext(LineStringContext,i);
2513
+ return this.getTypedRuleContext(CompoundCurveMemberContext,i);
1740
2514
  }
1741
2515
  };
1742
2516
 
1743
- circularStringGeometry = function(i) {
1744
- if(i===undefined) {
1745
- i = null;
1746
- }
1747
- if(i===null) {
1748
- return this.getTypedRuleContexts(CircularStringGeometryContext);
1749
- } else {
1750
- return this.getTypedRuleContext(CircularStringGeometryContext,i);
1751
- }
2517
+ RPAR() {
2518
+ return this.getToken(wktParser.RPAR, 0);
1752
2519
  };
1753
2520
 
1754
- compoundCurveGeometry = function(i) {
1755
- if(i===undefined) {
1756
- i = null;
1757
- }
1758
- if(i===null) {
1759
- return this.getTypedRuleContexts(CompoundCurveGeometryContext);
1760
- } else {
1761
- return this.getTypedRuleContext(CompoundCurveGeometryContext,i);
1762
- }
2521
+ EMPTY_() {
2522
+ return this.getToken(wktParser.EMPTY_, 0);
2523
+ };
2524
+
2525
+ dim() {
2526
+ return this.getTypedRuleContext(DimContext,0);
1763
2527
  };
1764
2528
 
1765
2529
  COMMA = function(i) {
@@ -1776,19 +2540,19 @@ class MultiCurveGeometryContext extends antlr4.ParserRuleContext {
1776
2540
 
1777
2541
  enterRule(listener) {
1778
2542
  if(listener instanceof wktListener ) {
1779
- listener.enterMultiCurveGeometry(this);
2543
+ listener.enterCompoundCurveGeometry(this);
1780
2544
  }
1781
2545
  }
1782
2546
 
1783
2547
  exitRule(listener) {
1784
2548
  if(listener instanceof wktListener ) {
1785
- listener.exitMultiCurveGeometry(this);
2549
+ listener.exitCompoundCurveGeometry(this);
1786
2550
  }
1787
2551
  }
1788
2552
 
1789
2553
  accept(visitor) {
1790
2554
  if ( visitor instanceof wktVisitor ) {
1791
- return visitor.visitMultiCurveGeometry(this);
2555
+ return visitor.visitCompoundCurveGeometry(this);
1792
2556
  } else {
1793
2557
  return visitor.visitChildren(this);
1794
2558
  }
@@ -1799,7 +2563,7 @@ class MultiCurveGeometryContext extends antlr4.ParserRuleContext {
1799
2563
 
1800
2564
 
1801
2565
 
1802
- class MultiSurfaceGeometryContext extends antlr4.ParserRuleContext {
2566
+ class CompoundCurveMemberContext extends antlr4.ParserRuleContext {
1803
2567
 
1804
2568
  constructor(parser, parent, invokingState) {
1805
2569
  if(parent===undefined) {
@@ -1810,74 +2574,36 @@ class MultiSurfaceGeometryContext extends antlr4.ParserRuleContext {
1810
2574
  }
1811
2575
  super(parent, invokingState);
1812
2576
  this.parser = parser;
1813
- this.ruleIndex = wktParser.RULE_multiSurfaceGeometry;
2577
+ this.ruleIndex = wktParser.RULE_compoundCurveMember;
1814
2578
  }
1815
2579
 
1816
- MULTISURFACE() {
1817
- return this.getToken(wktParser.MULTISURFACE, 0);
1818
- };
1819
-
1820
- EMPTY_() {
1821
- return this.getToken(wktParser.EMPTY_, 0);
1822
- };
1823
-
1824
- LPAR() {
1825
- return this.getToken(wktParser.LPAR, 0);
1826
- };
1827
-
1828
- RPAR() {
1829
- return this.getToken(wktParser.RPAR, 0);
1830
- };
1831
-
1832
- polygon = function(i) {
1833
- if(i===undefined) {
1834
- i = null;
1835
- }
1836
- if(i===null) {
1837
- return this.getTypedRuleContexts(PolygonContext);
1838
- } else {
1839
- return this.getTypedRuleContext(PolygonContext,i);
1840
- }
2580
+ lineStringText() {
2581
+ return this.getTypedRuleContext(LineStringTextContext,0);
1841
2582
  };
1842
2583
 
1843
- curvePolygonGeometry = function(i) {
1844
- if(i===undefined) {
1845
- i = null;
1846
- }
1847
- if(i===null) {
1848
- return this.getTypedRuleContexts(CurvePolygonGeometryContext);
1849
- } else {
1850
- return this.getTypedRuleContext(CurvePolygonGeometryContext,i);
1851
- }
2584
+ circularStringGeometry() {
2585
+ return this.getTypedRuleContext(CircularStringGeometryContext,0);
1852
2586
  };
1853
2587
 
1854
- COMMA = function(i) {
1855
- if(i===undefined) {
1856
- i = null;
1857
- }
1858
- if(i===null) {
1859
- return this.getTokens(wktParser.COMMA);
1860
- } else {
1861
- return this.getToken(wktParser.COMMA, i);
1862
- }
2588
+ clothoidGeometry() {
2589
+ return this.getTypedRuleContext(ClothoidGeometryContext,0);
1863
2590
  };
1864
2591
 
1865
-
1866
2592
  enterRule(listener) {
1867
2593
  if(listener instanceof wktListener ) {
1868
- listener.enterMultiSurfaceGeometry(this);
2594
+ listener.enterCompoundCurveMember(this);
1869
2595
  }
1870
2596
  }
1871
2597
 
1872
2598
  exitRule(listener) {
1873
2599
  if(listener instanceof wktListener ) {
1874
- listener.exitMultiSurfaceGeometry(this);
2600
+ listener.exitCompoundCurveMember(this);
1875
2601
  }
1876
2602
  }
1877
2603
 
1878
2604
  accept(visitor) {
1879
2605
  if ( visitor instanceof wktVisitor ) {
1880
- return visitor.visitMultiSurfaceGeometry(this);
2606
+ return visitor.visitCompoundCurveMember(this);
1881
2607
  } else {
1882
2608
  return visitor.visitChildren(this);
1883
2609
  }
@@ -1888,7 +2614,7 @@ class MultiSurfaceGeometryContext extends antlr4.ParserRuleContext {
1888
2614
 
1889
2615
 
1890
2616
 
1891
- class CurvePolygonGeometryContext extends antlr4.ParserRuleContext {
2617
+ class ClothoidGeometryContext extends antlr4.ParserRuleContext {
1892
2618
 
1893
2619
  constructor(parser, parent, invokingState) {
1894
2620
  if(parent===undefined) {
@@ -1899,55 +2625,25 @@ class CurvePolygonGeometryContext extends antlr4.ParserRuleContext {
1899
2625
  }
1900
2626
  super(parent, invokingState);
1901
2627
  this.parser = parser;
1902
- this.ruleIndex = wktParser.RULE_curvePolygonGeometry;
2628
+ this.ruleIndex = wktParser.RULE_clothoidGeometry;
1903
2629
  }
1904
2630
 
1905
- CURVEPOLYGON() {
1906
- return this.getToken(wktParser.CURVEPOLYGON, 0);
1907
- };
1908
-
1909
- EMPTY_() {
1910
- return this.getToken(wktParser.EMPTY_, 0);
2631
+ CLOTHOID() {
2632
+ return this.getToken(wktParser.CLOTHOID, 0);
1911
2633
  };
1912
2634
 
1913
2635
  LPAR() {
1914
2636
  return this.getToken(wktParser.LPAR, 0);
1915
2637
  };
1916
2638
 
1917
- RPAR() {
1918
- return this.getToken(wktParser.RPAR, 0);
1919
- };
1920
-
1921
- lineString = function(i) {
1922
- if(i===undefined) {
1923
- i = null;
1924
- }
1925
- if(i===null) {
1926
- return this.getTypedRuleContexts(LineStringContext);
1927
- } else {
1928
- return this.getTypedRuleContext(LineStringContext,i);
1929
- }
1930
- };
1931
-
1932
- circularStringGeometry = function(i) {
1933
- if(i===undefined) {
1934
- i = null;
1935
- }
1936
- if(i===null) {
1937
- return this.getTypedRuleContexts(CircularStringGeometryContext);
1938
- } else {
1939
- return this.getTypedRuleContext(CircularStringGeometryContext,i);
1940
- }
1941
- };
1942
-
1943
- compoundCurveGeometry = function(i) {
2639
+ ordinate = function(i) {
1944
2640
  if(i===undefined) {
1945
2641
  i = null;
1946
2642
  }
1947
2643
  if(i===null) {
1948
- return this.getTypedRuleContexts(CompoundCurveGeometryContext);
2644
+ return this.getTypedRuleContexts(OrdinateContext);
1949
2645
  } else {
1950
- return this.getTypedRuleContext(CompoundCurveGeometryContext,i);
2646
+ return this.getTypedRuleContext(OrdinateContext,i);
1951
2647
  }
1952
2648
  };
1953
2649
 
@@ -1963,21 +2659,25 @@ class CurvePolygonGeometryContext extends antlr4.ParserRuleContext {
1963
2659
  };
1964
2660
 
1965
2661
 
2662
+ RPAR() {
2663
+ return this.getToken(wktParser.RPAR, 0);
2664
+ };
2665
+
1966
2666
  enterRule(listener) {
1967
2667
  if(listener instanceof wktListener ) {
1968
- listener.enterCurvePolygonGeometry(this);
2668
+ listener.enterClothoidGeometry(this);
1969
2669
  }
1970
2670
  }
1971
2671
 
1972
2672
  exitRule(listener) {
1973
2673
  if(listener instanceof wktListener ) {
1974
- listener.exitCurvePolygonGeometry(this);
2674
+ listener.exitClothoidGeometry(this);
1975
2675
  }
1976
2676
  }
1977
2677
 
1978
2678
  accept(visitor) {
1979
2679
  if ( visitor instanceof wktVisitor ) {
1980
- return visitor.visitCurvePolygonGeometry(this);
2680
+ return visitor.visitClothoidGeometry(this);
1981
2681
  } else {
1982
2682
  return visitor.visitChildren(this);
1983
2683
  }
@@ -1988,7 +2688,7 @@ class CurvePolygonGeometryContext extends antlr4.ParserRuleContext {
1988
2688
 
1989
2689
 
1990
2690
 
1991
- class CompoundCurveGeometryContext extends antlr4.ParserRuleContext {
2691
+ class CurvePolygonGeometryContext extends antlr4.ParserRuleContext {
1992
2692
 
1993
2693
  constructor(parser, parent, invokingState) {
1994
2694
  if(parent===undefined) {
@@ -1999,45 +2699,38 @@ class CompoundCurveGeometryContext extends antlr4.ParserRuleContext {
1999
2699
  }
2000
2700
  super(parent, invokingState);
2001
2701
  this.parser = parser;
2002
- this.ruleIndex = wktParser.RULE_compoundCurveGeometry;
2702
+ this.ruleIndex = wktParser.RULE_curvePolygonGeometry;
2003
2703
  }
2004
2704
 
2005
- COMPOUNDCURVE() {
2006
- return this.getToken(wktParser.COMPOUNDCURVE, 0);
2007
- };
2008
-
2009
- EMPTY_() {
2010
- return this.getToken(wktParser.EMPTY_, 0);
2705
+ CURVEPOLYGON() {
2706
+ return this.getToken(wktParser.CURVEPOLYGON, 0);
2011
2707
  };
2012
2708
 
2013
2709
  LPAR() {
2014
2710
  return this.getToken(wktParser.LPAR, 0);
2015
2711
  };
2016
2712
 
2017
- RPAR() {
2018
- return this.getToken(wktParser.RPAR, 0);
2019
- };
2020
-
2021
- lineString = function(i) {
2713
+ curveMember = function(i) {
2022
2714
  if(i===undefined) {
2023
2715
  i = null;
2024
2716
  }
2025
2717
  if(i===null) {
2026
- return this.getTypedRuleContexts(LineStringContext);
2718
+ return this.getTypedRuleContexts(CurveMemberContext);
2027
2719
  } else {
2028
- return this.getTypedRuleContext(LineStringContext,i);
2720
+ return this.getTypedRuleContext(CurveMemberContext,i);
2029
2721
  }
2030
2722
  };
2031
2723
 
2032
- circularStringGeometry = function(i) {
2033
- if(i===undefined) {
2034
- i = null;
2035
- }
2036
- if(i===null) {
2037
- return this.getTypedRuleContexts(CircularStringGeometryContext);
2038
- } else {
2039
- return this.getTypedRuleContext(CircularStringGeometryContext,i);
2040
- }
2724
+ RPAR() {
2725
+ return this.getToken(wktParser.RPAR, 0);
2726
+ };
2727
+
2728
+ EMPTY_() {
2729
+ return this.getToken(wktParser.EMPTY_, 0);
2730
+ };
2731
+
2732
+ dim() {
2733
+ return this.getTypedRuleContext(DimContext,0);
2041
2734
  };
2042
2735
 
2043
2736
  COMMA = function(i) {
@@ -2054,19 +2747,19 @@ class CompoundCurveGeometryContext extends antlr4.ParserRuleContext {
2054
2747
 
2055
2748
  enterRule(listener) {
2056
2749
  if(listener instanceof wktListener ) {
2057
- listener.enterCompoundCurveGeometry(this);
2750
+ listener.enterCurvePolygonGeometry(this);
2058
2751
  }
2059
2752
  }
2060
2753
 
2061
2754
  exitRule(listener) {
2062
2755
  if(listener instanceof wktListener ) {
2063
- listener.exitCompoundCurveGeometry(this);
2756
+ listener.exitCurvePolygonGeometry(this);
2064
2757
  }
2065
2758
  }
2066
2759
 
2067
2760
  accept(visitor) {
2068
2761
  if ( visitor instanceof wktVisitor ) {
2069
- return visitor.visitCompoundCurveGeometry(this);
2762
+ return visitor.visitCurvePolygonGeometry(this);
2070
2763
  } else {
2071
2764
  return visitor.visitChildren(this);
2072
2765
  }
@@ -2077,7 +2770,7 @@ class CompoundCurveGeometryContext extends antlr4.ParserRuleContext {
2077
2770
 
2078
2771
 
2079
2772
 
2080
- class MultiPointGeometryContext extends antlr4.ParserRuleContext {
2773
+ class MultiCurveGeometryContext extends antlr4.ParserRuleContext {
2081
2774
 
2082
2775
  constructor(parser, parent, invokingState) {
2083
2776
  if(parent===undefined) {
@@ -2088,29 +2781,25 @@ class MultiPointGeometryContext extends antlr4.ParserRuleContext {
2088
2781
  }
2089
2782
  super(parent, invokingState);
2090
2783
  this.parser = parser;
2091
- this.ruleIndex = wktParser.RULE_multiPointGeometry;
2784
+ this.ruleIndex = wktParser.RULE_multiCurveGeometry;
2092
2785
  }
2093
2786
 
2094
- MULTIPOINT() {
2095
- return this.getToken(wktParser.MULTIPOINT, 0);
2096
- };
2097
-
2098
- EMPTY_() {
2099
- return this.getToken(wktParser.EMPTY_, 0);
2787
+ MULTICURVE() {
2788
+ return this.getToken(wktParser.MULTICURVE, 0);
2100
2789
  };
2101
2790
 
2102
2791
  LPAR() {
2103
2792
  return this.getToken(wktParser.LPAR, 0);
2104
2793
  };
2105
2794
 
2106
- pointOrClosedPoint = function(i) {
2795
+ curveMember = function(i) {
2107
2796
  if(i===undefined) {
2108
2797
  i = null;
2109
2798
  }
2110
2799
  if(i===null) {
2111
- return this.getTypedRuleContexts(PointOrClosedPointContext);
2800
+ return this.getTypedRuleContexts(CurveMemberContext);
2112
2801
  } else {
2113
- return this.getTypedRuleContext(PointOrClosedPointContext,i);
2802
+ return this.getTypedRuleContext(CurveMemberContext,i);
2114
2803
  }
2115
2804
  };
2116
2805
 
@@ -2118,6 +2807,14 @@ class MultiPointGeometryContext extends antlr4.ParserRuleContext {
2118
2807
  return this.getToken(wktParser.RPAR, 0);
2119
2808
  };
2120
2809
 
2810
+ EMPTY_() {
2811
+ return this.getToken(wktParser.EMPTY_, 0);
2812
+ };
2813
+
2814
+ dim() {
2815
+ return this.getTypedRuleContext(DimContext,0);
2816
+ };
2817
+
2121
2818
  COMMA = function(i) {
2122
2819
  if(i===undefined) {
2123
2820
  i = null;
@@ -2132,19 +2829,19 @@ class MultiPointGeometryContext extends antlr4.ParserRuleContext {
2132
2829
 
2133
2830
  enterRule(listener) {
2134
2831
  if(listener instanceof wktListener ) {
2135
- listener.enterMultiPointGeometry(this);
2832
+ listener.enterMultiCurveGeometry(this);
2136
2833
  }
2137
2834
  }
2138
2835
 
2139
2836
  exitRule(listener) {
2140
2837
  if(listener instanceof wktListener ) {
2141
- listener.exitMultiPointGeometry(this);
2838
+ listener.exitMultiCurveGeometry(this);
2142
2839
  }
2143
2840
  }
2144
2841
 
2145
2842
  accept(visitor) {
2146
2843
  if ( visitor instanceof wktVisitor ) {
2147
- return visitor.visitMultiPointGeometry(this);
2844
+ return visitor.visitMultiCurveGeometry(this);
2148
2845
  } else {
2149
2846
  return visitor.visitChildren(this);
2150
2847
  }
@@ -2155,7 +2852,7 @@ class MultiPointGeometryContext extends antlr4.ParserRuleContext {
2155
2852
 
2156
2853
 
2157
2854
 
2158
- class MultiLineStringGeometryContext extends antlr4.ParserRuleContext {
2855
+ class CurveMemberContext extends antlr4.ParserRuleContext {
2159
2856
 
2160
2857
  constructor(parser, parent, invokingState) {
2161
2858
  if(parent===undefined) {
@@ -2166,63 +2863,36 @@ class MultiLineStringGeometryContext extends antlr4.ParserRuleContext {
2166
2863
  }
2167
2864
  super(parent, invokingState);
2168
2865
  this.parser = parser;
2169
- this.ruleIndex = wktParser.RULE_multiLineStringGeometry;
2866
+ this.ruleIndex = wktParser.RULE_curveMember;
2170
2867
  }
2171
2868
 
2172
- MULTILINESTRING() {
2173
- return this.getToken(wktParser.MULTILINESTRING, 0);
2174
- };
2175
-
2176
- EMPTY_() {
2177
- return this.getToken(wktParser.EMPTY_, 0);
2178
- };
2179
-
2180
- LPAR() {
2181
- return this.getToken(wktParser.LPAR, 0);
2182
- };
2183
-
2184
- lineString = function(i) {
2185
- if(i===undefined) {
2186
- i = null;
2187
- }
2188
- if(i===null) {
2189
- return this.getTypedRuleContexts(LineStringContext);
2190
- } else {
2191
- return this.getTypedRuleContext(LineStringContext,i);
2192
- }
2869
+ lineStringText() {
2870
+ return this.getTypedRuleContext(LineStringTextContext,0);
2193
2871
  };
2194
2872
 
2195
- RPAR() {
2196
- return this.getToken(wktParser.RPAR, 0);
2873
+ circularStringGeometry() {
2874
+ return this.getTypedRuleContext(CircularStringGeometryContext,0);
2197
2875
  };
2198
2876
 
2199
- COMMA = function(i) {
2200
- if(i===undefined) {
2201
- i = null;
2202
- }
2203
- if(i===null) {
2204
- return this.getTokens(wktParser.COMMA);
2205
- } else {
2206
- return this.getToken(wktParser.COMMA, i);
2207
- }
2877
+ compoundCurveGeometry() {
2878
+ return this.getTypedRuleContext(CompoundCurveGeometryContext,0);
2208
2879
  };
2209
2880
 
2210
-
2211
2881
  enterRule(listener) {
2212
2882
  if(listener instanceof wktListener ) {
2213
- listener.enterMultiLineStringGeometry(this);
2883
+ listener.enterCurveMember(this);
2214
2884
  }
2215
2885
  }
2216
2886
 
2217
2887
  exitRule(listener) {
2218
2888
  if(listener instanceof wktListener ) {
2219
- listener.exitMultiLineStringGeometry(this);
2889
+ listener.exitCurveMember(this);
2220
2890
  }
2221
2891
  }
2222
2892
 
2223
2893
  accept(visitor) {
2224
2894
  if ( visitor instanceof wktVisitor ) {
2225
- return visitor.visitMultiLineStringGeometry(this);
2895
+ return visitor.visitCurveMember(this);
2226
2896
  } else {
2227
2897
  return visitor.visitChildren(this);
2228
2898
  }
@@ -2233,7 +2903,7 @@ class MultiLineStringGeometryContext extends antlr4.ParserRuleContext {
2233
2903
 
2234
2904
 
2235
2905
 
2236
- class MultiPolygonGeometryContext extends antlr4.ParserRuleContext {
2906
+ class MultiSurfaceGeometryContext extends antlr4.ParserRuleContext {
2237
2907
 
2238
2908
  constructor(parser, parent, invokingState) {
2239
2909
  if(parent===undefined) {
@@ -2244,29 +2914,25 @@ class MultiPolygonGeometryContext extends antlr4.ParserRuleContext {
2244
2914
  }
2245
2915
  super(parent, invokingState);
2246
2916
  this.parser = parser;
2247
- this.ruleIndex = wktParser.RULE_multiPolygonGeometry;
2917
+ this.ruleIndex = wktParser.RULE_multiSurfaceGeometry;
2248
2918
  }
2249
2919
 
2250
- MULTIPOLYGON() {
2251
- return this.getToken(wktParser.MULTIPOLYGON, 0);
2252
- };
2253
-
2254
- EMPTY_() {
2255
- return this.getToken(wktParser.EMPTY_, 0);
2920
+ MULTISURFACE() {
2921
+ return this.getToken(wktParser.MULTISURFACE, 0);
2256
2922
  };
2257
2923
 
2258
2924
  LPAR() {
2259
2925
  return this.getToken(wktParser.LPAR, 0);
2260
2926
  };
2261
2927
 
2262
- polygon = function(i) {
2928
+ surfaceMember = function(i) {
2263
2929
  if(i===undefined) {
2264
2930
  i = null;
2265
2931
  }
2266
2932
  if(i===null) {
2267
- return this.getTypedRuleContexts(PolygonContext);
2933
+ return this.getTypedRuleContexts(SurfaceMemberContext);
2268
2934
  } else {
2269
- return this.getTypedRuleContext(PolygonContext,i);
2935
+ return this.getTypedRuleContext(SurfaceMemberContext,i);
2270
2936
  }
2271
2937
  };
2272
2938
 
@@ -2274,6 +2940,14 @@ class MultiPolygonGeometryContext extends antlr4.ParserRuleContext {
2274
2940
  return this.getToken(wktParser.RPAR, 0);
2275
2941
  };
2276
2942
 
2943
+ EMPTY_() {
2944
+ return this.getToken(wktParser.EMPTY_, 0);
2945
+ };
2946
+
2947
+ dim() {
2948
+ return this.getTypedRuleContext(DimContext,0);
2949
+ };
2950
+
2277
2951
  COMMA = function(i) {
2278
2952
  if(i===undefined) {
2279
2953
  i = null;
@@ -2288,19 +2962,19 @@ class MultiPolygonGeometryContext extends antlr4.ParserRuleContext {
2288
2962
 
2289
2963
  enterRule(listener) {
2290
2964
  if(listener instanceof wktListener ) {
2291
- listener.enterMultiPolygonGeometry(this);
2965
+ listener.enterMultiSurfaceGeometry(this);
2292
2966
  }
2293
2967
  }
2294
2968
 
2295
2969
  exitRule(listener) {
2296
2970
  if(listener instanceof wktListener ) {
2297
- listener.exitMultiPolygonGeometry(this);
2971
+ listener.exitMultiSurfaceGeometry(this);
2298
2972
  }
2299
2973
  }
2300
2974
 
2301
2975
  accept(visitor) {
2302
2976
  if ( visitor instanceof wktVisitor ) {
2303
- return visitor.visitMultiPolygonGeometry(this);
2977
+ return visitor.visitMultiSurfaceGeometry(this);
2304
2978
  } else {
2305
2979
  return visitor.visitChildren(this);
2306
2980
  }
@@ -2311,7 +2985,7 @@ class MultiPolygonGeometryContext extends antlr4.ParserRuleContext {
2311
2985
 
2312
2986
 
2313
2987
 
2314
- class MultiPolyhedralSurfaceGeometryContext extends antlr4.ParserRuleContext {
2988
+ class SurfaceMemberContext extends antlr4.ParserRuleContext {
2315
2989
 
2316
2990
  constructor(parser, parent, invokingState) {
2317
2991
  if(parent===undefined) {
@@ -2322,63 +2996,32 @@ class MultiPolyhedralSurfaceGeometryContext extends antlr4.ParserRuleContext {
2322
2996
  }
2323
2997
  super(parent, invokingState);
2324
2998
  this.parser = parser;
2325
- this.ruleIndex = wktParser.RULE_multiPolyhedralSurfaceGeometry;
2999
+ this.ruleIndex = wktParser.RULE_surfaceMember;
2326
3000
  }
2327
3001
 
2328
- POLYHEDRALSURFACE() {
2329
- return this.getToken(wktParser.POLYHEDRALSURFACE, 0);
2330
- };
2331
-
2332
- EMPTY_() {
2333
- return this.getToken(wktParser.EMPTY_, 0);
2334
- };
2335
-
2336
- LPAR() {
2337
- return this.getToken(wktParser.LPAR, 0);
2338
- };
2339
-
2340
- polygon = function(i) {
2341
- if(i===undefined) {
2342
- i = null;
2343
- }
2344
- if(i===null) {
2345
- return this.getTypedRuleContexts(PolygonContext);
2346
- } else {
2347
- return this.getTypedRuleContext(PolygonContext,i);
2348
- }
2349
- };
2350
-
2351
- RPAR() {
2352
- return this.getToken(wktParser.RPAR, 0);
3002
+ polygonText() {
3003
+ return this.getTypedRuleContext(PolygonTextContext,0);
2353
3004
  };
2354
3005
 
2355
- COMMA = function(i) {
2356
- if(i===undefined) {
2357
- i = null;
2358
- }
2359
- if(i===null) {
2360
- return this.getTokens(wktParser.COMMA);
2361
- } else {
2362
- return this.getToken(wktParser.COMMA, i);
2363
- }
3006
+ curvePolygonGeometry() {
3007
+ return this.getTypedRuleContext(CurvePolygonGeometryContext,0);
2364
3008
  };
2365
3009
 
2366
-
2367
3010
  enterRule(listener) {
2368
3011
  if(listener instanceof wktListener ) {
2369
- listener.enterMultiPolyhedralSurfaceGeometry(this);
3012
+ listener.enterSurfaceMember(this);
2370
3013
  }
2371
3014
  }
2372
3015
 
2373
3016
  exitRule(listener) {
2374
3017
  if(listener instanceof wktListener ) {
2375
- listener.exitMultiPolyhedralSurfaceGeometry(this);
3018
+ listener.exitSurfaceMember(this);
2376
3019
  }
2377
3020
  }
2378
3021
 
2379
3022
  accept(visitor) {
2380
3023
  if ( visitor instanceof wktVisitor ) {
2381
- return visitor.visitMultiPolyhedralSurfaceGeometry(this);
3024
+ return visitor.visitSurfaceMember(this);
2382
3025
  } else {
2383
3026
  return visitor.visitChildren(this);
2384
3027
  }
@@ -2389,7 +3032,7 @@ class MultiPolyhedralSurfaceGeometryContext extends antlr4.ParserRuleContext {
2389
3032
 
2390
3033
 
2391
3034
 
2392
- class MultiTinGeometryContext extends antlr4.ParserRuleContext {
3035
+ class PolyhedralSurfaceGeometryContext extends antlr4.ParserRuleContext {
2393
3036
 
2394
3037
  constructor(parser, parent, invokingState) {
2395
3038
  if(parent===undefined) {
@@ -2400,29 +3043,25 @@ class MultiTinGeometryContext extends antlr4.ParserRuleContext {
2400
3043
  }
2401
3044
  super(parent, invokingState);
2402
3045
  this.parser = parser;
2403
- this.ruleIndex = wktParser.RULE_multiTinGeometry;
3046
+ this.ruleIndex = wktParser.RULE_polyhedralSurfaceGeometry;
2404
3047
  }
2405
3048
 
2406
- TIN() {
2407
- return this.getToken(wktParser.TIN, 0);
2408
- };
2409
-
2410
- EMPTY_() {
2411
- return this.getToken(wktParser.EMPTY_, 0);
3049
+ POLYHEDRALSURFACE() {
3050
+ return this.getToken(wktParser.POLYHEDRALSURFACE, 0);
2412
3051
  };
2413
3052
 
2414
3053
  LPAR() {
2415
3054
  return this.getToken(wktParser.LPAR, 0);
2416
3055
  };
2417
3056
 
2418
- polygon = function(i) {
3057
+ polygonText = function(i) {
2419
3058
  if(i===undefined) {
2420
3059
  i = null;
2421
3060
  }
2422
3061
  if(i===null) {
2423
- return this.getTypedRuleContexts(PolygonContext);
3062
+ return this.getTypedRuleContexts(PolygonTextContext);
2424
3063
  } else {
2425
- return this.getTypedRuleContext(PolygonContext,i);
3064
+ return this.getTypedRuleContext(PolygonTextContext,i);
2426
3065
  }
2427
3066
  };
2428
3067
 
@@ -2430,6 +3069,14 @@ class MultiTinGeometryContext extends antlr4.ParserRuleContext {
2430
3069
  return this.getToken(wktParser.RPAR, 0);
2431
3070
  };
2432
3071
 
3072
+ EMPTY_() {
3073
+ return this.getToken(wktParser.EMPTY_, 0);
3074
+ };
3075
+
3076
+ dim() {
3077
+ return this.getTypedRuleContext(DimContext,0);
3078
+ };
3079
+
2433
3080
  COMMA = function(i) {
2434
3081
  if(i===undefined) {
2435
3082
  i = null;
@@ -2444,19 +3091,19 @@ class MultiTinGeometryContext extends antlr4.ParserRuleContext {
2444
3091
 
2445
3092
  enterRule(listener) {
2446
3093
  if(listener instanceof wktListener ) {
2447
- listener.enterMultiTinGeometry(this);
3094
+ listener.enterPolyhedralSurfaceGeometry(this);
2448
3095
  }
2449
3096
  }
2450
3097
 
2451
3098
  exitRule(listener) {
2452
3099
  if(listener instanceof wktListener ) {
2453
- listener.exitMultiTinGeometry(this);
3100
+ listener.exitPolyhedralSurfaceGeometry(this);
2454
3101
  }
2455
3102
  }
2456
3103
 
2457
3104
  accept(visitor) {
2458
3105
  if ( visitor instanceof wktVisitor ) {
2459
- return visitor.visitMultiTinGeometry(this);
3106
+ return visitor.visitPolyhedralSurfaceGeometry(this);
2460
3107
  } else {
2461
3108
  return visitor.visitChildren(this);
2462
3109
  }
@@ -2467,7 +3114,7 @@ class MultiTinGeometryContext extends antlr4.ParserRuleContext {
2467
3114
 
2468
3115
 
2469
3116
 
2470
- class CircularStringGeometryContext extends antlr4.ParserRuleContext {
3117
+ class TinGeometryContext extends antlr4.ParserRuleContext {
2471
3118
 
2472
3119
  constructor(parser, parent, invokingState) {
2473
3120
  if(parent===undefined) {
@@ -2478,25 +3125,25 @@ class CircularStringGeometryContext extends antlr4.ParserRuleContext {
2478
3125
  }
2479
3126
  super(parent, invokingState);
2480
3127
  this.parser = parser;
2481
- this.ruleIndex = wktParser.RULE_circularStringGeometry;
3128
+ this.ruleIndex = wktParser.RULE_tinGeometry;
2482
3129
  }
2483
3130
 
2484
- CIRCULARSTRING() {
2485
- return this.getToken(wktParser.CIRCULARSTRING, 0);
3131
+ TIN() {
3132
+ return this.getToken(wktParser.TIN, 0);
2486
3133
  };
2487
3134
 
2488
3135
  LPAR() {
2489
3136
  return this.getToken(wktParser.LPAR, 0);
2490
3137
  };
2491
3138
 
2492
- point = function(i) {
3139
+ polygonText = function(i) {
2493
3140
  if(i===undefined) {
2494
3141
  i = null;
2495
3142
  }
2496
3143
  if(i===null) {
2497
- return this.getTypedRuleContexts(PointContext);
3144
+ return this.getTypedRuleContexts(PolygonTextContext);
2498
3145
  } else {
2499
- return this.getTypedRuleContext(PointContext,i);
3146
+ return this.getTypedRuleContext(PolygonTextContext,i);
2500
3147
  }
2501
3148
  };
2502
3149
 
@@ -2504,6 +3151,14 @@ class CircularStringGeometryContext extends antlr4.ParserRuleContext {
2504
3151
  return this.getToken(wktParser.RPAR, 0);
2505
3152
  };
2506
3153
 
3154
+ EMPTY_() {
3155
+ return this.getToken(wktParser.EMPTY_, 0);
3156
+ };
3157
+
3158
+ dim() {
3159
+ return this.getTypedRuleContext(DimContext,0);
3160
+ };
3161
+
2507
3162
  COMMA = function(i) {
2508
3163
  if(i===undefined) {
2509
3164
  i = null;
@@ -2518,19 +3173,19 @@ class CircularStringGeometryContext extends antlr4.ParserRuleContext {
2518
3173
 
2519
3174
  enterRule(listener) {
2520
3175
  if(listener instanceof wktListener ) {
2521
- listener.enterCircularStringGeometry(this);
3176
+ listener.enterTinGeometry(this);
2522
3177
  }
2523
3178
  }
2524
3179
 
2525
3180
  exitRule(listener) {
2526
3181
  if(listener instanceof wktListener ) {
2527
- listener.exitCircularStringGeometry(this);
3182
+ listener.exitTinGeometry(this);
2528
3183
  }
2529
3184
  }
2530
3185
 
2531
3186
  accept(visitor) {
2532
3187
  if ( visitor instanceof wktVisitor ) {
2533
- return visitor.visitCircularStringGeometry(this);
3188
+ return visitor.visitTinGeometry(this);
2534
3189
  } else {
2535
3190
  return visitor.visitChildren(this);
2536
3191
  }
@@ -2541,7 +3196,7 @@ class CircularStringGeometryContext extends antlr4.ParserRuleContext {
2541
3196
 
2542
3197
 
2543
3198
 
2544
- class PointOrClosedPointContext extends antlr4.ParserRuleContext {
3199
+ class PolygonTextContext extends antlr4.ParserRuleContext {
2545
3200
 
2546
3201
  constructor(parser, parent, invokingState) {
2547
3202
  if(parent===undefined) {
@@ -2552,36 +3207,59 @@ class PointOrClosedPointContext extends antlr4.ParserRuleContext {
2552
3207
  }
2553
3208
  super(parent, invokingState);
2554
3209
  this.parser = parser;
2555
- this.ruleIndex = wktParser.RULE_pointOrClosedPoint;
3210
+ this.ruleIndex = wktParser.RULE_polygonText;
2556
3211
  }
2557
3212
 
2558
- point() {
2559
- return this.getTypedRuleContext(PointContext,0);
2560
- };
2561
-
2562
3213
  LPAR() {
2563
3214
  return this.getToken(wktParser.LPAR, 0);
2564
3215
  };
2565
3216
 
3217
+ lineStringText = function(i) {
3218
+ if(i===undefined) {
3219
+ i = null;
3220
+ }
3221
+ if(i===null) {
3222
+ return this.getTypedRuleContexts(LineStringTextContext);
3223
+ } else {
3224
+ return this.getTypedRuleContext(LineStringTextContext,i);
3225
+ }
3226
+ };
3227
+
2566
3228
  RPAR() {
2567
3229
  return this.getToken(wktParser.RPAR, 0);
2568
3230
  };
2569
3231
 
3232
+ COMMA = function(i) {
3233
+ if(i===undefined) {
3234
+ i = null;
3235
+ }
3236
+ if(i===null) {
3237
+ return this.getTokens(wktParser.COMMA);
3238
+ } else {
3239
+ return this.getToken(wktParser.COMMA, i);
3240
+ }
3241
+ };
3242
+
3243
+
3244
+ EMPTY_() {
3245
+ return this.getToken(wktParser.EMPTY_, 0);
3246
+ };
3247
+
2570
3248
  enterRule(listener) {
2571
3249
  if(listener instanceof wktListener ) {
2572
- listener.enterPointOrClosedPoint(this);
3250
+ listener.enterPolygonText(this);
2573
3251
  }
2574
3252
  }
2575
3253
 
2576
3254
  exitRule(listener) {
2577
3255
  if(listener instanceof wktListener ) {
2578
- listener.exitPointOrClosedPoint(this);
3256
+ listener.exitPolygonText(this);
2579
3257
  }
2580
3258
  }
2581
3259
 
2582
3260
  accept(visitor) {
2583
3261
  if ( visitor instanceof wktVisitor ) {
2584
- return visitor.visitPointOrClosedPoint(this);
3262
+ return visitor.visitPolygonText(this);
2585
3263
  } else {
2586
3264
  return visitor.visitChildren(this);
2587
3265
  }
@@ -2592,7 +3270,7 @@ class PointOrClosedPointContext extends antlr4.ParserRuleContext {
2592
3270
 
2593
3271
 
2594
3272
 
2595
- class PolygonContext extends antlr4.ParserRuleContext {
3273
+ class LineStringTextContext extends antlr4.ParserRuleContext {
2596
3274
 
2597
3275
  constructor(parser, parent, invokingState) {
2598
3276
  if(parent===undefined) {
@@ -2603,21 +3281,21 @@ class PolygonContext extends antlr4.ParserRuleContext {
2603
3281
  }
2604
3282
  super(parent, invokingState);
2605
3283
  this.parser = parser;
2606
- this.ruleIndex = wktParser.RULE_polygon;
3284
+ this.ruleIndex = wktParser.RULE_lineStringText;
2607
3285
  }
2608
3286
 
2609
3287
  LPAR() {
2610
3288
  return this.getToken(wktParser.LPAR, 0);
2611
3289
  };
2612
3290
 
2613
- lineString = function(i) {
3291
+ point = function(i) {
2614
3292
  if(i===undefined) {
2615
3293
  i = null;
2616
3294
  }
2617
3295
  if(i===null) {
2618
- return this.getTypedRuleContexts(LineStringContext);
3296
+ return this.getTypedRuleContexts(PointContext);
2619
3297
  } else {
2620
- return this.getTypedRuleContext(LineStringContext,i);
3298
+ return this.getTypedRuleContext(PointContext,i);
2621
3299
  }
2622
3300
  };
2623
3301
 
@@ -2643,19 +3321,19 @@ class PolygonContext extends antlr4.ParserRuleContext {
2643
3321
 
2644
3322
  enterRule(listener) {
2645
3323
  if(listener instanceof wktListener ) {
2646
- listener.enterPolygon(this);
3324
+ listener.enterLineStringText(this);
2647
3325
  }
2648
3326
  }
2649
3327
 
2650
3328
  exitRule(listener) {
2651
3329
  if(listener instanceof wktListener ) {
2652
- listener.exitPolygon(this);
3330
+ listener.exitLineStringText(this);
2653
3331
  }
2654
3332
  }
2655
3333
 
2656
3334
  accept(visitor) {
2657
3335
  if ( visitor instanceof wktVisitor ) {
2658
- return visitor.visitPolygon(this);
3336
+ return visitor.visitLineStringText(this);
2659
3337
  } else {
2660
3338
  return visitor.visitChildren(this);
2661
3339
  }
@@ -2666,7 +3344,7 @@ class PolygonContext extends antlr4.ParserRuleContext {
2666
3344
 
2667
3345
 
2668
3346
 
2669
- class LineStringContext extends antlr4.ParserRuleContext {
3347
+ class PointOrClosedPointContext extends antlr4.ParserRuleContext {
2670
3348
 
2671
3349
  constructor(parser, parent, invokingState) {
2672
3350
  if(parent===undefined) {
@@ -2677,59 +3355,40 @@ class LineStringContext extends antlr4.ParserRuleContext {
2677
3355
  }
2678
3356
  super(parent, invokingState);
2679
3357
  this.parser = parser;
2680
- this.ruleIndex = wktParser.RULE_lineString;
3358
+ this.ruleIndex = wktParser.RULE_pointOrClosedPoint;
2681
3359
  }
2682
3360
 
2683
- LPAR() {
2684
- return this.getToken(wktParser.LPAR, 0);
3361
+ point() {
3362
+ return this.getTypedRuleContext(PointContext,0);
2685
3363
  };
2686
3364
 
2687
- point = function(i) {
2688
- if(i===undefined) {
2689
- i = null;
2690
- }
2691
- if(i===null) {
2692
- return this.getTypedRuleContexts(PointContext);
2693
- } else {
2694
- return this.getTypedRuleContext(PointContext,i);
2695
- }
3365
+ LPAR() {
3366
+ return this.getToken(wktParser.LPAR, 0);
2696
3367
  };
2697
3368
 
2698
3369
  RPAR() {
2699
3370
  return this.getToken(wktParser.RPAR, 0);
2700
3371
  };
2701
3372
 
2702
- COMMA = function(i) {
2703
- if(i===undefined) {
2704
- i = null;
2705
- }
2706
- if(i===null) {
2707
- return this.getTokens(wktParser.COMMA);
2708
- } else {
2709
- return this.getToken(wktParser.COMMA, i);
2710
- }
2711
- };
2712
-
2713
-
2714
3373
  EMPTY_() {
2715
3374
  return this.getToken(wktParser.EMPTY_, 0);
2716
3375
  };
2717
3376
 
2718
3377
  enterRule(listener) {
2719
3378
  if(listener instanceof wktListener ) {
2720
- listener.enterLineString(this);
3379
+ listener.enterPointOrClosedPoint(this);
2721
3380
  }
2722
3381
  }
2723
3382
 
2724
3383
  exitRule(listener) {
2725
3384
  if(listener instanceof wktListener ) {
2726
- listener.exitLineString(this);
3385
+ listener.exitPointOrClosedPoint(this);
2727
3386
  }
2728
3387
  }
2729
3388
 
2730
3389
  accept(visitor) {
2731
3390
  if ( visitor instanceof wktVisitor ) {
2732
- return visitor.visitLineString(this);
3391
+ return visitor.visitPointOrClosedPoint(this);
2733
3392
  } else {
2734
3393
  return visitor.visitChildren(this);
2735
3394
  }
@@ -2754,18 +3413,17 @@ class PointContext extends antlr4.ParserRuleContext {
2754
3413
  this.ruleIndex = wktParser.RULE_point;
2755
3414
  }
2756
3415
 
2757
- DECIMAL = function(i) {
2758
- if(i===undefined) {
2759
- i = null;
2760
- }
3416
+ ordinate = function(i) {
3417
+ if(i===undefined) {
3418
+ i = null;
3419
+ }
2761
3420
  if(i===null) {
2762
- return this.getTokens(wktParser.DECIMAL);
3421
+ return this.getTypedRuleContexts(OrdinateContext);
2763
3422
  } else {
2764
- return this.getToken(wktParser.DECIMAL, i);
3423
+ return this.getTypedRuleContext(OrdinateContext,i);
2765
3424
  }
2766
3425
  };
2767
3426
 
2768
-
2769
3427
  enterRule(listener) {
2770
3428
  if(listener instanceof wktListener ) {
2771
3429
  listener.enterPoint(this);
@@ -2791,7 +3449,7 @@ class PointContext extends antlr4.ParserRuleContext {
2791
3449
 
2792
3450
 
2793
3451
 
2794
- class NameContext extends antlr4.ParserRuleContext {
3452
+ class OrdinateContext extends antlr4.ParserRuleContext {
2795
3453
 
2796
3454
  constructor(parser, parent, invokingState) {
2797
3455
  if(parent===undefined) {
@@ -2802,28 +3460,40 @@ class NameContext extends antlr4.ParserRuleContext {
2802
3460
  }
2803
3461
  super(parent, invokingState);
2804
3462
  this.parser = parser;
2805
- this.ruleIndex = wktParser.RULE_name;
3463
+ this.ruleIndex = wktParser.RULE_ordinate;
2806
3464
  }
2807
3465
 
2808
- STRING() {
2809
- return this.getToken(wktParser.STRING, 0);
3466
+ DECIMAL() {
3467
+ return this.getToken(wktParser.DECIMAL, 0);
3468
+ };
3469
+
3470
+ NAN_() {
3471
+ return this.getToken(wktParser.NAN_, 0);
3472
+ };
3473
+
3474
+ INF_() {
3475
+ return this.getToken(wktParser.INF_, 0);
3476
+ };
3477
+
3478
+ NEG_INF_() {
3479
+ return this.getToken(wktParser.NEG_INF_, 0);
2810
3480
  };
2811
3481
 
2812
3482
  enterRule(listener) {
2813
3483
  if(listener instanceof wktListener ) {
2814
- listener.enterName(this);
3484
+ listener.enterOrdinate(this);
2815
3485
  }
2816
3486
  }
2817
3487
 
2818
3488
  exitRule(listener) {
2819
3489
  if(listener instanceof wktListener ) {
2820
- listener.exitName(this);
3490
+ listener.exitOrdinate(this);
2821
3491
  }
2822
3492
  }
2823
3493
 
2824
3494
  accept(visitor) {
2825
3495
  if ( visitor instanceof wktVisitor ) {
2826
- return visitor.visitName(this);
3496
+ return visitor.visitOrdinate(this);
2827
3497
  } else {
2828
3498
  return visitor.visitChildren(this);
2829
3499
  }
@@ -2836,23 +3506,30 @@ class NameContext extends antlr4.ParserRuleContext {
2836
3506
 
2837
3507
 
2838
3508
  wktParser.File_Context = File_Context;
2839
- wktParser.GeometryCollectionContext = GeometryCollectionContext;
2840
3509
  wktParser.GeometryContext = GeometryContext;
3510
+ wktParser.DimContext = DimContext;
2841
3511
  wktParser.PointGeometryContext = PointGeometryContext;
2842
3512
  wktParser.LineStringGeometryContext = LineStringGeometryContext;
3513
+ wktParser.LinearRingGeometryContext = LinearRingGeometryContext;
2843
3514
  wktParser.PolygonGeometryContext = PolygonGeometryContext;
2844
- wktParser.MultiCurveGeometryContext = MultiCurveGeometryContext;
2845
- wktParser.MultiSurfaceGeometryContext = MultiSurfaceGeometryContext;
2846
- wktParser.CurvePolygonGeometryContext = CurvePolygonGeometryContext;
2847
- wktParser.CompoundCurveGeometryContext = CompoundCurveGeometryContext;
3515
+ wktParser.TriangleGeometryContext = TriangleGeometryContext;
2848
3516
  wktParser.MultiPointGeometryContext = MultiPointGeometryContext;
2849
3517
  wktParser.MultiLineStringGeometryContext = MultiLineStringGeometryContext;
2850
3518
  wktParser.MultiPolygonGeometryContext = MultiPolygonGeometryContext;
2851
- wktParser.MultiPolyhedralSurfaceGeometryContext = MultiPolyhedralSurfaceGeometryContext;
2852
- wktParser.MultiTinGeometryContext = MultiTinGeometryContext;
3519
+ wktParser.GeometryCollectionContext = GeometryCollectionContext;
2853
3520
  wktParser.CircularStringGeometryContext = CircularStringGeometryContext;
3521
+ wktParser.CompoundCurveGeometryContext = CompoundCurveGeometryContext;
3522
+ wktParser.CompoundCurveMemberContext = CompoundCurveMemberContext;
3523
+ wktParser.ClothoidGeometryContext = ClothoidGeometryContext;
3524
+ wktParser.CurvePolygonGeometryContext = CurvePolygonGeometryContext;
3525
+ wktParser.MultiCurveGeometryContext = MultiCurveGeometryContext;
3526
+ wktParser.CurveMemberContext = CurveMemberContext;
3527
+ wktParser.MultiSurfaceGeometryContext = MultiSurfaceGeometryContext;
3528
+ wktParser.SurfaceMemberContext = SurfaceMemberContext;
3529
+ wktParser.PolyhedralSurfaceGeometryContext = PolyhedralSurfaceGeometryContext;
3530
+ wktParser.TinGeometryContext = TinGeometryContext;
3531
+ wktParser.PolygonTextContext = PolygonTextContext;
3532
+ wktParser.LineStringTextContext = LineStringTextContext;
2854
3533
  wktParser.PointOrClosedPointContext = PointOrClosedPointContext;
2855
- wktParser.PolygonContext = PolygonContext;
2856
- wktParser.LineStringContext = LineStringContext;
2857
3534
  wktParser.PointContext = PointContext;
2858
- wktParser.NameContext = NameContext;
3535
+ wktParser.OrdinateContext = OrdinateContext;