@lbdudc/gp-gis-dsl 0.2.0
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.
- package/.eslintignore +2 -0
- package/.gitattributes +4 -0
- package/.prettierignore +2 -0
- package/LICENSE +22 -0
- package/README.md +37 -0
- package/grammar/GISGrammar.g4 +230 -0
- package/package.json +50 -0
- package/src/GISVisitor.js +318 -0
- package/src/GISVisitorHelper.js +162 -0
- package/src/cli.js +34 -0
- package/src/error/ErrorListener.js +26 -0
- package/src/error/SyntaxGenericError.js +18 -0
- package/src/index.js +26 -0
- package/src/lib/GISGrammar.interp +140 -0
- package/src/lib/GISGrammar.tokens +60 -0
- package/src/lib/GISGrammarLexer.interp +201 -0
- package/src/lib/GISGrammarLexer.js +354 -0
- package/src/lib/GISGrammarLexer.tokens +60 -0
- package/src/lib/GISGrammarListener.js +270 -0
- package/src/lib/GISGrammarParser.js +3173 -0
- package/src/lib/GISGrammarVisitor.js +184 -0
- package/src/spl/GIS.js +234 -0
- package/src/spl/GeoJSONLayer.js +21 -0
- package/src/spl/GeoJSONLayerStyle.js +14 -0
- package/src/spl/Map.js +44 -0
- package/src/spl/TileLayer.js +16 -0
- package/src/spl/WMSLayer.js +30 -0
- package/src/spl/WMSStyle.js +13 -0
- package/src/store.js +74 -0
|
@@ -0,0 +1,3173 @@
|
|
|
1
|
+
// Generated from grammar/GISGrammar.g4 by ANTLR 4.13.0
|
|
2
|
+
// jshint ignore: start
|
|
3
|
+
import antlr4 from 'antlr4';
|
|
4
|
+
import GISGrammarListener from './GISGrammarListener.js';
|
|
5
|
+
import GISGrammarVisitor from './GISGrammarVisitor.js';
|
|
6
|
+
|
|
7
|
+
const serializedATN = [4,1,50,275,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,
|
|
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
|
+
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,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,2,28,7,28,1,0,4,0,60,8,0,11,0,12,0,61,1,1,1,1,1,1,1,1,3,1,68,8,1,1,
|
|
12
|
+
2,1,2,1,2,1,2,3,2,74,8,2,1,3,1,3,1,3,1,3,1,3,1,3,1,4,1,4,1,4,1,4,1,4,1,4,
|
|
13
|
+
5,4,88,8,4,10,4,12,4,91,9,4,1,4,1,4,1,4,1,5,1,5,1,5,1,5,1,5,1,5,3,5,102,
|
|
14
|
+
8,5,1,6,1,6,1,6,1,6,1,6,3,6,109,8,6,1,6,1,6,1,6,1,6,1,6,1,6,1,7,1,7,1,7,
|
|
15
|
+
1,7,1,7,3,7,122,8,7,1,7,1,7,1,7,3,7,127,8,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,
|
|
16
|
+
1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,9,
|
|
17
|
+
1,9,1,9,1,9,1,9,3,9,158,8,9,1,9,1,9,1,9,1,9,5,9,164,8,9,10,9,12,9,167,9,
|
|
18
|
+
9,1,9,1,9,1,9,1,10,1,10,1,10,1,11,1,11,1,11,1,12,1,12,1,12,1,12,3,12,182,
|
|
19
|
+
8,12,1,12,1,12,1,12,1,12,5,12,188,8,12,10,12,12,12,191,9,12,1,12,1,12,1,
|
|
20
|
+
12,1,13,1,13,3,13,198,8,13,1,13,3,13,201,8,13,1,14,1,14,1,14,1,14,1,14,1,
|
|
21
|
+
15,1,15,1,15,1,15,1,15,1,16,1,16,1,16,1,16,1,16,1,16,5,16,219,8,16,10,16,
|
|
22
|
+
12,16,222,9,16,1,16,1,16,1,16,1,17,1,17,1,17,1,18,1,18,3,18,232,8,18,1,19,
|
|
23
|
+
1,19,1,19,5,19,237,8,19,10,19,12,19,240,9,19,1,20,1,20,3,20,244,8,20,1,21,
|
|
24
|
+
1,21,1,21,1,21,1,21,1,21,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,3,
|
|
25
|
+
22,261,8,22,1,23,1,23,1,24,1,24,1,25,1,25,1,26,1,26,1,27,1,27,1,28,1,28,
|
|
26
|
+
1,28,0,0,29,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,
|
|
27
|
+
44,46,48,50,52,54,56,0,2,2,0,7,7,9,11,1,0,33,36,271,0,59,1,0,0,0,2,67,1,
|
|
28
|
+
0,0,0,4,69,1,0,0,0,6,75,1,0,0,0,8,81,1,0,0,0,10,101,1,0,0,0,12,103,1,0,0,
|
|
29
|
+
0,14,116,1,0,0,0,16,143,1,0,0,0,18,152,1,0,0,0,20,171,1,0,0,0,22,174,1,0,
|
|
30
|
+
0,0,24,177,1,0,0,0,26,195,1,0,0,0,28,202,1,0,0,0,30,207,1,0,0,0,32,212,1,
|
|
31
|
+
0,0,0,34,226,1,0,0,0,36,231,1,0,0,0,38,233,1,0,0,0,40,243,1,0,0,0,42,245,
|
|
32
|
+
1,0,0,0,44,251,1,0,0,0,46,262,1,0,0,0,48,264,1,0,0,0,50,266,1,0,0,0,52,268,
|
|
33
|
+
1,0,0,0,54,270,1,0,0,0,56,272,1,0,0,0,58,60,3,2,1,0,59,58,1,0,0,0,60,61,
|
|
34
|
+
1,0,0,0,61,59,1,0,0,0,61,62,1,0,0,0,62,1,1,0,0,0,63,68,3,4,2,0,64,68,3,28,
|
|
35
|
+
14,0,65,68,3,30,15,0,66,68,3,32,16,0,67,63,1,0,0,0,67,64,1,0,0,0,67,65,1,
|
|
36
|
+
0,0,0,67,66,1,0,0,0,68,3,1,0,0,0,69,73,5,1,0,0,70,74,3,6,3,0,71,74,3,8,4,
|
|
37
|
+
0,72,74,3,10,5,0,73,70,1,0,0,0,73,71,1,0,0,0,73,72,1,0,0,0,74,5,1,0,0,0,
|
|
38
|
+
75,76,5,2,0,0,76,77,3,50,25,0,77,78,5,4,0,0,78,79,3,48,24,0,79,80,5,43,0,
|
|
39
|
+
0,80,7,1,0,0,0,81,82,5,3,0,0,82,83,3,50,25,0,83,84,5,40,0,0,84,89,3,36,18,
|
|
40
|
+
0,85,86,5,42,0,0,86,88,3,36,18,0,87,85,1,0,0,0,88,91,1,0,0,0,89,87,1,0,0,
|
|
41
|
+
0,89,90,1,0,0,0,90,92,1,0,0,0,91,89,1,0,0,0,92,93,5,41,0,0,93,94,5,43,0,
|
|
42
|
+
0,94,9,1,0,0,0,95,102,3,12,6,0,96,102,3,14,7,0,97,102,3,16,8,0,98,102,3,
|
|
43
|
+
18,9,0,99,102,3,24,12,0,100,102,3,22,11,0,101,95,1,0,0,0,101,96,1,0,0,0,
|
|
44
|
+
101,97,1,0,0,0,101,98,1,0,0,0,101,99,1,0,0,0,101,100,1,0,0,0,102,11,1,0,
|
|
45
|
+
0,0,103,104,5,15,0,0,104,105,5,14,0,0,105,108,3,50,25,0,106,107,5,17,0,0,
|
|
46
|
+
107,109,3,52,26,0,108,106,1,0,0,0,108,109,1,0,0,0,109,110,1,0,0,0,110,111,
|
|
47
|
+
5,40,0,0,111,112,5,18,0,0,112,113,3,52,26,0,113,114,5,41,0,0,114,115,5,43,
|
|
48
|
+
0,0,115,13,1,0,0,0,116,117,5,16,0,0,117,118,5,14,0,0,118,121,3,50,25,0,119,
|
|
49
|
+
120,5,17,0,0,120,122,3,52,26,0,121,119,1,0,0,0,121,122,1,0,0,0,122,123,1,
|
|
50
|
+
0,0,0,123,124,5,40,0,0,124,126,3,50,25,0,125,127,5,20,0,0,126,125,1,0,0,
|
|
51
|
+
0,126,127,1,0,0,0,127,128,1,0,0,0,128,129,5,42,0,0,129,130,5,21,0,0,130,
|
|
52
|
+
131,3,54,27,0,131,132,5,42,0,0,132,133,5,22,0,0,133,134,3,54,27,0,134,135,
|
|
53
|
+
5,42,0,0,135,136,5,23,0,0,136,137,3,56,28,0,137,138,5,42,0,0,138,139,5,24,
|
|
54
|
+
0,0,139,140,3,56,28,0,140,141,5,41,0,0,141,142,5,43,0,0,142,15,1,0,0,0,143,
|
|
55
|
+
144,5,25,0,0,144,145,5,26,0,0,145,146,3,50,25,0,146,147,5,40,0,0,147,148,
|
|
56
|
+
5,19,0,0,148,149,3,52,26,0,149,150,5,41,0,0,150,151,5,43,0,0,151,17,1,0,
|
|
57
|
+
0,0,152,153,5,25,0,0,153,154,5,14,0,0,154,157,3,50,25,0,155,156,5,17,0,0,
|
|
58
|
+
156,158,3,52,26,0,157,155,1,0,0,0,157,158,1,0,0,0,158,159,1,0,0,0,159,160,
|
|
59
|
+
5,40,0,0,160,165,3,20,10,0,161,162,5,42,0,0,162,164,3,20,10,0,163,161,1,
|
|
60
|
+
0,0,0,164,167,1,0,0,0,165,163,1,0,0,0,165,166,1,0,0,0,166,168,1,0,0,0,167,
|
|
61
|
+
165,1,0,0,0,168,169,5,41,0,0,169,170,5,43,0,0,170,19,1,0,0,0,171,172,3,50,
|
|
62
|
+
25,0,172,173,3,50,25,0,173,21,1,0,0,0,174,175,5,29,0,0,175,176,3,24,12,0,
|
|
63
|
+
176,23,1,0,0,0,177,178,5,30,0,0,178,181,3,50,25,0,179,180,5,17,0,0,180,182,
|
|
64
|
+
3,52,26,0,181,179,1,0,0,0,181,182,1,0,0,0,182,183,1,0,0,0,183,184,5,40,0,
|
|
65
|
+
0,184,189,3,26,13,0,185,186,5,42,0,0,186,188,3,26,13,0,187,185,1,0,0,0,188,
|
|
66
|
+
191,1,0,0,0,189,187,1,0,0,0,189,190,1,0,0,0,190,192,1,0,0,0,191,189,1,0,
|
|
67
|
+
0,0,192,193,5,41,0,0,193,194,5,43,0,0,194,25,1,0,0,0,195,197,3,50,25,0,196,
|
|
68
|
+
198,5,27,0,0,197,196,1,0,0,0,197,198,1,0,0,0,198,200,1,0,0,0,199,201,5,28,
|
|
69
|
+
0,0,200,199,1,0,0,0,200,201,1,0,0,0,201,27,1,0,0,0,202,203,5,5,0,0,203,204,
|
|
70
|
+
5,2,0,0,204,205,3,50,25,0,205,206,5,43,0,0,206,29,1,0,0,0,207,208,5,6,0,
|
|
71
|
+
0,208,209,5,2,0,0,209,210,3,50,25,0,210,211,5,43,0,0,211,31,1,0,0,0,212,
|
|
72
|
+
213,5,31,0,0,213,214,5,32,0,0,214,215,5,40,0,0,215,220,3,34,17,0,216,217,
|
|
73
|
+
5,42,0,0,217,219,3,34,17,0,218,216,1,0,0,0,219,222,1,0,0,0,220,218,1,0,0,
|
|
74
|
+
0,220,221,1,0,0,0,221,223,1,0,0,0,222,220,1,0,0,0,223,224,5,41,0,0,224,225,
|
|
75
|
+
5,43,0,0,225,33,1,0,0,0,226,227,3,52,26,0,227,228,3,52,26,0,228,35,1,0,0,
|
|
76
|
+
0,229,232,3,38,19,0,230,232,3,40,20,0,231,229,1,0,0,0,231,230,1,0,0,0,232,
|
|
77
|
+
37,1,0,0,0,233,234,3,50,25,0,234,238,5,37,0,0,235,237,7,0,0,0,236,235,1,
|
|
78
|
+
0,0,0,237,240,1,0,0,0,238,236,1,0,0,0,238,239,1,0,0,0,239,39,1,0,0,0,240,
|
|
79
|
+
238,1,0,0,0,241,244,3,44,22,0,242,244,3,42,21,0,243,241,1,0,0,0,243,242,
|
|
80
|
+
1,0,0,0,244,41,1,0,0,0,245,246,3,50,25,0,246,247,3,50,25,0,247,248,5,8,0,
|
|
81
|
+
0,248,249,5,13,0,0,249,250,3,50,25,0,250,43,1,0,0,0,251,252,3,50,25,0,252,
|
|
82
|
+
253,3,50,25,0,253,254,5,8,0,0,254,255,5,40,0,0,255,256,3,46,23,0,256,257,
|
|
83
|
+
5,42,0,0,257,258,3,46,23,0,258,260,5,41,0,0,259,261,5,12,0,0,260,259,1,0,
|
|
84
|
+
0,0,260,261,1,0,0,0,261,45,1,0,0,0,262,263,7,1,0,0,263,47,1,0,0,0,264,265,
|
|
85
|
+
5,45,0,0,265,49,1,0,0,0,266,267,5,49,0,0,267,51,1,0,0,0,268,269,5,50,0,0,
|
|
86
|
+
269,53,1,0,0,0,270,271,5,44,0,0,271,55,1,0,0,0,272,273,5,46,0,0,273,57,1,
|
|
87
|
+
0,0,0,19,61,67,73,89,101,108,121,126,157,165,181,189,197,200,220,231,238,
|
|
88
|
+
243,260];
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
const atn = new antlr4.atn.ATNDeserializer().deserialize(serializedATN);
|
|
92
|
+
|
|
93
|
+
const decisionsToDFA = atn.decisionToState.map( (ds, index) => new antlr4.dfa.DFA(ds, index) );
|
|
94
|
+
|
|
95
|
+
const sharedContextCache = new antlr4.atn.PredictionContextCache();
|
|
96
|
+
|
|
97
|
+
export default class GISGrammarParser extends antlr4.Parser {
|
|
98
|
+
|
|
99
|
+
static grammarFileName = "GISGrammar.g4";
|
|
100
|
+
static literalNames = [ null, null, null, null, null, null, null, null,
|
|
101
|
+
null, null, null, null, null, null, null, null,
|
|
102
|
+
null, null, null, null, null, null, null, null,
|
|
103
|
+
null, null, null, null, null, null, null, null,
|
|
104
|
+
null, "'0..1'", "'1..1'", "'0..*'", "'1..*'",
|
|
105
|
+
null, "'#'", "'.'", "'('", "')'", "','", "';'" ];
|
|
106
|
+
static symbolicNames = [ null, "CREATE_SYMBOL", "GIS_SYMBOL", "ENTITY_SYMBOL",
|
|
107
|
+
"USING_SYMBOL", "USE_SYMBOL", "GENERATE_SYMBOL",
|
|
108
|
+
"IDENTIFIER_SYMBOL", "RELATIONSHIP_SYMBOL",
|
|
109
|
+
"DISPLAYSTRING_SYMBOL", "REQUIRED_SYMBOL",
|
|
110
|
+
"UNIQUE_SYMBOL", "BIDIRECTIONAL_SYMBOL", "MAPPEDBY_SYMBOL",
|
|
111
|
+
"LAYER_SYMBOL", "TILE_SYMBOL", "GEOJSON_SYMBOL",
|
|
112
|
+
"AS_SYMBOL", "URL_SYMBOL", "SLD_SYMBOL", "EDITABLE_SYMBOL",
|
|
113
|
+
"FILL_COLOR_SYMBOL", "STROKE_COLOR_SYMBOL",
|
|
114
|
+
"FILL_OPACITY_SYMBOL", "STROKE_OPACITY_SYMBOL",
|
|
115
|
+
"WMS_SYMBOL", "STYLE_SYMBOL", "IS_BASE_LAYER_SYMBOL",
|
|
116
|
+
"HIDDEN_SYMBOL", "SORTABLE_SYMBOL", "MAP_SYMBOL",
|
|
117
|
+
"SET_SYMBOL", "DEPLOYMENT_SYMBOL", "ZERO_ONE_SYMBOL",
|
|
118
|
+
"ONE_ONE_SYMBOL", "ZERO_MANY_SYMBOL", "ONE_MANY_SYMBOL",
|
|
119
|
+
"TYPE", "POUND_SYMBOL", "DOT_SYMBOL", "OPAR_SYMBOL",
|
|
120
|
+
"CPAR_SYMBOL", "COMMA_SYMBOL", "SCOL_SYMBOL",
|
|
121
|
+
"HEX_COLOR", "INT_NUMBER", "FLOAT_NUMBER",
|
|
122
|
+
"COMMENT", "WHITESPACE", "IDENTIFIER", "QUOTED_TEXT" ];
|
|
123
|
+
static ruleNames = [ "parse", "sentence", "createStatement", "createGIS",
|
|
124
|
+
"createEntity", "createLayer", "createTileLayer",
|
|
125
|
+
"createGeoJSONLayer", "createWmsStyle", "createWmsLayer",
|
|
126
|
+
"wmsSubLayer", "createSortableMap", "createMap",
|
|
127
|
+
"mapLayer", "useGIS", "generateGIS", "setDeployment",
|
|
128
|
+
"deploymentProperty", "property", "propertyDefinition",
|
|
129
|
+
"relationshipDefinition", "mappedRelationshipDefinition",
|
|
130
|
+
"ownedRelationshipDefinition", "cardinality", "srid",
|
|
131
|
+
"identifier", "text", "hexColor", "floatNumber" ];
|
|
132
|
+
|
|
133
|
+
constructor(input) {
|
|
134
|
+
super(input);
|
|
135
|
+
this._interp = new antlr4.atn.ParserATNSimulator(this, atn, decisionsToDFA, sharedContextCache);
|
|
136
|
+
this.ruleNames = GISGrammarParser.ruleNames;
|
|
137
|
+
this.literalNames = GISGrammarParser.literalNames;
|
|
138
|
+
this.symbolicNames = GISGrammarParser.symbolicNames;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
parse() {
|
|
144
|
+
let localctx = new ParseContext(this, this._ctx, this.state);
|
|
145
|
+
this.enterRule(localctx, 0, GISGrammarParser.RULE_parse);
|
|
146
|
+
var _la = 0;
|
|
147
|
+
try {
|
|
148
|
+
this.enterOuterAlt(localctx, 1);
|
|
149
|
+
this.state = 59;
|
|
150
|
+
this._errHandler.sync(this);
|
|
151
|
+
_la = this._input.LA(1);
|
|
152
|
+
do {
|
|
153
|
+
this.state = 58;
|
|
154
|
+
this.sentence();
|
|
155
|
+
this.state = 61;
|
|
156
|
+
this._errHandler.sync(this);
|
|
157
|
+
_la = this._input.LA(1);
|
|
158
|
+
} while((((_la) & ~0x1f) === 0 && ((1 << _la) & 2147483746) !== 0));
|
|
159
|
+
} catch (re) {
|
|
160
|
+
if(re instanceof antlr4.error.RecognitionException) {
|
|
161
|
+
localctx.exception = re;
|
|
162
|
+
this._errHandler.reportError(this, re);
|
|
163
|
+
this._errHandler.recover(this, re);
|
|
164
|
+
} else {
|
|
165
|
+
throw re;
|
|
166
|
+
}
|
|
167
|
+
} finally {
|
|
168
|
+
this.exitRule();
|
|
169
|
+
}
|
|
170
|
+
return localctx;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
sentence() {
|
|
176
|
+
let localctx = new SentenceContext(this, this._ctx, this.state);
|
|
177
|
+
this.enterRule(localctx, 2, GISGrammarParser.RULE_sentence);
|
|
178
|
+
try {
|
|
179
|
+
this.state = 67;
|
|
180
|
+
this._errHandler.sync(this);
|
|
181
|
+
switch(this._input.LA(1)) {
|
|
182
|
+
case 1:
|
|
183
|
+
this.enterOuterAlt(localctx, 1);
|
|
184
|
+
this.state = 63;
|
|
185
|
+
this.createStatement();
|
|
186
|
+
break;
|
|
187
|
+
case 5:
|
|
188
|
+
this.enterOuterAlt(localctx, 2);
|
|
189
|
+
this.state = 64;
|
|
190
|
+
this.useGIS();
|
|
191
|
+
break;
|
|
192
|
+
case 6:
|
|
193
|
+
this.enterOuterAlt(localctx, 3);
|
|
194
|
+
this.state = 65;
|
|
195
|
+
this.generateGIS();
|
|
196
|
+
break;
|
|
197
|
+
case 31:
|
|
198
|
+
this.enterOuterAlt(localctx, 4);
|
|
199
|
+
this.state = 66;
|
|
200
|
+
this.setDeployment();
|
|
201
|
+
break;
|
|
202
|
+
default:
|
|
203
|
+
throw new antlr4.error.NoViableAltException(this);
|
|
204
|
+
}
|
|
205
|
+
} catch (re) {
|
|
206
|
+
if(re instanceof antlr4.error.RecognitionException) {
|
|
207
|
+
localctx.exception = re;
|
|
208
|
+
this._errHandler.reportError(this, re);
|
|
209
|
+
this._errHandler.recover(this, re);
|
|
210
|
+
} else {
|
|
211
|
+
throw re;
|
|
212
|
+
}
|
|
213
|
+
} finally {
|
|
214
|
+
this.exitRule();
|
|
215
|
+
}
|
|
216
|
+
return localctx;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
createStatement() {
|
|
222
|
+
let localctx = new CreateStatementContext(this, this._ctx, this.state);
|
|
223
|
+
this.enterRule(localctx, 4, GISGrammarParser.RULE_createStatement);
|
|
224
|
+
try {
|
|
225
|
+
this.enterOuterAlt(localctx, 1);
|
|
226
|
+
this.state = 69;
|
|
227
|
+
this.match(GISGrammarParser.CREATE_SYMBOL);
|
|
228
|
+
this.state = 73;
|
|
229
|
+
this._errHandler.sync(this);
|
|
230
|
+
switch(this._input.LA(1)) {
|
|
231
|
+
case 2:
|
|
232
|
+
this.state = 70;
|
|
233
|
+
this.createGIS();
|
|
234
|
+
break;
|
|
235
|
+
case 3:
|
|
236
|
+
this.state = 71;
|
|
237
|
+
this.createEntity();
|
|
238
|
+
break;
|
|
239
|
+
case 15:
|
|
240
|
+
case 16:
|
|
241
|
+
case 25:
|
|
242
|
+
case 29:
|
|
243
|
+
case 30:
|
|
244
|
+
this.state = 72;
|
|
245
|
+
this.createLayer();
|
|
246
|
+
break;
|
|
247
|
+
default:
|
|
248
|
+
throw new antlr4.error.NoViableAltException(this);
|
|
249
|
+
}
|
|
250
|
+
} catch (re) {
|
|
251
|
+
if(re instanceof antlr4.error.RecognitionException) {
|
|
252
|
+
localctx.exception = re;
|
|
253
|
+
this._errHandler.reportError(this, re);
|
|
254
|
+
this._errHandler.recover(this, re);
|
|
255
|
+
} else {
|
|
256
|
+
throw re;
|
|
257
|
+
}
|
|
258
|
+
} finally {
|
|
259
|
+
this.exitRule();
|
|
260
|
+
}
|
|
261
|
+
return localctx;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
createGIS() {
|
|
267
|
+
let localctx = new CreateGISContext(this, this._ctx, this.state);
|
|
268
|
+
this.enterRule(localctx, 6, GISGrammarParser.RULE_createGIS);
|
|
269
|
+
try {
|
|
270
|
+
this.enterOuterAlt(localctx, 1);
|
|
271
|
+
this.state = 75;
|
|
272
|
+
this.match(GISGrammarParser.GIS_SYMBOL);
|
|
273
|
+
this.state = 76;
|
|
274
|
+
this.identifier();
|
|
275
|
+
this.state = 77;
|
|
276
|
+
this.match(GISGrammarParser.USING_SYMBOL);
|
|
277
|
+
this.state = 78;
|
|
278
|
+
this.srid();
|
|
279
|
+
this.state = 79;
|
|
280
|
+
this.match(GISGrammarParser.SCOL_SYMBOL);
|
|
281
|
+
} catch (re) {
|
|
282
|
+
if(re instanceof antlr4.error.RecognitionException) {
|
|
283
|
+
localctx.exception = re;
|
|
284
|
+
this._errHandler.reportError(this, re);
|
|
285
|
+
this._errHandler.recover(this, re);
|
|
286
|
+
} else {
|
|
287
|
+
throw re;
|
|
288
|
+
}
|
|
289
|
+
} finally {
|
|
290
|
+
this.exitRule();
|
|
291
|
+
}
|
|
292
|
+
return localctx;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
createEntity() {
|
|
298
|
+
let localctx = new CreateEntityContext(this, this._ctx, this.state);
|
|
299
|
+
this.enterRule(localctx, 8, GISGrammarParser.RULE_createEntity);
|
|
300
|
+
var _la = 0;
|
|
301
|
+
try {
|
|
302
|
+
this.enterOuterAlt(localctx, 1);
|
|
303
|
+
this.state = 81;
|
|
304
|
+
this.match(GISGrammarParser.ENTITY_SYMBOL);
|
|
305
|
+
this.state = 82;
|
|
306
|
+
this.identifier();
|
|
307
|
+
this.state = 83;
|
|
308
|
+
this.match(GISGrammarParser.OPAR_SYMBOL);
|
|
309
|
+
this.state = 84;
|
|
310
|
+
this.property();
|
|
311
|
+
this.state = 89;
|
|
312
|
+
this._errHandler.sync(this);
|
|
313
|
+
_la = this._input.LA(1);
|
|
314
|
+
while(_la===42) {
|
|
315
|
+
this.state = 85;
|
|
316
|
+
this.match(GISGrammarParser.COMMA_SYMBOL);
|
|
317
|
+
this.state = 86;
|
|
318
|
+
this.property();
|
|
319
|
+
this.state = 91;
|
|
320
|
+
this._errHandler.sync(this);
|
|
321
|
+
_la = this._input.LA(1);
|
|
322
|
+
}
|
|
323
|
+
this.state = 92;
|
|
324
|
+
this.match(GISGrammarParser.CPAR_SYMBOL);
|
|
325
|
+
this.state = 93;
|
|
326
|
+
this.match(GISGrammarParser.SCOL_SYMBOL);
|
|
327
|
+
} catch (re) {
|
|
328
|
+
if(re instanceof antlr4.error.RecognitionException) {
|
|
329
|
+
localctx.exception = re;
|
|
330
|
+
this._errHandler.reportError(this, re);
|
|
331
|
+
this._errHandler.recover(this, re);
|
|
332
|
+
} else {
|
|
333
|
+
throw re;
|
|
334
|
+
}
|
|
335
|
+
} finally {
|
|
336
|
+
this.exitRule();
|
|
337
|
+
}
|
|
338
|
+
return localctx;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
createLayer() {
|
|
344
|
+
let localctx = new CreateLayerContext(this, this._ctx, this.state);
|
|
345
|
+
this.enterRule(localctx, 10, GISGrammarParser.RULE_createLayer);
|
|
346
|
+
try {
|
|
347
|
+
this.state = 101;
|
|
348
|
+
this._errHandler.sync(this);
|
|
349
|
+
var la_ = this._interp.adaptivePredict(this._input,4,this._ctx);
|
|
350
|
+
switch(la_) {
|
|
351
|
+
case 1:
|
|
352
|
+
this.enterOuterAlt(localctx, 1);
|
|
353
|
+
this.state = 95;
|
|
354
|
+
this.createTileLayer();
|
|
355
|
+
break;
|
|
356
|
+
|
|
357
|
+
case 2:
|
|
358
|
+
this.enterOuterAlt(localctx, 2);
|
|
359
|
+
this.state = 96;
|
|
360
|
+
this.createGeoJSONLayer();
|
|
361
|
+
break;
|
|
362
|
+
|
|
363
|
+
case 3:
|
|
364
|
+
this.enterOuterAlt(localctx, 3);
|
|
365
|
+
this.state = 97;
|
|
366
|
+
this.createWmsStyle();
|
|
367
|
+
break;
|
|
368
|
+
|
|
369
|
+
case 4:
|
|
370
|
+
this.enterOuterAlt(localctx, 4);
|
|
371
|
+
this.state = 98;
|
|
372
|
+
this.createWmsLayer();
|
|
373
|
+
break;
|
|
374
|
+
|
|
375
|
+
case 5:
|
|
376
|
+
this.enterOuterAlt(localctx, 5);
|
|
377
|
+
this.state = 99;
|
|
378
|
+
this.createMap();
|
|
379
|
+
break;
|
|
380
|
+
|
|
381
|
+
case 6:
|
|
382
|
+
this.enterOuterAlt(localctx, 6);
|
|
383
|
+
this.state = 100;
|
|
384
|
+
this.createSortableMap();
|
|
385
|
+
break;
|
|
386
|
+
|
|
387
|
+
}
|
|
388
|
+
} catch (re) {
|
|
389
|
+
if(re instanceof antlr4.error.RecognitionException) {
|
|
390
|
+
localctx.exception = re;
|
|
391
|
+
this._errHandler.reportError(this, re);
|
|
392
|
+
this._errHandler.recover(this, re);
|
|
393
|
+
} else {
|
|
394
|
+
throw re;
|
|
395
|
+
}
|
|
396
|
+
} finally {
|
|
397
|
+
this.exitRule();
|
|
398
|
+
}
|
|
399
|
+
return localctx;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
createTileLayer() {
|
|
405
|
+
let localctx = new CreateTileLayerContext(this, this._ctx, this.state);
|
|
406
|
+
this.enterRule(localctx, 12, GISGrammarParser.RULE_createTileLayer);
|
|
407
|
+
var _la = 0;
|
|
408
|
+
try {
|
|
409
|
+
this.enterOuterAlt(localctx, 1);
|
|
410
|
+
this.state = 103;
|
|
411
|
+
this.match(GISGrammarParser.TILE_SYMBOL);
|
|
412
|
+
this.state = 104;
|
|
413
|
+
this.match(GISGrammarParser.LAYER_SYMBOL);
|
|
414
|
+
this.state = 105;
|
|
415
|
+
this.identifier();
|
|
416
|
+
this.state = 108;
|
|
417
|
+
this._errHandler.sync(this);
|
|
418
|
+
_la = this._input.LA(1);
|
|
419
|
+
if(_la===17) {
|
|
420
|
+
this.state = 106;
|
|
421
|
+
this.match(GISGrammarParser.AS_SYMBOL);
|
|
422
|
+
this.state = 107;
|
|
423
|
+
this.text();
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
this.state = 110;
|
|
427
|
+
this.match(GISGrammarParser.OPAR_SYMBOL);
|
|
428
|
+
this.state = 111;
|
|
429
|
+
this.match(GISGrammarParser.URL_SYMBOL);
|
|
430
|
+
this.state = 112;
|
|
431
|
+
this.text();
|
|
432
|
+
this.state = 113;
|
|
433
|
+
this.match(GISGrammarParser.CPAR_SYMBOL);
|
|
434
|
+
this.state = 114;
|
|
435
|
+
this.match(GISGrammarParser.SCOL_SYMBOL);
|
|
436
|
+
} catch (re) {
|
|
437
|
+
if(re instanceof antlr4.error.RecognitionException) {
|
|
438
|
+
localctx.exception = re;
|
|
439
|
+
this._errHandler.reportError(this, re);
|
|
440
|
+
this._errHandler.recover(this, re);
|
|
441
|
+
} else {
|
|
442
|
+
throw re;
|
|
443
|
+
}
|
|
444
|
+
} finally {
|
|
445
|
+
this.exitRule();
|
|
446
|
+
}
|
|
447
|
+
return localctx;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
createGeoJSONLayer() {
|
|
453
|
+
let localctx = new CreateGeoJSONLayerContext(this, this._ctx, this.state);
|
|
454
|
+
this.enterRule(localctx, 14, GISGrammarParser.RULE_createGeoJSONLayer);
|
|
455
|
+
var _la = 0;
|
|
456
|
+
try {
|
|
457
|
+
this.enterOuterAlt(localctx, 1);
|
|
458
|
+
this.state = 116;
|
|
459
|
+
this.match(GISGrammarParser.GEOJSON_SYMBOL);
|
|
460
|
+
this.state = 117;
|
|
461
|
+
this.match(GISGrammarParser.LAYER_SYMBOL);
|
|
462
|
+
this.state = 118;
|
|
463
|
+
this.identifier();
|
|
464
|
+
this.state = 121;
|
|
465
|
+
this._errHandler.sync(this);
|
|
466
|
+
_la = this._input.LA(1);
|
|
467
|
+
if(_la===17) {
|
|
468
|
+
this.state = 119;
|
|
469
|
+
this.match(GISGrammarParser.AS_SYMBOL);
|
|
470
|
+
this.state = 120;
|
|
471
|
+
this.text();
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
this.state = 123;
|
|
475
|
+
this.match(GISGrammarParser.OPAR_SYMBOL);
|
|
476
|
+
this.state = 124;
|
|
477
|
+
this.identifier();
|
|
478
|
+
this.state = 126;
|
|
479
|
+
this._errHandler.sync(this);
|
|
480
|
+
_la = this._input.LA(1);
|
|
481
|
+
if(_la===20) {
|
|
482
|
+
this.state = 125;
|
|
483
|
+
this.match(GISGrammarParser.EDITABLE_SYMBOL);
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
this.state = 128;
|
|
487
|
+
this.match(GISGrammarParser.COMMA_SYMBOL);
|
|
488
|
+
this.state = 129;
|
|
489
|
+
this.match(GISGrammarParser.FILL_COLOR_SYMBOL);
|
|
490
|
+
this.state = 130;
|
|
491
|
+
this.hexColor();
|
|
492
|
+
this.state = 131;
|
|
493
|
+
this.match(GISGrammarParser.COMMA_SYMBOL);
|
|
494
|
+
this.state = 132;
|
|
495
|
+
this.match(GISGrammarParser.STROKE_COLOR_SYMBOL);
|
|
496
|
+
this.state = 133;
|
|
497
|
+
this.hexColor();
|
|
498
|
+
this.state = 134;
|
|
499
|
+
this.match(GISGrammarParser.COMMA_SYMBOL);
|
|
500
|
+
this.state = 135;
|
|
501
|
+
this.match(GISGrammarParser.FILL_OPACITY_SYMBOL);
|
|
502
|
+
this.state = 136;
|
|
503
|
+
this.floatNumber();
|
|
504
|
+
this.state = 137;
|
|
505
|
+
this.match(GISGrammarParser.COMMA_SYMBOL);
|
|
506
|
+
this.state = 138;
|
|
507
|
+
this.match(GISGrammarParser.STROKE_OPACITY_SYMBOL);
|
|
508
|
+
this.state = 139;
|
|
509
|
+
this.floatNumber();
|
|
510
|
+
this.state = 140;
|
|
511
|
+
this.match(GISGrammarParser.CPAR_SYMBOL);
|
|
512
|
+
this.state = 141;
|
|
513
|
+
this.match(GISGrammarParser.SCOL_SYMBOL);
|
|
514
|
+
} catch (re) {
|
|
515
|
+
if(re instanceof antlr4.error.RecognitionException) {
|
|
516
|
+
localctx.exception = re;
|
|
517
|
+
this._errHandler.reportError(this, re);
|
|
518
|
+
this._errHandler.recover(this, re);
|
|
519
|
+
} else {
|
|
520
|
+
throw re;
|
|
521
|
+
}
|
|
522
|
+
} finally {
|
|
523
|
+
this.exitRule();
|
|
524
|
+
}
|
|
525
|
+
return localctx;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
createWmsStyle() {
|
|
531
|
+
let localctx = new CreateWmsStyleContext(this, this._ctx, this.state);
|
|
532
|
+
this.enterRule(localctx, 16, GISGrammarParser.RULE_createWmsStyle);
|
|
533
|
+
try {
|
|
534
|
+
this.enterOuterAlt(localctx, 1);
|
|
535
|
+
this.state = 143;
|
|
536
|
+
this.match(GISGrammarParser.WMS_SYMBOL);
|
|
537
|
+
this.state = 144;
|
|
538
|
+
this.match(GISGrammarParser.STYLE_SYMBOL);
|
|
539
|
+
this.state = 145;
|
|
540
|
+
this.identifier();
|
|
541
|
+
this.state = 146;
|
|
542
|
+
this.match(GISGrammarParser.OPAR_SYMBOL);
|
|
543
|
+
this.state = 147;
|
|
544
|
+
this.match(GISGrammarParser.SLD_SYMBOL);
|
|
545
|
+
this.state = 148;
|
|
546
|
+
this.text();
|
|
547
|
+
this.state = 149;
|
|
548
|
+
this.match(GISGrammarParser.CPAR_SYMBOL);
|
|
549
|
+
this.state = 150;
|
|
550
|
+
this.match(GISGrammarParser.SCOL_SYMBOL);
|
|
551
|
+
} catch (re) {
|
|
552
|
+
if(re instanceof antlr4.error.RecognitionException) {
|
|
553
|
+
localctx.exception = re;
|
|
554
|
+
this._errHandler.reportError(this, re);
|
|
555
|
+
this._errHandler.recover(this, re);
|
|
556
|
+
} else {
|
|
557
|
+
throw re;
|
|
558
|
+
}
|
|
559
|
+
} finally {
|
|
560
|
+
this.exitRule();
|
|
561
|
+
}
|
|
562
|
+
return localctx;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
createWmsLayer() {
|
|
568
|
+
let localctx = new CreateWmsLayerContext(this, this._ctx, this.state);
|
|
569
|
+
this.enterRule(localctx, 18, GISGrammarParser.RULE_createWmsLayer);
|
|
570
|
+
var _la = 0;
|
|
571
|
+
try {
|
|
572
|
+
this.enterOuterAlt(localctx, 1);
|
|
573
|
+
this.state = 152;
|
|
574
|
+
this.match(GISGrammarParser.WMS_SYMBOL);
|
|
575
|
+
this.state = 153;
|
|
576
|
+
this.match(GISGrammarParser.LAYER_SYMBOL);
|
|
577
|
+
this.state = 154;
|
|
578
|
+
this.identifier();
|
|
579
|
+
this.state = 157;
|
|
580
|
+
this._errHandler.sync(this);
|
|
581
|
+
_la = this._input.LA(1);
|
|
582
|
+
if(_la===17) {
|
|
583
|
+
this.state = 155;
|
|
584
|
+
this.match(GISGrammarParser.AS_SYMBOL);
|
|
585
|
+
this.state = 156;
|
|
586
|
+
this.text();
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
this.state = 159;
|
|
590
|
+
this.match(GISGrammarParser.OPAR_SYMBOL);
|
|
591
|
+
this.state = 160;
|
|
592
|
+
this.wmsSubLayer();
|
|
593
|
+
this.state = 165;
|
|
594
|
+
this._errHandler.sync(this);
|
|
595
|
+
_la = this._input.LA(1);
|
|
596
|
+
while(_la===42) {
|
|
597
|
+
this.state = 161;
|
|
598
|
+
this.match(GISGrammarParser.COMMA_SYMBOL);
|
|
599
|
+
this.state = 162;
|
|
600
|
+
this.wmsSubLayer();
|
|
601
|
+
this.state = 167;
|
|
602
|
+
this._errHandler.sync(this);
|
|
603
|
+
_la = this._input.LA(1);
|
|
604
|
+
}
|
|
605
|
+
this.state = 168;
|
|
606
|
+
this.match(GISGrammarParser.CPAR_SYMBOL);
|
|
607
|
+
this.state = 169;
|
|
608
|
+
this.match(GISGrammarParser.SCOL_SYMBOL);
|
|
609
|
+
} catch (re) {
|
|
610
|
+
if(re instanceof antlr4.error.RecognitionException) {
|
|
611
|
+
localctx.exception = re;
|
|
612
|
+
this._errHandler.reportError(this, re);
|
|
613
|
+
this._errHandler.recover(this, re);
|
|
614
|
+
} else {
|
|
615
|
+
throw re;
|
|
616
|
+
}
|
|
617
|
+
} finally {
|
|
618
|
+
this.exitRule();
|
|
619
|
+
}
|
|
620
|
+
return localctx;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
wmsSubLayer() {
|
|
626
|
+
let localctx = new WmsSubLayerContext(this, this._ctx, this.state);
|
|
627
|
+
this.enterRule(localctx, 20, GISGrammarParser.RULE_wmsSubLayer);
|
|
628
|
+
try {
|
|
629
|
+
this.enterOuterAlt(localctx, 1);
|
|
630
|
+
this.state = 171;
|
|
631
|
+
this.identifier();
|
|
632
|
+
this.state = 172;
|
|
633
|
+
this.identifier();
|
|
634
|
+
} catch (re) {
|
|
635
|
+
if(re instanceof antlr4.error.RecognitionException) {
|
|
636
|
+
localctx.exception = re;
|
|
637
|
+
this._errHandler.reportError(this, re);
|
|
638
|
+
this._errHandler.recover(this, re);
|
|
639
|
+
} else {
|
|
640
|
+
throw re;
|
|
641
|
+
}
|
|
642
|
+
} finally {
|
|
643
|
+
this.exitRule();
|
|
644
|
+
}
|
|
645
|
+
return localctx;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
createSortableMap() {
|
|
651
|
+
let localctx = new CreateSortableMapContext(this, this._ctx, this.state);
|
|
652
|
+
this.enterRule(localctx, 22, GISGrammarParser.RULE_createSortableMap);
|
|
653
|
+
try {
|
|
654
|
+
this.enterOuterAlt(localctx, 1);
|
|
655
|
+
this.state = 174;
|
|
656
|
+
this.match(GISGrammarParser.SORTABLE_SYMBOL);
|
|
657
|
+
this.state = 175;
|
|
658
|
+
this.createMap();
|
|
659
|
+
} catch (re) {
|
|
660
|
+
if(re instanceof antlr4.error.RecognitionException) {
|
|
661
|
+
localctx.exception = re;
|
|
662
|
+
this._errHandler.reportError(this, re);
|
|
663
|
+
this._errHandler.recover(this, re);
|
|
664
|
+
} else {
|
|
665
|
+
throw re;
|
|
666
|
+
}
|
|
667
|
+
} finally {
|
|
668
|
+
this.exitRule();
|
|
669
|
+
}
|
|
670
|
+
return localctx;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
|
|
675
|
+
createMap() {
|
|
676
|
+
let localctx = new CreateMapContext(this, this._ctx, this.state);
|
|
677
|
+
this.enterRule(localctx, 24, GISGrammarParser.RULE_createMap);
|
|
678
|
+
var _la = 0;
|
|
679
|
+
try {
|
|
680
|
+
this.enterOuterAlt(localctx, 1);
|
|
681
|
+
this.state = 177;
|
|
682
|
+
this.match(GISGrammarParser.MAP_SYMBOL);
|
|
683
|
+
this.state = 178;
|
|
684
|
+
this.identifier();
|
|
685
|
+
this.state = 181;
|
|
686
|
+
this._errHandler.sync(this);
|
|
687
|
+
_la = this._input.LA(1);
|
|
688
|
+
if(_la===17) {
|
|
689
|
+
this.state = 179;
|
|
690
|
+
this.match(GISGrammarParser.AS_SYMBOL);
|
|
691
|
+
this.state = 180;
|
|
692
|
+
this.text();
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
this.state = 183;
|
|
696
|
+
this.match(GISGrammarParser.OPAR_SYMBOL);
|
|
697
|
+
this.state = 184;
|
|
698
|
+
this.mapLayer();
|
|
699
|
+
this.state = 189;
|
|
700
|
+
this._errHandler.sync(this);
|
|
701
|
+
_la = this._input.LA(1);
|
|
702
|
+
while(_la===42) {
|
|
703
|
+
this.state = 185;
|
|
704
|
+
this.match(GISGrammarParser.COMMA_SYMBOL);
|
|
705
|
+
this.state = 186;
|
|
706
|
+
this.mapLayer();
|
|
707
|
+
this.state = 191;
|
|
708
|
+
this._errHandler.sync(this);
|
|
709
|
+
_la = this._input.LA(1);
|
|
710
|
+
}
|
|
711
|
+
this.state = 192;
|
|
712
|
+
this.match(GISGrammarParser.CPAR_SYMBOL);
|
|
713
|
+
this.state = 193;
|
|
714
|
+
this.match(GISGrammarParser.SCOL_SYMBOL);
|
|
715
|
+
} catch (re) {
|
|
716
|
+
if(re instanceof antlr4.error.RecognitionException) {
|
|
717
|
+
localctx.exception = re;
|
|
718
|
+
this._errHandler.reportError(this, re);
|
|
719
|
+
this._errHandler.recover(this, re);
|
|
720
|
+
} else {
|
|
721
|
+
throw re;
|
|
722
|
+
}
|
|
723
|
+
} finally {
|
|
724
|
+
this.exitRule();
|
|
725
|
+
}
|
|
726
|
+
return localctx;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
|
|
730
|
+
|
|
731
|
+
mapLayer() {
|
|
732
|
+
let localctx = new MapLayerContext(this, this._ctx, this.state);
|
|
733
|
+
this.enterRule(localctx, 26, GISGrammarParser.RULE_mapLayer);
|
|
734
|
+
var _la = 0;
|
|
735
|
+
try {
|
|
736
|
+
this.enterOuterAlt(localctx, 1);
|
|
737
|
+
this.state = 195;
|
|
738
|
+
this.identifier();
|
|
739
|
+
this.state = 197;
|
|
740
|
+
this._errHandler.sync(this);
|
|
741
|
+
_la = this._input.LA(1);
|
|
742
|
+
if(_la===27) {
|
|
743
|
+
this.state = 196;
|
|
744
|
+
this.match(GISGrammarParser.IS_BASE_LAYER_SYMBOL);
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
this.state = 200;
|
|
748
|
+
this._errHandler.sync(this);
|
|
749
|
+
_la = this._input.LA(1);
|
|
750
|
+
if(_la===28) {
|
|
751
|
+
this.state = 199;
|
|
752
|
+
this.match(GISGrammarParser.HIDDEN_SYMBOL);
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
} catch (re) {
|
|
756
|
+
if(re instanceof antlr4.error.RecognitionException) {
|
|
757
|
+
localctx.exception = re;
|
|
758
|
+
this._errHandler.reportError(this, re);
|
|
759
|
+
this._errHandler.recover(this, re);
|
|
760
|
+
} else {
|
|
761
|
+
throw re;
|
|
762
|
+
}
|
|
763
|
+
} finally {
|
|
764
|
+
this.exitRule();
|
|
765
|
+
}
|
|
766
|
+
return localctx;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
|
|
770
|
+
|
|
771
|
+
useGIS() {
|
|
772
|
+
let localctx = new UseGISContext(this, this._ctx, this.state);
|
|
773
|
+
this.enterRule(localctx, 28, GISGrammarParser.RULE_useGIS);
|
|
774
|
+
try {
|
|
775
|
+
this.enterOuterAlt(localctx, 1);
|
|
776
|
+
this.state = 202;
|
|
777
|
+
this.match(GISGrammarParser.USE_SYMBOL);
|
|
778
|
+
this.state = 203;
|
|
779
|
+
this.match(GISGrammarParser.GIS_SYMBOL);
|
|
780
|
+
this.state = 204;
|
|
781
|
+
this.identifier();
|
|
782
|
+
this.state = 205;
|
|
783
|
+
this.match(GISGrammarParser.SCOL_SYMBOL);
|
|
784
|
+
} catch (re) {
|
|
785
|
+
if(re instanceof antlr4.error.RecognitionException) {
|
|
786
|
+
localctx.exception = re;
|
|
787
|
+
this._errHandler.reportError(this, re);
|
|
788
|
+
this._errHandler.recover(this, re);
|
|
789
|
+
} else {
|
|
790
|
+
throw re;
|
|
791
|
+
}
|
|
792
|
+
} finally {
|
|
793
|
+
this.exitRule();
|
|
794
|
+
}
|
|
795
|
+
return localctx;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
generateGIS() {
|
|
801
|
+
let localctx = new GenerateGISContext(this, this._ctx, this.state);
|
|
802
|
+
this.enterRule(localctx, 30, GISGrammarParser.RULE_generateGIS);
|
|
803
|
+
try {
|
|
804
|
+
this.enterOuterAlt(localctx, 1);
|
|
805
|
+
this.state = 207;
|
|
806
|
+
this.match(GISGrammarParser.GENERATE_SYMBOL);
|
|
807
|
+
this.state = 208;
|
|
808
|
+
this.match(GISGrammarParser.GIS_SYMBOL);
|
|
809
|
+
this.state = 209;
|
|
810
|
+
this.identifier();
|
|
811
|
+
this.state = 210;
|
|
812
|
+
this.match(GISGrammarParser.SCOL_SYMBOL);
|
|
813
|
+
} catch (re) {
|
|
814
|
+
if(re instanceof antlr4.error.RecognitionException) {
|
|
815
|
+
localctx.exception = re;
|
|
816
|
+
this._errHandler.reportError(this, re);
|
|
817
|
+
this._errHandler.recover(this, re);
|
|
818
|
+
} else {
|
|
819
|
+
throw re;
|
|
820
|
+
}
|
|
821
|
+
} finally {
|
|
822
|
+
this.exitRule();
|
|
823
|
+
}
|
|
824
|
+
return localctx;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
|
|
828
|
+
|
|
829
|
+
setDeployment() {
|
|
830
|
+
let localctx = new SetDeploymentContext(this, this._ctx, this.state);
|
|
831
|
+
this.enterRule(localctx, 32, GISGrammarParser.RULE_setDeployment);
|
|
832
|
+
var _la = 0;
|
|
833
|
+
try {
|
|
834
|
+
this.enterOuterAlt(localctx, 1);
|
|
835
|
+
this.state = 212;
|
|
836
|
+
this.match(GISGrammarParser.SET_SYMBOL);
|
|
837
|
+
this.state = 213;
|
|
838
|
+
this.match(GISGrammarParser.DEPLOYMENT_SYMBOL);
|
|
839
|
+
this.state = 214;
|
|
840
|
+
this.match(GISGrammarParser.OPAR_SYMBOL);
|
|
841
|
+
this.state = 215;
|
|
842
|
+
this.deploymentProperty();
|
|
843
|
+
this.state = 220;
|
|
844
|
+
this._errHandler.sync(this);
|
|
845
|
+
_la = this._input.LA(1);
|
|
846
|
+
while(_la===42) {
|
|
847
|
+
this.state = 216;
|
|
848
|
+
this.match(GISGrammarParser.COMMA_SYMBOL);
|
|
849
|
+
this.state = 217;
|
|
850
|
+
this.deploymentProperty();
|
|
851
|
+
this.state = 222;
|
|
852
|
+
this._errHandler.sync(this);
|
|
853
|
+
_la = this._input.LA(1);
|
|
854
|
+
}
|
|
855
|
+
this.state = 223;
|
|
856
|
+
this.match(GISGrammarParser.CPAR_SYMBOL);
|
|
857
|
+
this.state = 224;
|
|
858
|
+
this.match(GISGrammarParser.SCOL_SYMBOL);
|
|
859
|
+
} catch (re) {
|
|
860
|
+
if(re instanceof antlr4.error.RecognitionException) {
|
|
861
|
+
localctx.exception = re;
|
|
862
|
+
this._errHandler.reportError(this, re);
|
|
863
|
+
this._errHandler.recover(this, re);
|
|
864
|
+
} else {
|
|
865
|
+
throw re;
|
|
866
|
+
}
|
|
867
|
+
} finally {
|
|
868
|
+
this.exitRule();
|
|
869
|
+
}
|
|
870
|
+
return localctx;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
|
|
874
|
+
|
|
875
|
+
deploymentProperty() {
|
|
876
|
+
let localctx = new DeploymentPropertyContext(this, this._ctx, this.state);
|
|
877
|
+
this.enterRule(localctx, 34, GISGrammarParser.RULE_deploymentProperty);
|
|
878
|
+
try {
|
|
879
|
+
this.enterOuterAlt(localctx, 1);
|
|
880
|
+
this.state = 226;
|
|
881
|
+
this.text();
|
|
882
|
+
this.state = 227;
|
|
883
|
+
this.text();
|
|
884
|
+
} catch (re) {
|
|
885
|
+
if(re instanceof antlr4.error.RecognitionException) {
|
|
886
|
+
localctx.exception = re;
|
|
887
|
+
this._errHandler.reportError(this, re);
|
|
888
|
+
this._errHandler.recover(this, re);
|
|
889
|
+
} else {
|
|
890
|
+
throw re;
|
|
891
|
+
}
|
|
892
|
+
} finally {
|
|
893
|
+
this.exitRule();
|
|
894
|
+
}
|
|
895
|
+
return localctx;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
|
|
899
|
+
|
|
900
|
+
property() {
|
|
901
|
+
let localctx = new PropertyContext(this, this._ctx, this.state);
|
|
902
|
+
this.enterRule(localctx, 36, GISGrammarParser.RULE_property);
|
|
903
|
+
try {
|
|
904
|
+
this.state = 231;
|
|
905
|
+
this._errHandler.sync(this);
|
|
906
|
+
var la_ = this._interp.adaptivePredict(this._input,15,this._ctx);
|
|
907
|
+
switch(la_) {
|
|
908
|
+
case 1:
|
|
909
|
+
this.enterOuterAlt(localctx, 1);
|
|
910
|
+
this.state = 229;
|
|
911
|
+
this.propertyDefinition();
|
|
912
|
+
break;
|
|
913
|
+
|
|
914
|
+
case 2:
|
|
915
|
+
this.enterOuterAlt(localctx, 2);
|
|
916
|
+
this.state = 230;
|
|
917
|
+
this.relationshipDefinition();
|
|
918
|
+
break;
|
|
919
|
+
|
|
920
|
+
}
|
|
921
|
+
} catch (re) {
|
|
922
|
+
if(re instanceof antlr4.error.RecognitionException) {
|
|
923
|
+
localctx.exception = re;
|
|
924
|
+
this._errHandler.reportError(this, re);
|
|
925
|
+
this._errHandler.recover(this, re);
|
|
926
|
+
} else {
|
|
927
|
+
throw re;
|
|
928
|
+
}
|
|
929
|
+
} finally {
|
|
930
|
+
this.exitRule();
|
|
931
|
+
}
|
|
932
|
+
return localctx;
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
|
|
936
|
+
|
|
937
|
+
propertyDefinition() {
|
|
938
|
+
let localctx = new PropertyDefinitionContext(this, this._ctx, this.state);
|
|
939
|
+
this.enterRule(localctx, 38, GISGrammarParser.RULE_propertyDefinition);
|
|
940
|
+
var _la = 0;
|
|
941
|
+
try {
|
|
942
|
+
this.enterOuterAlt(localctx, 1);
|
|
943
|
+
this.state = 233;
|
|
944
|
+
this.identifier();
|
|
945
|
+
this.state = 234;
|
|
946
|
+
this.match(GISGrammarParser.TYPE);
|
|
947
|
+
this.state = 238;
|
|
948
|
+
this._errHandler.sync(this);
|
|
949
|
+
_la = this._input.LA(1);
|
|
950
|
+
while((((_la) & ~0x1f) === 0 && ((1 << _la) & 3712) !== 0)) {
|
|
951
|
+
this.state = 235;
|
|
952
|
+
_la = this._input.LA(1);
|
|
953
|
+
if(!((((_la) & ~0x1f) === 0 && ((1 << _la) & 3712) !== 0))) {
|
|
954
|
+
this._errHandler.recoverInline(this);
|
|
955
|
+
}
|
|
956
|
+
else {
|
|
957
|
+
this._errHandler.reportMatch(this);
|
|
958
|
+
this.consume();
|
|
959
|
+
}
|
|
960
|
+
this.state = 240;
|
|
961
|
+
this._errHandler.sync(this);
|
|
962
|
+
_la = this._input.LA(1);
|
|
963
|
+
}
|
|
964
|
+
} catch (re) {
|
|
965
|
+
if(re instanceof antlr4.error.RecognitionException) {
|
|
966
|
+
localctx.exception = re;
|
|
967
|
+
this._errHandler.reportError(this, re);
|
|
968
|
+
this._errHandler.recover(this, re);
|
|
969
|
+
} else {
|
|
970
|
+
throw re;
|
|
971
|
+
}
|
|
972
|
+
} finally {
|
|
973
|
+
this.exitRule();
|
|
974
|
+
}
|
|
975
|
+
return localctx;
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
|
|
979
|
+
|
|
980
|
+
relationshipDefinition() {
|
|
981
|
+
let localctx = new RelationshipDefinitionContext(this, this._ctx, this.state);
|
|
982
|
+
this.enterRule(localctx, 40, GISGrammarParser.RULE_relationshipDefinition);
|
|
983
|
+
try {
|
|
984
|
+
this.state = 243;
|
|
985
|
+
this._errHandler.sync(this);
|
|
986
|
+
var la_ = this._interp.adaptivePredict(this._input,17,this._ctx);
|
|
987
|
+
switch(la_) {
|
|
988
|
+
case 1:
|
|
989
|
+
this.enterOuterAlt(localctx, 1);
|
|
990
|
+
this.state = 241;
|
|
991
|
+
this.ownedRelationshipDefinition();
|
|
992
|
+
break;
|
|
993
|
+
|
|
994
|
+
case 2:
|
|
995
|
+
this.enterOuterAlt(localctx, 2);
|
|
996
|
+
this.state = 242;
|
|
997
|
+
this.mappedRelationshipDefinition();
|
|
998
|
+
break;
|
|
999
|
+
|
|
1000
|
+
}
|
|
1001
|
+
} catch (re) {
|
|
1002
|
+
if(re instanceof antlr4.error.RecognitionException) {
|
|
1003
|
+
localctx.exception = re;
|
|
1004
|
+
this._errHandler.reportError(this, re);
|
|
1005
|
+
this._errHandler.recover(this, re);
|
|
1006
|
+
} else {
|
|
1007
|
+
throw re;
|
|
1008
|
+
}
|
|
1009
|
+
} finally {
|
|
1010
|
+
this.exitRule();
|
|
1011
|
+
}
|
|
1012
|
+
return localctx;
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
|
|
1016
|
+
|
|
1017
|
+
mappedRelationshipDefinition() {
|
|
1018
|
+
let localctx = new MappedRelationshipDefinitionContext(this, this._ctx, this.state);
|
|
1019
|
+
this.enterRule(localctx, 42, GISGrammarParser.RULE_mappedRelationshipDefinition);
|
|
1020
|
+
try {
|
|
1021
|
+
this.enterOuterAlt(localctx, 1);
|
|
1022
|
+
this.state = 245;
|
|
1023
|
+
this.identifier();
|
|
1024
|
+
this.state = 246;
|
|
1025
|
+
this.identifier();
|
|
1026
|
+
this.state = 247;
|
|
1027
|
+
this.match(GISGrammarParser.RELATIONSHIP_SYMBOL);
|
|
1028
|
+
this.state = 248;
|
|
1029
|
+
this.match(GISGrammarParser.MAPPEDBY_SYMBOL);
|
|
1030
|
+
this.state = 249;
|
|
1031
|
+
this.identifier();
|
|
1032
|
+
} catch (re) {
|
|
1033
|
+
if(re instanceof antlr4.error.RecognitionException) {
|
|
1034
|
+
localctx.exception = re;
|
|
1035
|
+
this._errHandler.reportError(this, re);
|
|
1036
|
+
this._errHandler.recover(this, re);
|
|
1037
|
+
} else {
|
|
1038
|
+
throw re;
|
|
1039
|
+
}
|
|
1040
|
+
} finally {
|
|
1041
|
+
this.exitRule();
|
|
1042
|
+
}
|
|
1043
|
+
return localctx;
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
|
|
1047
|
+
|
|
1048
|
+
ownedRelationshipDefinition() {
|
|
1049
|
+
let localctx = new OwnedRelationshipDefinitionContext(this, this._ctx, this.state);
|
|
1050
|
+
this.enterRule(localctx, 44, GISGrammarParser.RULE_ownedRelationshipDefinition);
|
|
1051
|
+
var _la = 0;
|
|
1052
|
+
try {
|
|
1053
|
+
this.enterOuterAlt(localctx, 1);
|
|
1054
|
+
this.state = 251;
|
|
1055
|
+
this.identifier();
|
|
1056
|
+
this.state = 252;
|
|
1057
|
+
this.identifier();
|
|
1058
|
+
this.state = 253;
|
|
1059
|
+
this.match(GISGrammarParser.RELATIONSHIP_SYMBOL);
|
|
1060
|
+
this.state = 254;
|
|
1061
|
+
this.match(GISGrammarParser.OPAR_SYMBOL);
|
|
1062
|
+
this.state = 255;
|
|
1063
|
+
this.cardinality();
|
|
1064
|
+
this.state = 256;
|
|
1065
|
+
this.match(GISGrammarParser.COMMA_SYMBOL);
|
|
1066
|
+
this.state = 257;
|
|
1067
|
+
this.cardinality();
|
|
1068
|
+
this.state = 258;
|
|
1069
|
+
this.match(GISGrammarParser.CPAR_SYMBOL);
|
|
1070
|
+
this.state = 260;
|
|
1071
|
+
this._errHandler.sync(this);
|
|
1072
|
+
_la = this._input.LA(1);
|
|
1073
|
+
if(_la===12) {
|
|
1074
|
+
this.state = 259;
|
|
1075
|
+
this.match(GISGrammarParser.BIDIRECTIONAL_SYMBOL);
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
} catch (re) {
|
|
1079
|
+
if(re instanceof antlr4.error.RecognitionException) {
|
|
1080
|
+
localctx.exception = re;
|
|
1081
|
+
this._errHandler.reportError(this, re);
|
|
1082
|
+
this._errHandler.recover(this, re);
|
|
1083
|
+
} else {
|
|
1084
|
+
throw re;
|
|
1085
|
+
}
|
|
1086
|
+
} finally {
|
|
1087
|
+
this.exitRule();
|
|
1088
|
+
}
|
|
1089
|
+
return localctx;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
|
|
1093
|
+
|
|
1094
|
+
cardinality() {
|
|
1095
|
+
let localctx = new CardinalityContext(this, this._ctx, this.state);
|
|
1096
|
+
this.enterRule(localctx, 46, GISGrammarParser.RULE_cardinality);
|
|
1097
|
+
var _la = 0;
|
|
1098
|
+
try {
|
|
1099
|
+
this.enterOuterAlt(localctx, 1);
|
|
1100
|
+
this.state = 262;
|
|
1101
|
+
_la = this._input.LA(1);
|
|
1102
|
+
if(!(((((_la - 33)) & ~0x1f) === 0 && ((1 << (_la - 33)) & 15) !== 0))) {
|
|
1103
|
+
this._errHandler.recoverInline(this);
|
|
1104
|
+
}
|
|
1105
|
+
else {
|
|
1106
|
+
this._errHandler.reportMatch(this);
|
|
1107
|
+
this.consume();
|
|
1108
|
+
}
|
|
1109
|
+
} catch (re) {
|
|
1110
|
+
if(re instanceof antlr4.error.RecognitionException) {
|
|
1111
|
+
localctx.exception = re;
|
|
1112
|
+
this._errHandler.reportError(this, re);
|
|
1113
|
+
this._errHandler.recover(this, re);
|
|
1114
|
+
} else {
|
|
1115
|
+
throw re;
|
|
1116
|
+
}
|
|
1117
|
+
} finally {
|
|
1118
|
+
this.exitRule();
|
|
1119
|
+
}
|
|
1120
|
+
return localctx;
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
|
|
1124
|
+
|
|
1125
|
+
srid() {
|
|
1126
|
+
let localctx = new SridContext(this, this._ctx, this.state);
|
|
1127
|
+
this.enterRule(localctx, 48, GISGrammarParser.RULE_srid);
|
|
1128
|
+
try {
|
|
1129
|
+
this.enterOuterAlt(localctx, 1);
|
|
1130
|
+
this.state = 264;
|
|
1131
|
+
this.match(GISGrammarParser.INT_NUMBER);
|
|
1132
|
+
} catch (re) {
|
|
1133
|
+
if(re instanceof antlr4.error.RecognitionException) {
|
|
1134
|
+
localctx.exception = re;
|
|
1135
|
+
this._errHandler.reportError(this, re);
|
|
1136
|
+
this._errHandler.recover(this, re);
|
|
1137
|
+
} else {
|
|
1138
|
+
throw re;
|
|
1139
|
+
}
|
|
1140
|
+
} finally {
|
|
1141
|
+
this.exitRule();
|
|
1142
|
+
}
|
|
1143
|
+
return localctx;
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
|
|
1147
|
+
|
|
1148
|
+
identifier() {
|
|
1149
|
+
let localctx = new IdentifierContext(this, this._ctx, this.state);
|
|
1150
|
+
this.enterRule(localctx, 50, GISGrammarParser.RULE_identifier);
|
|
1151
|
+
try {
|
|
1152
|
+
this.enterOuterAlt(localctx, 1);
|
|
1153
|
+
this.state = 266;
|
|
1154
|
+
this.match(GISGrammarParser.IDENTIFIER);
|
|
1155
|
+
} catch (re) {
|
|
1156
|
+
if(re instanceof antlr4.error.RecognitionException) {
|
|
1157
|
+
localctx.exception = re;
|
|
1158
|
+
this._errHandler.reportError(this, re);
|
|
1159
|
+
this._errHandler.recover(this, re);
|
|
1160
|
+
} else {
|
|
1161
|
+
throw re;
|
|
1162
|
+
}
|
|
1163
|
+
} finally {
|
|
1164
|
+
this.exitRule();
|
|
1165
|
+
}
|
|
1166
|
+
return localctx;
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
|
|
1170
|
+
|
|
1171
|
+
text() {
|
|
1172
|
+
let localctx = new TextContext(this, this._ctx, this.state);
|
|
1173
|
+
this.enterRule(localctx, 52, GISGrammarParser.RULE_text);
|
|
1174
|
+
try {
|
|
1175
|
+
this.enterOuterAlt(localctx, 1);
|
|
1176
|
+
this.state = 268;
|
|
1177
|
+
this.match(GISGrammarParser.QUOTED_TEXT);
|
|
1178
|
+
} catch (re) {
|
|
1179
|
+
if(re instanceof antlr4.error.RecognitionException) {
|
|
1180
|
+
localctx.exception = re;
|
|
1181
|
+
this._errHandler.reportError(this, re);
|
|
1182
|
+
this._errHandler.recover(this, re);
|
|
1183
|
+
} else {
|
|
1184
|
+
throw re;
|
|
1185
|
+
}
|
|
1186
|
+
} finally {
|
|
1187
|
+
this.exitRule();
|
|
1188
|
+
}
|
|
1189
|
+
return localctx;
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
|
|
1193
|
+
|
|
1194
|
+
hexColor() {
|
|
1195
|
+
let localctx = new HexColorContext(this, this._ctx, this.state);
|
|
1196
|
+
this.enterRule(localctx, 54, GISGrammarParser.RULE_hexColor);
|
|
1197
|
+
try {
|
|
1198
|
+
this.enterOuterAlt(localctx, 1);
|
|
1199
|
+
this.state = 270;
|
|
1200
|
+
this.match(GISGrammarParser.HEX_COLOR);
|
|
1201
|
+
} catch (re) {
|
|
1202
|
+
if(re instanceof antlr4.error.RecognitionException) {
|
|
1203
|
+
localctx.exception = re;
|
|
1204
|
+
this._errHandler.reportError(this, re);
|
|
1205
|
+
this._errHandler.recover(this, re);
|
|
1206
|
+
} else {
|
|
1207
|
+
throw re;
|
|
1208
|
+
}
|
|
1209
|
+
} finally {
|
|
1210
|
+
this.exitRule();
|
|
1211
|
+
}
|
|
1212
|
+
return localctx;
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
|
|
1216
|
+
|
|
1217
|
+
floatNumber() {
|
|
1218
|
+
let localctx = new FloatNumberContext(this, this._ctx, this.state);
|
|
1219
|
+
this.enterRule(localctx, 56, GISGrammarParser.RULE_floatNumber);
|
|
1220
|
+
try {
|
|
1221
|
+
this.enterOuterAlt(localctx, 1);
|
|
1222
|
+
this.state = 272;
|
|
1223
|
+
this.match(GISGrammarParser.FLOAT_NUMBER);
|
|
1224
|
+
} catch (re) {
|
|
1225
|
+
if(re instanceof antlr4.error.RecognitionException) {
|
|
1226
|
+
localctx.exception = re;
|
|
1227
|
+
this._errHandler.reportError(this, re);
|
|
1228
|
+
this._errHandler.recover(this, re);
|
|
1229
|
+
} else {
|
|
1230
|
+
throw re;
|
|
1231
|
+
}
|
|
1232
|
+
} finally {
|
|
1233
|
+
this.exitRule();
|
|
1234
|
+
}
|
|
1235
|
+
return localctx;
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1238
|
+
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
GISGrammarParser.EOF = antlr4.Token.EOF;
|
|
1242
|
+
GISGrammarParser.CREATE_SYMBOL = 1;
|
|
1243
|
+
GISGrammarParser.GIS_SYMBOL = 2;
|
|
1244
|
+
GISGrammarParser.ENTITY_SYMBOL = 3;
|
|
1245
|
+
GISGrammarParser.USING_SYMBOL = 4;
|
|
1246
|
+
GISGrammarParser.USE_SYMBOL = 5;
|
|
1247
|
+
GISGrammarParser.GENERATE_SYMBOL = 6;
|
|
1248
|
+
GISGrammarParser.IDENTIFIER_SYMBOL = 7;
|
|
1249
|
+
GISGrammarParser.RELATIONSHIP_SYMBOL = 8;
|
|
1250
|
+
GISGrammarParser.DISPLAYSTRING_SYMBOL = 9;
|
|
1251
|
+
GISGrammarParser.REQUIRED_SYMBOL = 10;
|
|
1252
|
+
GISGrammarParser.UNIQUE_SYMBOL = 11;
|
|
1253
|
+
GISGrammarParser.BIDIRECTIONAL_SYMBOL = 12;
|
|
1254
|
+
GISGrammarParser.MAPPEDBY_SYMBOL = 13;
|
|
1255
|
+
GISGrammarParser.LAYER_SYMBOL = 14;
|
|
1256
|
+
GISGrammarParser.TILE_SYMBOL = 15;
|
|
1257
|
+
GISGrammarParser.GEOJSON_SYMBOL = 16;
|
|
1258
|
+
GISGrammarParser.AS_SYMBOL = 17;
|
|
1259
|
+
GISGrammarParser.URL_SYMBOL = 18;
|
|
1260
|
+
GISGrammarParser.SLD_SYMBOL = 19;
|
|
1261
|
+
GISGrammarParser.EDITABLE_SYMBOL = 20;
|
|
1262
|
+
GISGrammarParser.FILL_COLOR_SYMBOL = 21;
|
|
1263
|
+
GISGrammarParser.STROKE_COLOR_SYMBOL = 22;
|
|
1264
|
+
GISGrammarParser.FILL_OPACITY_SYMBOL = 23;
|
|
1265
|
+
GISGrammarParser.STROKE_OPACITY_SYMBOL = 24;
|
|
1266
|
+
GISGrammarParser.WMS_SYMBOL = 25;
|
|
1267
|
+
GISGrammarParser.STYLE_SYMBOL = 26;
|
|
1268
|
+
GISGrammarParser.IS_BASE_LAYER_SYMBOL = 27;
|
|
1269
|
+
GISGrammarParser.HIDDEN_SYMBOL = 28;
|
|
1270
|
+
GISGrammarParser.SORTABLE_SYMBOL = 29;
|
|
1271
|
+
GISGrammarParser.MAP_SYMBOL = 30;
|
|
1272
|
+
GISGrammarParser.SET_SYMBOL = 31;
|
|
1273
|
+
GISGrammarParser.DEPLOYMENT_SYMBOL = 32;
|
|
1274
|
+
GISGrammarParser.ZERO_ONE_SYMBOL = 33;
|
|
1275
|
+
GISGrammarParser.ONE_ONE_SYMBOL = 34;
|
|
1276
|
+
GISGrammarParser.ZERO_MANY_SYMBOL = 35;
|
|
1277
|
+
GISGrammarParser.ONE_MANY_SYMBOL = 36;
|
|
1278
|
+
GISGrammarParser.TYPE = 37;
|
|
1279
|
+
GISGrammarParser.POUND_SYMBOL = 38;
|
|
1280
|
+
GISGrammarParser.DOT_SYMBOL = 39;
|
|
1281
|
+
GISGrammarParser.OPAR_SYMBOL = 40;
|
|
1282
|
+
GISGrammarParser.CPAR_SYMBOL = 41;
|
|
1283
|
+
GISGrammarParser.COMMA_SYMBOL = 42;
|
|
1284
|
+
GISGrammarParser.SCOL_SYMBOL = 43;
|
|
1285
|
+
GISGrammarParser.HEX_COLOR = 44;
|
|
1286
|
+
GISGrammarParser.INT_NUMBER = 45;
|
|
1287
|
+
GISGrammarParser.FLOAT_NUMBER = 46;
|
|
1288
|
+
GISGrammarParser.COMMENT = 47;
|
|
1289
|
+
GISGrammarParser.WHITESPACE = 48;
|
|
1290
|
+
GISGrammarParser.IDENTIFIER = 49;
|
|
1291
|
+
GISGrammarParser.QUOTED_TEXT = 50;
|
|
1292
|
+
|
|
1293
|
+
GISGrammarParser.RULE_parse = 0;
|
|
1294
|
+
GISGrammarParser.RULE_sentence = 1;
|
|
1295
|
+
GISGrammarParser.RULE_createStatement = 2;
|
|
1296
|
+
GISGrammarParser.RULE_createGIS = 3;
|
|
1297
|
+
GISGrammarParser.RULE_createEntity = 4;
|
|
1298
|
+
GISGrammarParser.RULE_createLayer = 5;
|
|
1299
|
+
GISGrammarParser.RULE_createTileLayer = 6;
|
|
1300
|
+
GISGrammarParser.RULE_createGeoJSONLayer = 7;
|
|
1301
|
+
GISGrammarParser.RULE_createWmsStyle = 8;
|
|
1302
|
+
GISGrammarParser.RULE_createWmsLayer = 9;
|
|
1303
|
+
GISGrammarParser.RULE_wmsSubLayer = 10;
|
|
1304
|
+
GISGrammarParser.RULE_createSortableMap = 11;
|
|
1305
|
+
GISGrammarParser.RULE_createMap = 12;
|
|
1306
|
+
GISGrammarParser.RULE_mapLayer = 13;
|
|
1307
|
+
GISGrammarParser.RULE_useGIS = 14;
|
|
1308
|
+
GISGrammarParser.RULE_generateGIS = 15;
|
|
1309
|
+
GISGrammarParser.RULE_setDeployment = 16;
|
|
1310
|
+
GISGrammarParser.RULE_deploymentProperty = 17;
|
|
1311
|
+
GISGrammarParser.RULE_property = 18;
|
|
1312
|
+
GISGrammarParser.RULE_propertyDefinition = 19;
|
|
1313
|
+
GISGrammarParser.RULE_relationshipDefinition = 20;
|
|
1314
|
+
GISGrammarParser.RULE_mappedRelationshipDefinition = 21;
|
|
1315
|
+
GISGrammarParser.RULE_ownedRelationshipDefinition = 22;
|
|
1316
|
+
GISGrammarParser.RULE_cardinality = 23;
|
|
1317
|
+
GISGrammarParser.RULE_srid = 24;
|
|
1318
|
+
GISGrammarParser.RULE_identifier = 25;
|
|
1319
|
+
GISGrammarParser.RULE_text = 26;
|
|
1320
|
+
GISGrammarParser.RULE_hexColor = 27;
|
|
1321
|
+
GISGrammarParser.RULE_floatNumber = 28;
|
|
1322
|
+
|
|
1323
|
+
class ParseContext extends antlr4.ParserRuleContext {
|
|
1324
|
+
|
|
1325
|
+
constructor(parser, parent, invokingState) {
|
|
1326
|
+
if(parent===undefined) {
|
|
1327
|
+
parent = null;
|
|
1328
|
+
}
|
|
1329
|
+
if(invokingState===undefined || invokingState===null) {
|
|
1330
|
+
invokingState = -1;
|
|
1331
|
+
}
|
|
1332
|
+
super(parent, invokingState);
|
|
1333
|
+
this.parser = parser;
|
|
1334
|
+
this.ruleIndex = GISGrammarParser.RULE_parse;
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
sentence = function(i) {
|
|
1338
|
+
if(i===undefined) {
|
|
1339
|
+
i = null;
|
|
1340
|
+
}
|
|
1341
|
+
if(i===null) {
|
|
1342
|
+
return this.getTypedRuleContexts(SentenceContext);
|
|
1343
|
+
} else {
|
|
1344
|
+
return this.getTypedRuleContext(SentenceContext,i);
|
|
1345
|
+
}
|
|
1346
|
+
};
|
|
1347
|
+
|
|
1348
|
+
enterRule(listener) {
|
|
1349
|
+
if(listener instanceof GISGrammarListener ) {
|
|
1350
|
+
listener.enterParse(this);
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
exitRule(listener) {
|
|
1355
|
+
if(listener instanceof GISGrammarListener ) {
|
|
1356
|
+
listener.exitParse(this);
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
accept(visitor) {
|
|
1361
|
+
if ( visitor instanceof GISGrammarVisitor ) {
|
|
1362
|
+
return visitor.visitParse(this);
|
|
1363
|
+
} else {
|
|
1364
|
+
return visitor.visitChildren(this);
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
|
|
1372
|
+
|
|
1373
|
+
class SentenceContext extends antlr4.ParserRuleContext {
|
|
1374
|
+
|
|
1375
|
+
constructor(parser, parent, invokingState) {
|
|
1376
|
+
if(parent===undefined) {
|
|
1377
|
+
parent = null;
|
|
1378
|
+
}
|
|
1379
|
+
if(invokingState===undefined || invokingState===null) {
|
|
1380
|
+
invokingState = -1;
|
|
1381
|
+
}
|
|
1382
|
+
super(parent, invokingState);
|
|
1383
|
+
this.parser = parser;
|
|
1384
|
+
this.ruleIndex = GISGrammarParser.RULE_sentence;
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
createStatement() {
|
|
1388
|
+
return this.getTypedRuleContext(CreateStatementContext,0);
|
|
1389
|
+
};
|
|
1390
|
+
|
|
1391
|
+
useGIS() {
|
|
1392
|
+
return this.getTypedRuleContext(UseGISContext,0);
|
|
1393
|
+
};
|
|
1394
|
+
|
|
1395
|
+
generateGIS() {
|
|
1396
|
+
return this.getTypedRuleContext(GenerateGISContext,0);
|
|
1397
|
+
};
|
|
1398
|
+
|
|
1399
|
+
setDeployment() {
|
|
1400
|
+
return this.getTypedRuleContext(SetDeploymentContext,0);
|
|
1401
|
+
};
|
|
1402
|
+
|
|
1403
|
+
enterRule(listener) {
|
|
1404
|
+
if(listener instanceof GISGrammarListener ) {
|
|
1405
|
+
listener.enterSentence(this);
|
|
1406
|
+
}
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
exitRule(listener) {
|
|
1410
|
+
if(listener instanceof GISGrammarListener ) {
|
|
1411
|
+
listener.exitSentence(this);
|
|
1412
|
+
}
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
accept(visitor) {
|
|
1416
|
+
if ( visitor instanceof GISGrammarVisitor ) {
|
|
1417
|
+
return visitor.visitSentence(this);
|
|
1418
|
+
} else {
|
|
1419
|
+
return visitor.visitChildren(this);
|
|
1420
|
+
}
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
|
|
1424
|
+
}
|
|
1425
|
+
|
|
1426
|
+
|
|
1427
|
+
|
|
1428
|
+
class CreateStatementContext extends antlr4.ParserRuleContext {
|
|
1429
|
+
|
|
1430
|
+
constructor(parser, parent, invokingState) {
|
|
1431
|
+
if(parent===undefined) {
|
|
1432
|
+
parent = null;
|
|
1433
|
+
}
|
|
1434
|
+
if(invokingState===undefined || invokingState===null) {
|
|
1435
|
+
invokingState = -1;
|
|
1436
|
+
}
|
|
1437
|
+
super(parent, invokingState);
|
|
1438
|
+
this.parser = parser;
|
|
1439
|
+
this.ruleIndex = GISGrammarParser.RULE_createStatement;
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
CREATE_SYMBOL() {
|
|
1443
|
+
return this.getToken(GISGrammarParser.CREATE_SYMBOL, 0);
|
|
1444
|
+
};
|
|
1445
|
+
|
|
1446
|
+
createGIS() {
|
|
1447
|
+
return this.getTypedRuleContext(CreateGISContext,0);
|
|
1448
|
+
};
|
|
1449
|
+
|
|
1450
|
+
createEntity() {
|
|
1451
|
+
return this.getTypedRuleContext(CreateEntityContext,0);
|
|
1452
|
+
};
|
|
1453
|
+
|
|
1454
|
+
createLayer() {
|
|
1455
|
+
return this.getTypedRuleContext(CreateLayerContext,0);
|
|
1456
|
+
};
|
|
1457
|
+
|
|
1458
|
+
enterRule(listener) {
|
|
1459
|
+
if(listener instanceof GISGrammarListener ) {
|
|
1460
|
+
listener.enterCreateStatement(this);
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1464
|
+
exitRule(listener) {
|
|
1465
|
+
if(listener instanceof GISGrammarListener ) {
|
|
1466
|
+
listener.exitCreateStatement(this);
|
|
1467
|
+
}
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
accept(visitor) {
|
|
1471
|
+
if ( visitor instanceof GISGrammarVisitor ) {
|
|
1472
|
+
return visitor.visitCreateStatement(this);
|
|
1473
|
+
} else {
|
|
1474
|
+
return visitor.visitChildren(this);
|
|
1475
|
+
}
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1481
|
+
|
|
1482
|
+
|
|
1483
|
+
class CreateGISContext extends antlr4.ParserRuleContext {
|
|
1484
|
+
|
|
1485
|
+
constructor(parser, parent, invokingState) {
|
|
1486
|
+
if(parent===undefined) {
|
|
1487
|
+
parent = null;
|
|
1488
|
+
}
|
|
1489
|
+
if(invokingState===undefined || invokingState===null) {
|
|
1490
|
+
invokingState = -1;
|
|
1491
|
+
}
|
|
1492
|
+
super(parent, invokingState);
|
|
1493
|
+
this.parser = parser;
|
|
1494
|
+
this.ruleIndex = GISGrammarParser.RULE_createGIS;
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
GIS_SYMBOL() {
|
|
1498
|
+
return this.getToken(GISGrammarParser.GIS_SYMBOL, 0);
|
|
1499
|
+
};
|
|
1500
|
+
|
|
1501
|
+
identifier() {
|
|
1502
|
+
return this.getTypedRuleContext(IdentifierContext,0);
|
|
1503
|
+
};
|
|
1504
|
+
|
|
1505
|
+
USING_SYMBOL() {
|
|
1506
|
+
return this.getToken(GISGrammarParser.USING_SYMBOL, 0);
|
|
1507
|
+
};
|
|
1508
|
+
|
|
1509
|
+
srid() {
|
|
1510
|
+
return this.getTypedRuleContext(SridContext,0);
|
|
1511
|
+
};
|
|
1512
|
+
|
|
1513
|
+
SCOL_SYMBOL() {
|
|
1514
|
+
return this.getToken(GISGrammarParser.SCOL_SYMBOL, 0);
|
|
1515
|
+
};
|
|
1516
|
+
|
|
1517
|
+
enterRule(listener) {
|
|
1518
|
+
if(listener instanceof GISGrammarListener ) {
|
|
1519
|
+
listener.enterCreateGIS(this);
|
|
1520
|
+
}
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
exitRule(listener) {
|
|
1524
|
+
if(listener instanceof GISGrammarListener ) {
|
|
1525
|
+
listener.exitCreateGIS(this);
|
|
1526
|
+
}
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
accept(visitor) {
|
|
1530
|
+
if ( visitor instanceof GISGrammarVisitor ) {
|
|
1531
|
+
return visitor.visitCreateGIS(this);
|
|
1532
|
+
} else {
|
|
1533
|
+
return visitor.visitChildren(this);
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1537
|
+
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1540
|
+
|
|
1541
|
+
|
|
1542
|
+
class CreateEntityContext extends antlr4.ParserRuleContext {
|
|
1543
|
+
|
|
1544
|
+
constructor(parser, parent, invokingState) {
|
|
1545
|
+
if(parent===undefined) {
|
|
1546
|
+
parent = null;
|
|
1547
|
+
}
|
|
1548
|
+
if(invokingState===undefined || invokingState===null) {
|
|
1549
|
+
invokingState = -1;
|
|
1550
|
+
}
|
|
1551
|
+
super(parent, invokingState);
|
|
1552
|
+
this.parser = parser;
|
|
1553
|
+
this.ruleIndex = GISGrammarParser.RULE_createEntity;
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
ENTITY_SYMBOL() {
|
|
1557
|
+
return this.getToken(GISGrammarParser.ENTITY_SYMBOL, 0);
|
|
1558
|
+
};
|
|
1559
|
+
|
|
1560
|
+
identifier() {
|
|
1561
|
+
return this.getTypedRuleContext(IdentifierContext,0);
|
|
1562
|
+
};
|
|
1563
|
+
|
|
1564
|
+
OPAR_SYMBOL() {
|
|
1565
|
+
return this.getToken(GISGrammarParser.OPAR_SYMBOL, 0);
|
|
1566
|
+
};
|
|
1567
|
+
|
|
1568
|
+
property = function(i) {
|
|
1569
|
+
if(i===undefined) {
|
|
1570
|
+
i = null;
|
|
1571
|
+
}
|
|
1572
|
+
if(i===null) {
|
|
1573
|
+
return this.getTypedRuleContexts(PropertyContext);
|
|
1574
|
+
} else {
|
|
1575
|
+
return this.getTypedRuleContext(PropertyContext,i);
|
|
1576
|
+
}
|
|
1577
|
+
};
|
|
1578
|
+
|
|
1579
|
+
CPAR_SYMBOL() {
|
|
1580
|
+
return this.getToken(GISGrammarParser.CPAR_SYMBOL, 0);
|
|
1581
|
+
};
|
|
1582
|
+
|
|
1583
|
+
SCOL_SYMBOL() {
|
|
1584
|
+
return this.getToken(GISGrammarParser.SCOL_SYMBOL, 0);
|
|
1585
|
+
};
|
|
1586
|
+
|
|
1587
|
+
COMMA_SYMBOL = function(i) {
|
|
1588
|
+
if(i===undefined) {
|
|
1589
|
+
i = null;
|
|
1590
|
+
}
|
|
1591
|
+
if(i===null) {
|
|
1592
|
+
return this.getTokens(GISGrammarParser.COMMA_SYMBOL);
|
|
1593
|
+
} else {
|
|
1594
|
+
return this.getToken(GISGrammarParser.COMMA_SYMBOL, i);
|
|
1595
|
+
}
|
|
1596
|
+
};
|
|
1597
|
+
|
|
1598
|
+
|
|
1599
|
+
enterRule(listener) {
|
|
1600
|
+
if(listener instanceof GISGrammarListener ) {
|
|
1601
|
+
listener.enterCreateEntity(this);
|
|
1602
|
+
}
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
exitRule(listener) {
|
|
1606
|
+
if(listener instanceof GISGrammarListener ) {
|
|
1607
|
+
listener.exitCreateEntity(this);
|
|
1608
|
+
}
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1611
|
+
accept(visitor) {
|
|
1612
|
+
if ( visitor instanceof GISGrammarVisitor ) {
|
|
1613
|
+
return visitor.visitCreateEntity(this);
|
|
1614
|
+
} else {
|
|
1615
|
+
return visitor.visitChildren(this);
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
|
|
1623
|
+
|
|
1624
|
+
class CreateLayerContext extends antlr4.ParserRuleContext {
|
|
1625
|
+
|
|
1626
|
+
constructor(parser, parent, invokingState) {
|
|
1627
|
+
if(parent===undefined) {
|
|
1628
|
+
parent = null;
|
|
1629
|
+
}
|
|
1630
|
+
if(invokingState===undefined || invokingState===null) {
|
|
1631
|
+
invokingState = -1;
|
|
1632
|
+
}
|
|
1633
|
+
super(parent, invokingState);
|
|
1634
|
+
this.parser = parser;
|
|
1635
|
+
this.ruleIndex = GISGrammarParser.RULE_createLayer;
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
createTileLayer() {
|
|
1639
|
+
return this.getTypedRuleContext(CreateTileLayerContext,0);
|
|
1640
|
+
};
|
|
1641
|
+
|
|
1642
|
+
createGeoJSONLayer() {
|
|
1643
|
+
return this.getTypedRuleContext(CreateGeoJSONLayerContext,0);
|
|
1644
|
+
};
|
|
1645
|
+
|
|
1646
|
+
createWmsStyle() {
|
|
1647
|
+
return this.getTypedRuleContext(CreateWmsStyleContext,0);
|
|
1648
|
+
};
|
|
1649
|
+
|
|
1650
|
+
createWmsLayer() {
|
|
1651
|
+
return this.getTypedRuleContext(CreateWmsLayerContext,0);
|
|
1652
|
+
};
|
|
1653
|
+
|
|
1654
|
+
createMap() {
|
|
1655
|
+
return this.getTypedRuleContext(CreateMapContext,0);
|
|
1656
|
+
};
|
|
1657
|
+
|
|
1658
|
+
createSortableMap() {
|
|
1659
|
+
return this.getTypedRuleContext(CreateSortableMapContext,0);
|
|
1660
|
+
};
|
|
1661
|
+
|
|
1662
|
+
enterRule(listener) {
|
|
1663
|
+
if(listener instanceof GISGrammarListener ) {
|
|
1664
|
+
listener.enterCreateLayer(this);
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1668
|
+
exitRule(listener) {
|
|
1669
|
+
if(listener instanceof GISGrammarListener ) {
|
|
1670
|
+
listener.exitCreateLayer(this);
|
|
1671
|
+
}
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
accept(visitor) {
|
|
1675
|
+
if ( visitor instanceof GISGrammarVisitor ) {
|
|
1676
|
+
return visitor.visitCreateLayer(this);
|
|
1677
|
+
} else {
|
|
1678
|
+
return visitor.visitChildren(this);
|
|
1679
|
+
}
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
|
|
1683
|
+
}
|
|
1684
|
+
|
|
1685
|
+
|
|
1686
|
+
|
|
1687
|
+
class CreateTileLayerContext extends antlr4.ParserRuleContext {
|
|
1688
|
+
|
|
1689
|
+
constructor(parser, parent, invokingState) {
|
|
1690
|
+
if(parent===undefined) {
|
|
1691
|
+
parent = null;
|
|
1692
|
+
}
|
|
1693
|
+
if(invokingState===undefined || invokingState===null) {
|
|
1694
|
+
invokingState = -1;
|
|
1695
|
+
}
|
|
1696
|
+
super(parent, invokingState);
|
|
1697
|
+
this.parser = parser;
|
|
1698
|
+
this.ruleIndex = GISGrammarParser.RULE_createTileLayer;
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
TILE_SYMBOL() {
|
|
1702
|
+
return this.getToken(GISGrammarParser.TILE_SYMBOL, 0);
|
|
1703
|
+
};
|
|
1704
|
+
|
|
1705
|
+
LAYER_SYMBOL() {
|
|
1706
|
+
return this.getToken(GISGrammarParser.LAYER_SYMBOL, 0);
|
|
1707
|
+
};
|
|
1708
|
+
|
|
1709
|
+
identifier() {
|
|
1710
|
+
return this.getTypedRuleContext(IdentifierContext,0);
|
|
1711
|
+
};
|
|
1712
|
+
|
|
1713
|
+
OPAR_SYMBOL() {
|
|
1714
|
+
return this.getToken(GISGrammarParser.OPAR_SYMBOL, 0);
|
|
1715
|
+
};
|
|
1716
|
+
|
|
1717
|
+
URL_SYMBOL() {
|
|
1718
|
+
return this.getToken(GISGrammarParser.URL_SYMBOL, 0);
|
|
1719
|
+
};
|
|
1720
|
+
|
|
1721
|
+
text = function(i) {
|
|
1722
|
+
if(i===undefined) {
|
|
1723
|
+
i = null;
|
|
1724
|
+
}
|
|
1725
|
+
if(i===null) {
|
|
1726
|
+
return this.getTypedRuleContexts(TextContext);
|
|
1727
|
+
} else {
|
|
1728
|
+
return this.getTypedRuleContext(TextContext,i);
|
|
1729
|
+
}
|
|
1730
|
+
};
|
|
1731
|
+
|
|
1732
|
+
CPAR_SYMBOL() {
|
|
1733
|
+
return this.getToken(GISGrammarParser.CPAR_SYMBOL, 0);
|
|
1734
|
+
};
|
|
1735
|
+
|
|
1736
|
+
SCOL_SYMBOL() {
|
|
1737
|
+
return this.getToken(GISGrammarParser.SCOL_SYMBOL, 0);
|
|
1738
|
+
};
|
|
1739
|
+
|
|
1740
|
+
AS_SYMBOL() {
|
|
1741
|
+
return this.getToken(GISGrammarParser.AS_SYMBOL, 0);
|
|
1742
|
+
};
|
|
1743
|
+
|
|
1744
|
+
enterRule(listener) {
|
|
1745
|
+
if(listener instanceof GISGrammarListener ) {
|
|
1746
|
+
listener.enterCreateTileLayer(this);
|
|
1747
|
+
}
|
|
1748
|
+
}
|
|
1749
|
+
|
|
1750
|
+
exitRule(listener) {
|
|
1751
|
+
if(listener instanceof GISGrammarListener ) {
|
|
1752
|
+
listener.exitCreateTileLayer(this);
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1755
|
+
|
|
1756
|
+
accept(visitor) {
|
|
1757
|
+
if ( visitor instanceof GISGrammarVisitor ) {
|
|
1758
|
+
return visitor.visitCreateTileLayer(this);
|
|
1759
|
+
} else {
|
|
1760
|
+
return visitor.visitChildren(this);
|
|
1761
|
+
}
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1764
|
+
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1767
|
+
|
|
1768
|
+
|
|
1769
|
+
class CreateGeoJSONLayerContext extends antlr4.ParserRuleContext {
|
|
1770
|
+
|
|
1771
|
+
constructor(parser, parent, invokingState) {
|
|
1772
|
+
if(parent===undefined) {
|
|
1773
|
+
parent = null;
|
|
1774
|
+
}
|
|
1775
|
+
if(invokingState===undefined || invokingState===null) {
|
|
1776
|
+
invokingState = -1;
|
|
1777
|
+
}
|
|
1778
|
+
super(parent, invokingState);
|
|
1779
|
+
this.parser = parser;
|
|
1780
|
+
this.ruleIndex = GISGrammarParser.RULE_createGeoJSONLayer;
|
|
1781
|
+
}
|
|
1782
|
+
|
|
1783
|
+
GEOJSON_SYMBOL() {
|
|
1784
|
+
return this.getToken(GISGrammarParser.GEOJSON_SYMBOL, 0);
|
|
1785
|
+
};
|
|
1786
|
+
|
|
1787
|
+
LAYER_SYMBOL() {
|
|
1788
|
+
return this.getToken(GISGrammarParser.LAYER_SYMBOL, 0);
|
|
1789
|
+
};
|
|
1790
|
+
|
|
1791
|
+
identifier = function(i) {
|
|
1792
|
+
if(i===undefined) {
|
|
1793
|
+
i = null;
|
|
1794
|
+
}
|
|
1795
|
+
if(i===null) {
|
|
1796
|
+
return this.getTypedRuleContexts(IdentifierContext);
|
|
1797
|
+
} else {
|
|
1798
|
+
return this.getTypedRuleContext(IdentifierContext,i);
|
|
1799
|
+
}
|
|
1800
|
+
};
|
|
1801
|
+
|
|
1802
|
+
OPAR_SYMBOL() {
|
|
1803
|
+
return this.getToken(GISGrammarParser.OPAR_SYMBOL, 0);
|
|
1804
|
+
};
|
|
1805
|
+
|
|
1806
|
+
COMMA_SYMBOL = function(i) {
|
|
1807
|
+
if(i===undefined) {
|
|
1808
|
+
i = null;
|
|
1809
|
+
}
|
|
1810
|
+
if(i===null) {
|
|
1811
|
+
return this.getTokens(GISGrammarParser.COMMA_SYMBOL);
|
|
1812
|
+
} else {
|
|
1813
|
+
return this.getToken(GISGrammarParser.COMMA_SYMBOL, i);
|
|
1814
|
+
}
|
|
1815
|
+
};
|
|
1816
|
+
|
|
1817
|
+
|
|
1818
|
+
FILL_COLOR_SYMBOL() {
|
|
1819
|
+
return this.getToken(GISGrammarParser.FILL_COLOR_SYMBOL, 0);
|
|
1820
|
+
};
|
|
1821
|
+
|
|
1822
|
+
hexColor = function(i) {
|
|
1823
|
+
if(i===undefined) {
|
|
1824
|
+
i = null;
|
|
1825
|
+
}
|
|
1826
|
+
if(i===null) {
|
|
1827
|
+
return this.getTypedRuleContexts(HexColorContext);
|
|
1828
|
+
} else {
|
|
1829
|
+
return this.getTypedRuleContext(HexColorContext,i);
|
|
1830
|
+
}
|
|
1831
|
+
};
|
|
1832
|
+
|
|
1833
|
+
STROKE_COLOR_SYMBOL() {
|
|
1834
|
+
return this.getToken(GISGrammarParser.STROKE_COLOR_SYMBOL, 0);
|
|
1835
|
+
};
|
|
1836
|
+
|
|
1837
|
+
FILL_OPACITY_SYMBOL() {
|
|
1838
|
+
return this.getToken(GISGrammarParser.FILL_OPACITY_SYMBOL, 0);
|
|
1839
|
+
};
|
|
1840
|
+
|
|
1841
|
+
floatNumber = function(i) {
|
|
1842
|
+
if(i===undefined) {
|
|
1843
|
+
i = null;
|
|
1844
|
+
}
|
|
1845
|
+
if(i===null) {
|
|
1846
|
+
return this.getTypedRuleContexts(FloatNumberContext);
|
|
1847
|
+
} else {
|
|
1848
|
+
return this.getTypedRuleContext(FloatNumberContext,i);
|
|
1849
|
+
}
|
|
1850
|
+
};
|
|
1851
|
+
|
|
1852
|
+
STROKE_OPACITY_SYMBOL() {
|
|
1853
|
+
return this.getToken(GISGrammarParser.STROKE_OPACITY_SYMBOL, 0);
|
|
1854
|
+
};
|
|
1855
|
+
|
|
1856
|
+
CPAR_SYMBOL() {
|
|
1857
|
+
return this.getToken(GISGrammarParser.CPAR_SYMBOL, 0);
|
|
1858
|
+
};
|
|
1859
|
+
|
|
1860
|
+
SCOL_SYMBOL() {
|
|
1861
|
+
return this.getToken(GISGrammarParser.SCOL_SYMBOL, 0);
|
|
1862
|
+
};
|
|
1863
|
+
|
|
1864
|
+
AS_SYMBOL() {
|
|
1865
|
+
return this.getToken(GISGrammarParser.AS_SYMBOL, 0);
|
|
1866
|
+
};
|
|
1867
|
+
|
|
1868
|
+
text() {
|
|
1869
|
+
return this.getTypedRuleContext(TextContext,0);
|
|
1870
|
+
};
|
|
1871
|
+
|
|
1872
|
+
EDITABLE_SYMBOL() {
|
|
1873
|
+
return this.getToken(GISGrammarParser.EDITABLE_SYMBOL, 0);
|
|
1874
|
+
};
|
|
1875
|
+
|
|
1876
|
+
enterRule(listener) {
|
|
1877
|
+
if(listener instanceof GISGrammarListener ) {
|
|
1878
|
+
listener.enterCreateGeoJSONLayer(this);
|
|
1879
|
+
}
|
|
1880
|
+
}
|
|
1881
|
+
|
|
1882
|
+
exitRule(listener) {
|
|
1883
|
+
if(listener instanceof GISGrammarListener ) {
|
|
1884
|
+
listener.exitCreateGeoJSONLayer(this);
|
|
1885
|
+
}
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
accept(visitor) {
|
|
1889
|
+
if ( visitor instanceof GISGrammarVisitor ) {
|
|
1890
|
+
return visitor.visitCreateGeoJSONLayer(this);
|
|
1891
|
+
} else {
|
|
1892
|
+
return visitor.visitChildren(this);
|
|
1893
|
+
}
|
|
1894
|
+
}
|
|
1895
|
+
|
|
1896
|
+
|
|
1897
|
+
}
|
|
1898
|
+
|
|
1899
|
+
|
|
1900
|
+
|
|
1901
|
+
class CreateWmsStyleContext extends antlr4.ParserRuleContext {
|
|
1902
|
+
|
|
1903
|
+
constructor(parser, parent, invokingState) {
|
|
1904
|
+
if(parent===undefined) {
|
|
1905
|
+
parent = null;
|
|
1906
|
+
}
|
|
1907
|
+
if(invokingState===undefined || invokingState===null) {
|
|
1908
|
+
invokingState = -1;
|
|
1909
|
+
}
|
|
1910
|
+
super(parent, invokingState);
|
|
1911
|
+
this.parser = parser;
|
|
1912
|
+
this.ruleIndex = GISGrammarParser.RULE_createWmsStyle;
|
|
1913
|
+
}
|
|
1914
|
+
|
|
1915
|
+
WMS_SYMBOL() {
|
|
1916
|
+
return this.getToken(GISGrammarParser.WMS_SYMBOL, 0);
|
|
1917
|
+
};
|
|
1918
|
+
|
|
1919
|
+
STYLE_SYMBOL() {
|
|
1920
|
+
return this.getToken(GISGrammarParser.STYLE_SYMBOL, 0);
|
|
1921
|
+
};
|
|
1922
|
+
|
|
1923
|
+
identifier() {
|
|
1924
|
+
return this.getTypedRuleContext(IdentifierContext,0);
|
|
1925
|
+
};
|
|
1926
|
+
|
|
1927
|
+
OPAR_SYMBOL() {
|
|
1928
|
+
return this.getToken(GISGrammarParser.OPAR_SYMBOL, 0);
|
|
1929
|
+
};
|
|
1930
|
+
|
|
1931
|
+
SLD_SYMBOL() {
|
|
1932
|
+
return this.getToken(GISGrammarParser.SLD_SYMBOL, 0);
|
|
1933
|
+
};
|
|
1934
|
+
|
|
1935
|
+
text() {
|
|
1936
|
+
return this.getTypedRuleContext(TextContext,0);
|
|
1937
|
+
};
|
|
1938
|
+
|
|
1939
|
+
CPAR_SYMBOL() {
|
|
1940
|
+
return this.getToken(GISGrammarParser.CPAR_SYMBOL, 0);
|
|
1941
|
+
};
|
|
1942
|
+
|
|
1943
|
+
SCOL_SYMBOL() {
|
|
1944
|
+
return this.getToken(GISGrammarParser.SCOL_SYMBOL, 0);
|
|
1945
|
+
};
|
|
1946
|
+
|
|
1947
|
+
enterRule(listener) {
|
|
1948
|
+
if(listener instanceof GISGrammarListener ) {
|
|
1949
|
+
listener.enterCreateWmsStyle(this);
|
|
1950
|
+
}
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1953
|
+
exitRule(listener) {
|
|
1954
|
+
if(listener instanceof GISGrammarListener ) {
|
|
1955
|
+
listener.exitCreateWmsStyle(this);
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
|
|
1959
|
+
accept(visitor) {
|
|
1960
|
+
if ( visitor instanceof GISGrammarVisitor ) {
|
|
1961
|
+
return visitor.visitCreateWmsStyle(this);
|
|
1962
|
+
} else {
|
|
1963
|
+
return visitor.visitChildren(this);
|
|
1964
|
+
}
|
|
1965
|
+
}
|
|
1966
|
+
|
|
1967
|
+
|
|
1968
|
+
}
|
|
1969
|
+
|
|
1970
|
+
|
|
1971
|
+
|
|
1972
|
+
class CreateWmsLayerContext extends antlr4.ParserRuleContext {
|
|
1973
|
+
|
|
1974
|
+
constructor(parser, parent, invokingState) {
|
|
1975
|
+
if(parent===undefined) {
|
|
1976
|
+
parent = null;
|
|
1977
|
+
}
|
|
1978
|
+
if(invokingState===undefined || invokingState===null) {
|
|
1979
|
+
invokingState = -1;
|
|
1980
|
+
}
|
|
1981
|
+
super(parent, invokingState);
|
|
1982
|
+
this.parser = parser;
|
|
1983
|
+
this.ruleIndex = GISGrammarParser.RULE_createWmsLayer;
|
|
1984
|
+
}
|
|
1985
|
+
|
|
1986
|
+
WMS_SYMBOL() {
|
|
1987
|
+
return this.getToken(GISGrammarParser.WMS_SYMBOL, 0);
|
|
1988
|
+
};
|
|
1989
|
+
|
|
1990
|
+
LAYER_SYMBOL() {
|
|
1991
|
+
return this.getToken(GISGrammarParser.LAYER_SYMBOL, 0);
|
|
1992
|
+
};
|
|
1993
|
+
|
|
1994
|
+
identifier() {
|
|
1995
|
+
return this.getTypedRuleContext(IdentifierContext,0);
|
|
1996
|
+
};
|
|
1997
|
+
|
|
1998
|
+
OPAR_SYMBOL() {
|
|
1999
|
+
return this.getToken(GISGrammarParser.OPAR_SYMBOL, 0);
|
|
2000
|
+
};
|
|
2001
|
+
|
|
2002
|
+
wmsSubLayer = function(i) {
|
|
2003
|
+
if(i===undefined) {
|
|
2004
|
+
i = null;
|
|
2005
|
+
}
|
|
2006
|
+
if(i===null) {
|
|
2007
|
+
return this.getTypedRuleContexts(WmsSubLayerContext);
|
|
2008
|
+
} else {
|
|
2009
|
+
return this.getTypedRuleContext(WmsSubLayerContext,i);
|
|
2010
|
+
}
|
|
2011
|
+
};
|
|
2012
|
+
|
|
2013
|
+
CPAR_SYMBOL() {
|
|
2014
|
+
return this.getToken(GISGrammarParser.CPAR_SYMBOL, 0);
|
|
2015
|
+
};
|
|
2016
|
+
|
|
2017
|
+
SCOL_SYMBOL() {
|
|
2018
|
+
return this.getToken(GISGrammarParser.SCOL_SYMBOL, 0);
|
|
2019
|
+
};
|
|
2020
|
+
|
|
2021
|
+
AS_SYMBOL() {
|
|
2022
|
+
return this.getToken(GISGrammarParser.AS_SYMBOL, 0);
|
|
2023
|
+
};
|
|
2024
|
+
|
|
2025
|
+
text() {
|
|
2026
|
+
return this.getTypedRuleContext(TextContext,0);
|
|
2027
|
+
};
|
|
2028
|
+
|
|
2029
|
+
COMMA_SYMBOL = function(i) {
|
|
2030
|
+
if(i===undefined) {
|
|
2031
|
+
i = null;
|
|
2032
|
+
}
|
|
2033
|
+
if(i===null) {
|
|
2034
|
+
return this.getTokens(GISGrammarParser.COMMA_SYMBOL);
|
|
2035
|
+
} else {
|
|
2036
|
+
return this.getToken(GISGrammarParser.COMMA_SYMBOL, i);
|
|
2037
|
+
}
|
|
2038
|
+
};
|
|
2039
|
+
|
|
2040
|
+
|
|
2041
|
+
enterRule(listener) {
|
|
2042
|
+
if(listener instanceof GISGrammarListener ) {
|
|
2043
|
+
listener.enterCreateWmsLayer(this);
|
|
2044
|
+
}
|
|
2045
|
+
}
|
|
2046
|
+
|
|
2047
|
+
exitRule(listener) {
|
|
2048
|
+
if(listener instanceof GISGrammarListener ) {
|
|
2049
|
+
listener.exitCreateWmsLayer(this);
|
|
2050
|
+
}
|
|
2051
|
+
}
|
|
2052
|
+
|
|
2053
|
+
accept(visitor) {
|
|
2054
|
+
if ( visitor instanceof GISGrammarVisitor ) {
|
|
2055
|
+
return visitor.visitCreateWmsLayer(this);
|
|
2056
|
+
} else {
|
|
2057
|
+
return visitor.visitChildren(this);
|
|
2058
|
+
}
|
|
2059
|
+
}
|
|
2060
|
+
|
|
2061
|
+
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
|
|
2065
|
+
|
|
2066
|
+
class WmsSubLayerContext extends antlr4.ParserRuleContext {
|
|
2067
|
+
|
|
2068
|
+
constructor(parser, parent, invokingState) {
|
|
2069
|
+
if(parent===undefined) {
|
|
2070
|
+
parent = null;
|
|
2071
|
+
}
|
|
2072
|
+
if(invokingState===undefined || invokingState===null) {
|
|
2073
|
+
invokingState = -1;
|
|
2074
|
+
}
|
|
2075
|
+
super(parent, invokingState);
|
|
2076
|
+
this.parser = parser;
|
|
2077
|
+
this.ruleIndex = GISGrammarParser.RULE_wmsSubLayer;
|
|
2078
|
+
}
|
|
2079
|
+
|
|
2080
|
+
identifier = function(i) {
|
|
2081
|
+
if(i===undefined) {
|
|
2082
|
+
i = null;
|
|
2083
|
+
}
|
|
2084
|
+
if(i===null) {
|
|
2085
|
+
return this.getTypedRuleContexts(IdentifierContext);
|
|
2086
|
+
} else {
|
|
2087
|
+
return this.getTypedRuleContext(IdentifierContext,i);
|
|
2088
|
+
}
|
|
2089
|
+
};
|
|
2090
|
+
|
|
2091
|
+
enterRule(listener) {
|
|
2092
|
+
if(listener instanceof GISGrammarListener ) {
|
|
2093
|
+
listener.enterWmsSubLayer(this);
|
|
2094
|
+
}
|
|
2095
|
+
}
|
|
2096
|
+
|
|
2097
|
+
exitRule(listener) {
|
|
2098
|
+
if(listener instanceof GISGrammarListener ) {
|
|
2099
|
+
listener.exitWmsSubLayer(this);
|
|
2100
|
+
}
|
|
2101
|
+
}
|
|
2102
|
+
|
|
2103
|
+
accept(visitor) {
|
|
2104
|
+
if ( visitor instanceof GISGrammarVisitor ) {
|
|
2105
|
+
return visitor.visitWmsSubLayer(this);
|
|
2106
|
+
} else {
|
|
2107
|
+
return visitor.visitChildren(this);
|
|
2108
|
+
}
|
|
2109
|
+
}
|
|
2110
|
+
|
|
2111
|
+
|
|
2112
|
+
}
|
|
2113
|
+
|
|
2114
|
+
|
|
2115
|
+
|
|
2116
|
+
class CreateSortableMapContext extends antlr4.ParserRuleContext {
|
|
2117
|
+
|
|
2118
|
+
constructor(parser, parent, invokingState) {
|
|
2119
|
+
if(parent===undefined) {
|
|
2120
|
+
parent = null;
|
|
2121
|
+
}
|
|
2122
|
+
if(invokingState===undefined || invokingState===null) {
|
|
2123
|
+
invokingState = -1;
|
|
2124
|
+
}
|
|
2125
|
+
super(parent, invokingState);
|
|
2126
|
+
this.parser = parser;
|
|
2127
|
+
this.ruleIndex = GISGrammarParser.RULE_createSortableMap;
|
|
2128
|
+
}
|
|
2129
|
+
|
|
2130
|
+
SORTABLE_SYMBOL() {
|
|
2131
|
+
return this.getToken(GISGrammarParser.SORTABLE_SYMBOL, 0);
|
|
2132
|
+
};
|
|
2133
|
+
|
|
2134
|
+
createMap() {
|
|
2135
|
+
return this.getTypedRuleContext(CreateMapContext,0);
|
|
2136
|
+
};
|
|
2137
|
+
|
|
2138
|
+
enterRule(listener) {
|
|
2139
|
+
if(listener instanceof GISGrammarListener ) {
|
|
2140
|
+
listener.enterCreateSortableMap(this);
|
|
2141
|
+
}
|
|
2142
|
+
}
|
|
2143
|
+
|
|
2144
|
+
exitRule(listener) {
|
|
2145
|
+
if(listener instanceof GISGrammarListener ) {
|
|
2146
|
+
listener.exitCreateSortableMap(this);
|
|
2147
|
+
}
|
|
2148
|
+
}
|
|
2149
|
+
|
|
2150
|
+
accept(visitor) {
|
|
2151
|
+
if ( visitor instanceof GISGrammarVisitor ) {
|
|
2152
|
+
return visitor.visitCreateSortableMap(this);
|
|
2153
|
+
} else {
|
|
2154
|
+
return visitor.visitChildren(this);
|
|
2155
|
+
}
|
|
2156
|
+
}
|
|
2157
|
+
|
|
2158
|
+
|
|
2159
|
+
}
|
|
2160
|
+
|
|
2161
|
+
|
|
2162
|
+
|
|
2163
|
+
class CreateMapContext extends antlr4.ParserRuleContext {
|
|
2164
|
+
|
|
2165
|
+
constructor(parser, parent, invokingState) {
|
|
2166
|
+
if(parent===undefined) {
|
|
2167
|
+
parent = null;
|
|
2168
|
+
}
|
|
2169
|
+
if(invokingState===undefined || invokingState===null) {
|
|
2170
|
+
invokingState = -1;
|
|
2171
|
+
}
|
|
2172
|
+
super(parent, invokingState);
|
|
2173
|
+
this.parser = parser;
|
|
2174
|
+
this.ruleIndex = GISGrammarParser.RULE_createMap;
|
|
2175
|
+
}
|
|
2176
|
+
|
|
2177
|
+
MAP_SYMBOL() {
|
|
2178
|
+
return this.getToken(GISGrammarParser.MAP_SYMBOL, 0);
|
|
2179
|
+
};
|
|
2180
|
+
|
|
2181
|
+
identifier() {
|
|
2182
|
+
return this.getTypedRuleContext(IdentifierContext,0);
|
|
2183
|
+
};
|
|
2184
|
+
|
|
2185
|
+
OPAR_SYMBOL() {
|
|
2186
|
+
return this.getToken(GISGrammarParser.OPAR_SYMBOL, 0);
|
|
2187
|
+
};
|
|
2188
|
+
|
|
2189
|
+
mapLayer = function(i) {
|
|
2190
|
+
if(i===undefined) {
|
|
2191
|
+
i = null;
|
|
2192
|
+
}
|
|
2193
|
+
if(i===null) {
|
|
2194
|
+
return this.getTypedRuleContexts(MapLayerContext);
|
|
2195
|
+
} else {
|
|
2196
|
+
return this.getTypedRuleContext(MapLayerContext,i);
|
|
2197
|
+
}
|
|
2198
|
+
};
|
|
2199
|
+
|
|
2200
|
+
CPAR_SYMBOL() {
|
|
2201
|
+
return this.getToken(GISGrammarParser.CPAR_SYMBOL, 0);
|
|
2202
|
+
};
|
|
2203
|
+
|
|
2204
|
+
SCOL_SYMBOL() {
|
|
2205
|
+
return this.getToken(GISGrammarParser.SCOL_SYMBOL, 0);
|
|
2206
|
+
};
|
|
2207
|
+
|
|
2208
|
+
AS_SYMBOL() {
|
|
2209
|
+
return this.getToken(GISGrammarParser.AS_SYMBOL, 0);
|
|
2210
|
+
};
|
|
2211
|
+
|
|
2212
|
+
text() {
|
|
2213
|
+
return this.getTypedRuleContext(TextContext,0);
|
|
2214
|
+
};
|
|
2215
|
+
|
|
2216
|
+
COMMA_SYMBOL = function(i) {
|
|
2217
|
+
if(i===undefined) {
|
|
2218
|
+
i = null;
|
|
2219
|
+
}
|
|
2220
|
+
if(i===null) {
|
|
2221
|
+
return this.getTokens(GISGrammarParser.COMMA_SYMBOL);
|
|
2222
|
+
} else {
|
|
2223
|
+
return this.getToken(GISGrammarParser.COMMA_SYMBOL, i);
|
|
2224
|
+
}
|
|
2225
|
+
};
|
|
2226
|
+
|
|
2227
|
+
|
|
2228
|
+
enterRule(listener) {
|
|
2229
|
+
if(listener instanceof GISGrammarListener ) {
|
|
2230
|
+
listener.enterCreateMap(this);
|
|
2231
|
+
}
|
|
2232
|
+
}
|
|
2233
|
+
|
|
2234
|
+
exitRule(listener) {
|
|
2235
|
+
if(listener instanceof GISGrammarListener ) {
|
|
2236
|
+
listener.exitCreateMap(this);
|
|
2237
|
+
}
|
|
2238
|
+
}
|
|
2239
|
+
|
|
2240
|
+
accept(visitor) {
|
|
2241
|
+
if ( visitor instanceof GISGrammarVisitor ) {
|
|
2242
|
+
return visitor.visitCreateMap(this);
|
|
2243
|
+
} else {
|
|
2244
|
+
return visitor.visitChildren(this);
|
|
2245
|
+
}
|
|
2246
|
+
}
|
|
2247
|
+
|
|
2248
|
+
|
|
2249
|
+
}
|
|
2250
|
+
|
|
2251
|
+
|
|
2252
|
+
|
|
2253
|
+
class MapLayerContext extends antlr4.ParserRuleContext {
|
|
2254
|
+
|
|
2255
|
+
constructor(parser, parent, invokingState) {
|
|
2256
|
+
if(parent===undefined) {
|
|
2257
|
+
parent = null;
|
|
2258
|
+
}
|
|
2259
|
+
if(invokingState===undefined || invokingState===null) {
|
|
2260
|
+
invokingState = -1;
|
|
2261
|
+
}
|
|
2262
|
+
super(parent, invokingState);
|
|
2263
|
+
this.parser = parser;
|
|
2264
|
+
this.ruleIndex = GISGrammarParser.RULE_mapLayer;
|
|
2265
|
+
}
|
|
2266
|
+
|
|
2267
|
+
identifier() {
|
|
2268
|
+
return this.getTypedRuleContext(IdentifierContext,0);
|
|
2269
|
+
};
|
|
2270
|
+
|
|
2271
|
+
IS_BASE_LAYER_SYMBOL() {
|
|
2272
|
+
return this.getToken(GISGrammarParser.IS_BASE_LAYER_SYMBOL, 0);
|
|
2273
|
+
};
|
|
2274
|
+
|
|
2275
|
+
HIDDEN_SYMBOL() {
|
|
2276
|
+
return this.getToken(GISGrammarParser.HIDDEN_SYMBOL, 0);
|
|
2277
|
+
};
|
|
2278
|
+
|
|
2279
|
+
enterRule(listener) {
|
|
2280
|
+
if(listener instanceof GISGrammarListener ) {
|
|
2281
|
+
listener.enterMapLayer(this);
|
|
2282
|
+
}
|
|
2283
|
+
}
|
|
2284
|
+
|
|
2285
|
+
exitRule(listener) {
|
|
2286
|
+
if(listener instanceof GISGrammarListener ) {
|
|
2287
|
+
listener.exitMapLayer(this);
|
|
2288
|
+
}
|
|
2289
|
+
}
|
|
2290
|
+
|
|
2291
|
+
accept(visitor) {
|
|
2292
|
+
if ( visitor instanceof GISGrammarVisitor ) {
|
|
2293
|
+
return visitor.visitMapLayer(this);
|
|
2294
|
+
} else {
|
|
2295
|
+
return visitor.visitChildren(this);
|
|
2296
|
+
}
|
|
2297
|
+
}
|
|
2298
|
+
|
|
2299
|
+
|
|
2300
|
+
}
|
|
2301
|
+
|
|
2302
|
+
|
|
2303
|
+
|
|
2304
|
+
class UseGISContext extends antlr4.ParserRuleContext {
|
|
2305
|
+
|
|
2306
|
+
constructor(parser, parent, invokingState) {
|
|
2307
|
+
if(parent===undefined) {
|
|
2308
|
+
parent = null;
|
|
2309
|
+
}
|
|
2310
|
+
if(invokingState===undefined || invokingState===null) {
|
|
2311
|
+
invokingState = -1;
|
|
2312
|
+
}
|
|
2313
|
+
super(parent, invokingState);
|
|
2314
|
+
this.parser = parser;
|
|
2315
|
+
this.ruleIndex = GISGrammarParser.RULE_useGIS;
|
|
2316
|
+
}
|
|
2317
|
+
|
|
2318
|
+
USE_SYMBOL() {
|
|
2319
|
+
return this.getToken(GISGrammarParser.USE_SYMBOL, 0);
|
|
2320
|
+
};
|
|
2321
|
+
|
|
2322
|
+
GIS_SYMBOL() {
|
|
2323
|
+
return this.getToken(GISGrammarParser.GIS_SYMBOL, 0);
|
|
2324
|
+
};
|
|
2325
|
+
|
|
2326
|
+
identifier() {
|
|
2327
|
+
return this.getTypedRuleContext(IdentifierContext,0);
|
|
2328
|
+
};
|
|
2329
|
+
|
|
2330
|
+
SCOL_SYMBOL() {
|
|
2331
|
+
return this.getToken(GISGrammarParser.SCOL_SYMBOL, 0);
|
|
2332
|
+
};
|
|
2333
|
+
|
|
2334
|
+
enterRule(listener) {
|
|
2335
|
+
if(listener instanceof GISGrammarListener ) {
|
|
2336
|
+
listener.enterUseGIS(this);
|
|
2337
|
+
}
|
|
2338
|
+
}
|
|
2339
|
+
|
|
2340
|
+
exitRule(listener) {
|
|
2341
|
+
if(listener instanceof GISGrammarListener ) {
|
|
2342
|
+
listener.exitUseGIS(this);
|
|
2343
|
+
}
|
|
2344
|
+
}
|
|
2345
|
+
|
|
2346
|
+
accept(visitor) {
|
|
2347
|
+
if ( visitor instanceof GISGrammarVisitor ) {
|
|
2348
|
+
return visitor.visitUseGIS(this);
|
|
2349
|
+
} else {
|
|
2350
|
+
return visitor.visitChildren(this);
|
|
2351
|
+
}
|
|
2352
|
+
}
|
|
2353
|
+
|
|
2354
|
+
|
|
2355
|
+
}
|
|
2356
|
+
|
|
2357
|
+
|
|
2358
|
+
|
|
2359
|
+
class GenerateGISContext extends antlr4.ParserRuleContext {
|
|
2360
|
+
|
|
2361
|
+
constructor(parser, parent, invokingState) {
|
|
2362
|
+
if(parent===undefined) {
|
|
2363
|
+
parent = null;
|
|
2364
|
+
}
|
|
2365
|
+
if(invokingState===undefined || invokingState===null) {
|
|
2366
|
+
invokingState = -1;
|
|
2367
|
+
}
|
|
2368
|
+
super(parent, invokingState);
|
|
2369
|
+
this.parser = parser;
|
|
2370
|
+
this.ruleIndex = GISGrammarParser.RULE_generateGIS;
|
|
2371
|
+
}
|
|
2372
|
+
|
|
2373
|
+
GENERATE_SYMBOL() {
|
|
2374
|
+
return this.getToken(GISGrammarParser.GENERATE_SYMBOL, 0);
|
|
2375
|
+
};
|
|
2376
|
+
|
|
2377
|
+
GIS_SYMBOL() {
|
|
2378
|
+
return this.getToken(GISGrammarParser.GIS_SYMBOL, 0);
|
|
2379
|
+
};
|
|
2380
|
+
|
|
2381
|
+
identifier() {
|
|
2382
|
+
return this.getTypedRuleContext(IdentifierContext,0);
|
|
2383
|
+
};
|
|
2384
|
+
|
|
2385
|
+
SCOL_SYMBOL() {
|
|
2386
|
+
return this.getToken(GISGrammarParser.SCOL_SYMBOL, 0);
|
|
2387
|
+
};
|
|
2388
|
+
|
|
2389
|
+
enterRule(listener) {
|
|
2390
|
+
if(listener instanceof GISGrammarListener ) {
|
|
2391
|
+
listener.enterGenerateGIS(this);
|
|
2392
|
+
}
|
|
2393
|
+
}
|
|
2394
|
+
|
|
2395
|
+
exitRule(listener) {
|
|
2396
|
+
if(listener instanceof GISGrammarListener ) {
|
|
2397
|
+
listener.exitGenerateGIS(this);
|
|
2398
|
+
}
|
|
2399
|
+
}
|
|
2400
|
+
|
|
2401
|
+
accept(visitor) {
|
|
2402
|
+
if ( visitor instanceof GISGrammarVisitor ) {
|
|
2403
|
+
return visitor.visitGenerateGIS(this);
|
|
2404
|
+
} else {
|
|
2405
|
+
return visitor.visitChildren(this);
|
|
2406
|
+
}
|
|
2407
|
+
}
|
|
2408
|
+
|
|
2409
|
+
|
|
2410
|
+
}
|
|
2411
|
+
|
|
2412
|
+
|
|
2413
|
+
|
|
2414
|
+
class SetDeploymentContext extends antlr4.ParserRuleContext {
|
|
2415
|
+
|
|
2416
|
+
constructor(parser, parent, invokingState) {
|
|
2417
|
+
if(parent===undefined) {
|
|
2418
|
+
parent = null;
|
|
2419
|
+
}
|
|
2420
|
+
if(invokingState===undefined || invokingState===null) {
|
|
2421
|
+
invokingState = -1;
|
|
2422
|
+
}
|
|
2423
|
+
super(parent, invokingState);
|
|
2424
|
+
this.parser = parser;
|
|
2425
|
+
this.ruleIndex = GISGrammarParser.RULE_setDeployment;
|
|
2426
|
+
}
|
|
2427
|
+
|
|
2428
|
+
SET_SYMBOL() {
|
|
2429
|
+
return this.getToken(GISGrammarParser.SET_SYMBOL, 0);
|
|
2430
|
+
};
|
|
2431
|
+
|
|
2432
|
+
DEPLOYMENT_SYMBOL() {
|
|
2433
|
+
return this.getToken(GISGrammarParser.DEPLOYMENT_SYMBOL, 0);
|
|
2434
|
+
};
|
|
2435
|
+
|
|
2436
|
+
OPAR_SYMBOL() {
|
|
2437
|
+
return this.getToken(GISGrammarParser.OPAR_SYMBOL, 0);
|
|
2438
|
+
};
|
|
2439
|
+
|
|
2440
|
+
deploymentProperty = function(i) {
|
|
2441
|
+
if(i===undefined) {
|
|
2442
|
+
i = null;
|
|
2443
|
+
}
|
|
2444
|
+
if(i===null) {
|
|
2445
|
+
return this.getTypedRuleContexts(DeploymentPropertyContext);
|
|
2446
|
+
} else {
|
|
2447
|
+
return this.getTypedRuleContext(DeploymentPropertyContext,i);
|
|
2448
|
+
}
|
|
2449
|
+
};
|
|
2450
|
+
|
|
2451
|
+
CPAR_SYMBOL() {
|
|
2452
|
+
return this.getToken(GISGrammarParser.CPAR_SYMBOL, 0);
|
|
2453
|
+
};
|
|
2454
|
+
|
|
2455
|
+
SCOL_SYMBOL() {
|
|
2456
|
+
return this.getToken(GISGrammarParser.SCOL_SYMBOL, 0);
|
|
2457
|
+
};
|
|
2458
|
+
|
|
2459
|
+
COMMA_SYMBOL = function(i) {
|
|
2460
|
+
if(i===undefined) {
|
|
2461
|
+
i = null;
|
|
2462
|
+
}
|
|
2463
|
+
if(i===null) {
|
|
2464
|
+
return this.getTokens(GISGrammarParser.COMMA_SYMBOL);
|
|
2465
|
+
} else {
|
|
2466
|
+
return this.getToken(GISGrammarParser.COMMA_SYMBOL, i);
|
|
2467
|
+
}
|
|
2468
|
+
};
|
|
2469
|
+
|
|
2470
|
+
|
|
2471
|
+
enterRule(listener) {
|
|
2472
|
+
if(listener instanceof GISGrammarListener ) {
|
|
2473
|
+
listener.enterSetDeployment(this);
|
|
2474
|
+
}
|
|
2475
|
+
}
|
|
2476
|
+
|
|
2477
|
+
exitRule(listener) {
|
|
2478
|
+
if(listener instanceof GISGrammarListener ) {
|
|
2479
|
+
listener.exitSetDeployment(this);
|
|
2480
|
+
}
|
|
2481
|
+
}
|
|
2482
|
+
|
|
2483
|
+
accept(visitor) {
|
|
2484
|
+
if ( visitor instanceof GISGrammarVisitor ) {
|
|
2485
|
+
return visitor.visitSetDeployment(this);
|
|
2486
|
+
} else {
|
|
2487
|
+
return visitor.visitChildren(this);
|
|
2488
|
+
}
|
|
2489
|
+
}
|
|
2490
|
+
|
|
2491
|
+
|
|
2492
|
+
}
|
|
2493
|
+
|
|
2494
|
+
|
|
2495
|
+
|
|
2496
|
+
class DeploymentPropertyContext extends antlr4.ParserRuleContext {
|
|
2497
|
+
|
|
2498
|
+
constructor(parser, parent, invokingState) {
|
|
2499
|
+
if(parent===undefined) {
|
|
2500
|
+
parent = null;
|
|
2501
|
+
}
|
|
2502
|
+
if(invokingState===undefined || invokingState===null) {
|
|
2503
|
+
invokingState = -1;
|
|
2504
|
+
}
|
|
2505
|
+
super(parent, invokingState);
|
|
2506
|
+
this.parser = parser;
|
|
2507
|
+
this.ruleIndex = GISGrammarParser.RULE_deploymentProperty;
|
|
2508
|
+
}
|
|
2509
|
+
|
|
2510
|
+
text = function(i) {
|
|
2511
|
+
if(i===undefined) {
|
|
2512
|
+
i = null;
|
|
2513
|
+
}
|
|
2514
|
+
if(i===null) {
|
|
2515
|
+
return this.getTypedRuleContexts(TextContext);
|
|
2516
|
+
} else {
|
|
2517
|
+
return this.getTypedRuleContext(TextContext,i);
|
|
2518
|
+
}
|
|
2519
|
+
};
|
|
2520
|
+
|
|
2521
|
+
enterRule(listener) {
|
|
2522
|
+
if(listener instanceof GISGrammarListener ) {
|
|
2523
|
+
listener.enterDeploymentProperty(this);
|
|
2524
|
+
}
|
|
2525
|
+
}
|
|
2526
|
+
|
|
2527
|
+
exitRule(listener) {
|
|
2528
|
+
if(listener instanceof GISGrammarListener ) {
|
|
2529
|
+
listener.exitDeploymentProperty(this);
|
|
2530
|
+
}
|
|
2531
|
+
}
|
|
2532
|
+
|
|
2533
|
+
accept(visitor) {
|
|
2534
|
+
if ( visitor instanceof GISGrammarVisitor ) {
|
|
2535
|
+
return visitor.visitDeploymentProperty(this);
|
|
2536
|
+
} else {
|
|
2537
|
+
return visitor.visitChildren(this);
|
|
2538
|
+
}
|
|
2539
|
+
}
|
|
2540
|
+
|
|
2541
|
+
|
|
2542
|
+
}
|
|
2543
|
+
|
|
2544
|
+
|
|
2545
|
+
|
|
2546
|
+
class PropertyContext extends antlr4.ParserRuleContext {
|
|
2547
|
+
|
|
2548
|
+
constructor(parser, parent, invokingState) {
|
|
2549
|
+
if(parent===undefined) {
|
|
2550
|
+
parent = null;
|
|
2551
|
+
}
|
|
2552
|
+
if(invokingState===undefined || invokingState===null) {
|
|
2553
|
+
invokingState = -1;
|
|
2554
|
+
}
|
|
2555
|
+
super(parent, invokingState);
|
|
2556
|
+
this.parser = parser;
|
|
2557
|
+
this.ruleIndex = GISGrammarParser.RULE_property;
|
|
2558
|
+
}
|
|
2559
|
+
|
|
2560
|
+
propertyDefinition() {
|
|
2561
|
+
return this.getTypedRuleContext(PropertyDefinitionContext,0);
|
|
2562
|
+
};
|
|
2563
|
+
|
|
2564
|
+
relationshipDefinition() {
|
|
2565
|
+
return this.getTypedRuleContext(RelationshipDefinitionContext,0);
|
|
2566
|
+
};
|
|
2567
|
+
|
|
2568
|
+
enterRule(listener) {
|
|
2569
|
+
if(listener instanceof GISGrammarListener ) {
|
|
2570
|
+
listener.enterProperty(this);
|
|
2571
|
+
}
|
|
2572
|
+
}
|
|
2573
|
+
|
|
2574
|
+
exitRule(listener) {
|
|
2575
|
+
if(listener instanceof GISGrammarListener ) {
|
|
2576
|
+
listener.exitProperty(this);
|
|
2577
|
+
}
|
|
2578
|
+
}
|
|
2579
|
+
|
|
2580
|
+
accept(visitor) {
|
|
2581
|
+
if ( visitor instanceof GISGrammarVisitor ) {
|
|
2582
|
+
return visitor.visitProperty(this);
|
|
2583
|
+
} else {
|
|
2584
|
+
return visitor.visitChildren(this);
|
|
2585
|
+
}
|
|
2586
|
+
}
|
|
2587
|
+
|
|
2588
|
+
|
|
2589
|
+
}
|
|
2590
|
+
|
|
2591
|
+
|
|
2592
|
+
|
|
2593
|
+
class PropertyDefinitionContext extends antlr4.ParserRuleContext {
|
|
2594
|
+
|
|
2595
|
+
constructor(parser, parent, invokingState) {
|
|
2596
|
+
if(parent===undefined) {
|
|
2597
|
+
parent = null;
|
|
2598
|
+
}
|
|
2599
|
+
if(invokingState===undefined || invokingState===null) {
|
|
2600
|
+
invokingState = -1;
|
|
2601
|
+
}
|
|
2602
|
+
super(parent, invokingState);
|
|
2603
|
+
this.parser = parser;
|
|
2604
|
+
this.ruleIndex = GISGrammarParser.RULE_propertyDefinition;
|
|
2605
|
+
}
|
|
2606
|
+
|
|
2607
|
+
identifier() {
|
|
2608
|
+
return this.getTypedRuleContext(IdentifierContext,0);
|
|
2609
|
+
};
|
|
2610
|
+
|
|
2611
|
+
TYPE() {
|
|
2612
|
+
return this.getToken(GISGrammarParser.TYPE, 0);
|
|
2613
|
+
};
|
|
2614
|
+
|
|
2615
|
+
IDENTIFIER_SYMBOL = function(i) {
|
|
2616
|
+
if(i===undefined) {
|
|
2617
|
+
i = null;
|
|
2618
|
+
}
|
|
2619
|
+
if(i===null) {
|
|
2620
|
+
return this.getTokens(GISGrammarParser.IDENTIFIER_SYMBOL);
|
|
2621
|
+
} else {
|
|
2622
|
+
return this.getToken(GISGrammarParser.IDENTIFIER_SYMBOL, i);
|
|
2623
|
+
}
|
|
2624
|
+
};
|
|
2625
|
+
|
|
2626
|
+
|
|
2627
|
+
DISPLAYSTRING_SYMBOL = function(i) {
|
|
2628
|
+
if(i===undefined) {
|
|
2629
|
+
i = null;
|
|
2630
|
+
}
|
|
2631
|
+
if(i===null) {
|
|
2632
|
+
return this.getTokens(GISGrammarParser.DISPLAYSTRING_SYMBOL);
|
|
2633
|
+
} else {
|
|
2634
|
+
return this.getToken(GISGrammarParser.DISPLAYSTRING_SYMBOL, i);
|
|
2635
|
+
}
|
|
2636
|
+
};
|
|
2637
|
+
|
|
2638
|
+
|
|
2639
|
+
REQUIRED_SYMBOL = function(i) {
|
|
2640
|
+
if(i===undefined) {
|
|
2641
|
+
i = null;
|
|
2642
|
+
}
|
|
2643
|
+
if(i===null) {
|
|
2644
|
+
return this.getTokens(GISGrammarParser.REQUIRED_SYMBOL);
|
|
2645
|
+
} else {
|
|
2646
|
+
return this.getToken(GISGrammarParser.REQUIRED_SYMBOL, i);
|
|
2647
|
+
}
|
|
2648
|
+
};
|
|
2649
|
+
|
|
2650
|
+
|
|
2651
|
+
UNIQUE_SYMBOL = function(i) {
|
|
2652
|
+
if(i===undefined) {
|
|
2653
|
+
i = null;
|
|
2654
|
+
}
|
|
2655
|
+
if(i===null) {
|
|
2656
|
+
return this.getTokens(GISGrammarParser.UNIQUE_SYMBOL);
|
|
2657
|
+
} else {
|
|
2658
|
+
return this.getToken(GISGrammarParser.UNIQUE_SYMBOL, i);
|
|
2659
|
+
}
|
|
2660
|
+
};
|
|
2661
|
+
|
|
2662
|
+
|
|
2663
|
+
enterRule(listener) {
|
|
2664
|
+
if(listener instanceof GISGrammarListener ) {
|
|
2665
|
+
listener.enterPropertyDefinition(this);
|
|
2666
|
+
}
|
|
2667
|
+
}
|
|
2668
|
+
|
|
2669
|
+
exitRule(listener) {
|
|
2670
|
+
if(listener instanceof GISGrammarListener ) {
|
|
2671
|
+
listener.exitPropertyDefinition(this);
|
|
2672
|
+
}
|
|
2673
|
+
}
|
|
2674
|
+
|
|
2675
|
+
accept(visitor) {
|
|
2676
|
+
if ( visitor instanceof GISGrammarVisitor ) {
|
|
2677
|
+
return visitor.visitPropertyDefinition(this);
|
|
2678
|
+
} else {
|
|
2679
|
+
return visitor.visitChildren(this);
|
|
2680
|
+
}
|
|
2681
|
+
}
|
|
2682
|
+
|
|
2683
|
+
|
|
2684
|
+
}
|
|
2685
|
+
|
|
2686
|
+
|
|
2687
|
+
|
|
2688
|
+
class RelationshipDefinitionContext extends antlr4.ParserRuleContext {
|
|
2689
|
+
|
|
2690
|
+
constructor(parser, parent, invokingState) {
|
|
2691
|
+
if(parent===undefined) {
|
|
2692
|
+
parent = null;
|
|
2693
|
+
}
|
|
2694
|
+
if(invokingState===undefined || invokingState===null) {
|
|
2695
|
+
invokingState = -1;
|
|
2696
|
+
}
|
|
2697
|
+
super(parent, invokingState);
|
|
2698
|
+
this.parser = parser;
|
|
2699
|
+
this.ruleIndex = GISGrammarParser.RULE_relationshipDefinition;
|
|
2700
|
+
}
|
|
2701
|
+
|
|
2702
|
+
ownedRelationshipDefinition() {
|
|
2703
|
+
return this.getTypedRuleContext(OwnedRelationshipDefinitionContext,0);
|
|
2704
|
+
};
|
|
2705
|
+
|
|
2706
|
+
mappedRelationshipDefinition() {
|
|
2707
|
+
return this.getTypedRuleContext(MappedRelationshipDefinitionContext,0);
|
|
2708
|
+
};
|
|
2709
|
+
|
|
2710
|
+
enterRule(listener) {
|
|
2711
|
+
if(listener instanceof GISGrammarListener ) {
|
|
2712
|
+
listener.enterRelationshipDefinition(this);
|
|
2713
|
+
}
|
|
2714
|
+
}
|
|
2715
|
+
|
|
2716
|
+
exitRule(listener) {
|
|
2717
|
+
if(listener instanceof GISGrammarListener ) {
|
|
2718
|
+
listener.exitRelationshipDefinition(this);
|
|
2719
|
+
}
|
|
2720
|
+
}
|
|
2721
|
+
|
|
2722
|
+
accept(visitor) {
|
|
2723
|
+
if ( visitor instanceof GISGrammarVisitor ) {
|
|
2724
|
+
return visitor.visitRelationshipDefinition(this);
|
|
2725
|
+
} else {
|
|
2726
|
+
return visitor.visitChildren(this);
|
|
2727
|
+
}
|
|
2728
|
+
}
|
|
2729
|
+
|
|
2730
|
+
|
|
2731
|
+
}
|
|
2732
|
+
|
|
2733
|
+
|
|
2734
|
+
|
|
2735
|
+
class MappedRelationshipDefinitionContext extends antlr4.ParserRuleContext {
|
|
2736
|
+
|
|
2737
|
+
constructor(parser, parent, invokingState) {
|
|
2738
|
+
if(parent===undefined) {
|
|
2739
|
+
parent = null;
|
|
2740
|
+
}
|
|
2741
|
+
if(invokingState===undefined || invokingState===null) {
|
|
2742
|
+
invokingState = -1;
|
|
2743
|
+
}
|
|
2744
|
+
super(parent, invokingState);
|
|
2745
|
+
this.parser = parser;
|
|
2746
|
+
this.ruleIndex = GISGrammarParser.RULE_mappedRelationshipDefinition;
|
|
2747
|
+
}
|
|
2748
|
+
|
|
2749
|
+
identifier = function(i) {
|
|
2750
|
+
if(i===undefined) {
|
|
2751
|
+
i = null;
|
|
2752
|
+
}
|
|
2753
|
+
if(i===null) {
|
|
2754
|
+
return this.getTypedRuleContexts(IdentifierContext);
|
|
2755
|
+
} else {
|
|
2756
|
+
return this.getTypedRuleContext(IdentifierContext,i);
|
|
2757
|
+
}
|
|
2758
|
+
};
|
|
2759
|
+
|
|
2760
|
+
RELATIONSHIP_SYMBOL() {
|
|
2761
|
+
return this.getToken(GISGrammarParser.RELATIONSHIP_SYMBOL, 0);
|
|
2762
|
+
};
|
|
2763
|
+
|
|
2764
|
+
MAPPEDBY_SYMBOL() {
|
|
2765
|
+
return this.getToken(GISGrammarParser.MAPPEDBY_SYMBOL, 0);
|
|
2766
|
+
};
|
|
2767
|
+
|
|
2768
|
+
enterRule(listener) {
|
|
2769
|
+
if(listener instanceof GISGrammarListener ) {
|
|
2770
|
+
listener.enterMappedRelationshipDefinition(this);
|
|
2771
|
+
}
|
|
2772
|
+
}
|
|
2773
|
+
|
|
2774
|
+
exitRule(listener) {
|
|
2775
|
+
if(listener instanceof GISGrammarListener ) {
|
|
2776
|
+
listener.exitMappedRelationshipDefinition(this);
|
|
2777
|
+
}
|
|
2778
|
+
}
|
|
2779
|
+
|
|
2780
|
+
accept(visitor) {
|
|
2781
|
+
if ( visitor instanceof GISGrammarVisitor ) {
|
|
2782
|
+
return visitor.visitMappedRelationshipDefinition(this);
|
|
2783
|
+
} else {
|
|
2784
|
+
return visitor.visitChildren(this);
|
|
2785
|
+
}
|
|
2786
|
+
}
|
|
2787
|
+
|
|
2788
|
+
|
|
2789
|
+
}
|
|
2790
|
+
|
|
2791
|
+
|
|
2792
|
+
|
|
2793
|
+
class OwnedRelationshipDefinitionContext extends antlr4.ParserRuleContext {
|
|
2794
|
+
|
|
2795
|
+
constructor(parser, parent, invokingState) {
|
|
2796
|
+
if(parent===undefined) {
|
|
2797
|
+
parent = null;
|
|
2798
|
+
}
|
|
2799
|
+
if(invokingState===undefined || invokingState===null) {
|
|
2800
|
+
invokingState = -1;
|
|
2801
|
+
}
|
|
2802
|
+
super(parent, invokingState);
|
|
2803
|
+
this.parser = parser;
|
|
2804
|
+
this.ruleIndex = GISGrammarParser.RULE_ownedRelationshipDefinition;
|
|
2805
|
+
}
|
|
2806
|
+
|
|
2807
|
+
identifier = function(i) {
|
|
2808
|
+
if(i===undefined) {
|
|
2809
|
+
i = null;
|
|
2810
|
+
}
|
|
2811
|
+
if(i===null) {
|
|
2812
|
+
return this.getTypedRuleContexts(IdentifierContext);
|
|
2813
|
+
} else {
|
|
2814
|
+
return this.getTypedRuleContext(IdentifierContext,i);
|
|
2815
|
+
}
|
|
2816
|
+
};
|
|
2817
|
+
|
|
2818
|
+
RELATIONSHIP_SYMBOL() {
|
|
2819
|
+
return this.getToken(GISGrammarParser.RELATIONSHIP_SYMBOL, 0);
|
|
2820
|
+
};
|
|
2821
|
+
|
|
2822
|
+
OPAR_SYMBOL() {
|
|
2823
|
+
return this.getToken(GISGrammarParser.OPAR_SYMBOL, 0);
|
|
2824
|
+
};
|
|
2825
|
+
|
|
2826
|
+
cardinality = function(i) {
|
|
2827
|
+
if(i===undefined) {
|
|
2828
|
+
i = null;
|
|
2829
|
+
}
|
|
2830
|
+
if(i===null) {
|
|
2831
|
+
return this.getTypedRuleContexts(CardinalityContext);
|
|
2832
|
+
} else {
|
|
2833
|
+
return this.getTypedRuleContext(CardinalityContext,i);
|
|
2834
|
+
}
|
|
2835
|
+
};
|
|
2836
|
+
|
|
2837
|
+
COMMA_SYMBOL() {
|
|
2838
|
+
return this.getToken(GISGrammarParser.COMMA_SYMBOL, 0);
|
|
2839
|
+
};
|
|
2840
|
+
|
|
2841
|
+
CPAR_SYMBOL() {
|
|
2842
|
+
return this.getToken(GISGrammarParser.CPAR_SYMBOL, 0);
|
|
2843
|
+
};
|
|
2844
|
+
|
|
2845
|
+
BIDIRECTIONAL_SYMBOL() {
|
|
2846
|
+
return this.getToken(GISGrammarParser.BIDIRECTIONAL_SYMBOL, 0);
|
|
2847
|
+
};
|
|
2848
|
+
|
|
2849
|
+
enterRule(listener) {
|
|
2850
|
+
if(listener instanceof GISGrammarListener ) {
|
|
2851
|
+
listener.enterOwnedRelationshipDefinition(this);
|
|
2852
|
+
}
|
|
2853
|
+
}
|
|
2854
|
+
|
|
2855
|
+
exitRule(listener) {
|
|
2856
|
+
if(listener instanceof GISGrammarListener ) {
|
|
2857
|
+
listener.exitOwnedRelationshipDefinition(this);
|
|
2858
|
+
}
|
|
2859
|
+
}
|
|
2860
|
+
|
|
2861
|
+
accept(visitor) {
|
|
2862
|
+
if ( visitor instanceof GISGrammarVisitor ) {
|
|
2863
|
+
return visitor.visitOwnedRelationshipDefinition(this);
|
|
2864
|
+
} else {
|
|
2865
|
+
return visitor.visitChildren(this);
|
|
2866
|
+
}
|
|
2867
|
+
}
|
|
2868
|
+
|
|
2869
|
+
|
|
2870
|
+
}
|
|
2871
|
+
|
|
2872
|
+
|
|
2873
|
+
|
|
2874
|
+
class CardinalityContext extends antlr4.ParserRuleContext {
|
|
2875
|
+
|
|
2876
|
+
constructor(parser, parent, invokingState) {
|
|
2877
|
+
if(parent===undefined) {
|
|
2878
|
+
parent = null;
|
|
2879
|
+
}
|
|
2880
|
+
if(invokingState===undefined || invokingState===null) {
|
|
2881
|
+
invokingState = -1;
|
|
2882
|
+
}
|
|
2883
|
+
super(parent, invokingState);
|
|
2884
|
+
this.parser = parser;
|
|
2885
|
+
this.ruleIndex = GISGrammarParser.RULE_cardinality;
|
|
2886
|
+
}
|
|
2887
|
+
|
|
2888
|
+
ZERO_ONE_SYMBOL() {
|
|
2889
|
+
return this.getToken(GISGrammarParser.ZERO_ONE_SYMBOL, 0);
|
|
2890
|
+
};
|
|
2891
|
+
|
|
2892
|
+
ONE_ONE_SYMBOL() {
|
|
2893
|
+
return this.getToken(GISGrammarParser.ONE_ONE_SYMBOL, 0);
|
|
2894
|
+
};
|
|
2895
|
+
|
|
2896
|
+
ZERO_MANY_SYMBOL() {
|
|
2897
|
+
return this.getToken(GISGrammarParser.ZERO_MANY_SYMBOL, 0);
|
|
2898
|
+
};
|
|
2899
|
+
|
|
2900
|
+
ONE_MANY_SYMBOL() {
|
|
2901
|
+
return this.getToken(GISGrammarParser.ONE_MANY_SYMBOL, 0);
|
|
2902
|
+
};
|
|
2903
|
+
|
|
2904
|
+
enterRule(listener) {
|
|
2905
|
+
if(listener instanceof GISGrammarListener ) {
|
|
2906
|
+
listener.enterCardinality(this);
|
|
2907
|
+
}
|
|
2908
|
+
}
|
|
2909
|
+
|
|
2910
|
+
exitRule(listener) {
|
|
2911
|
+
if(listener instanceof GISGrammarListener ) {
|
|
2912
|
+
listener.exitCardinality(this);
|
|
2913
|
+
}
|
|
2914
|
+
}
|
|
2915
|
+
|
|
2916
|
+
accept(visitor) {
|
|
2917
|
+
if ( visitor instanceof GISGrammarVisitor ) {
|
|
2918
|
+
return visitor.visitCardinality(this);
|
|
2919
|
+
} else {
|
|
2920
|
+
return visitor.visitChildren(this);
|
|
2921
|
+
}
|
|
2922
|
+
}
|
|
2923
|
+
|
|
2924
|
+
|
|
2925
|
+
}
|
|
2926
|
+
|
|
2927
|
+
|
|
2928
|
+
|
|
2929
|
+
class SridContext extends antlr4.ParserRuleContext {
|
|
2930
|
+
|
|
2931
|
+
constructor(parser, parent, invokingState) {
|
|
2932
|
+
if(parent===undefined) {
|
|
2933
|
+
parent = null;
|
|
2934
|
+
}
|
|
2935
|
+
if(invokingState===undefined || invokingState===null) {
|
|
2936
|
+
invokingState = -1;
|
|
2937
|
+
}
|
|
2938
|
+
super(parent, invokingState);
|
|
2939
|
+
this.parser = parser;
|
|
2940
|
+
this.ruleIndex = GISGrammarParser.RULE_srid;
|
|
2941
|
+
}
|
|
2942
|
+
|
|
2943
|
+
INT_NUMBER() {
|
|
2944
|
+
return this.getToken(GISGrammarParser.INT_NUMBER, 0);
|
|
2945
|
+
};
|
|
2946
|
+
|
|
2947
|
+
enterRule(listener) {
|
|
2948
|
+
if(listener instanceof GISGrammarListener ) {
|
|
2949
|
+
listener.enterSrid(this);
|
|
2950
|
+
}
|
|
2951
|
+
}
|
|
2952
|
+
|
|
2953
|
+
exitRule(listener) {
|
|
2954
|
+
if(listener instanceof GISGrammarListener ) {
|
|
2955
|
+
listener.exitSrid(this);
|
|
2956
|
+
}
|
|
2957
|
+
}
|
|
2958
|
+
|
|
2959
|
+
accept(visitor) {
|
|
2960
|
+
if ( visitor instanceof GISGrammarVisitor ) {
|
|
2961
|
+
return visitor.visitSrid(this);
|
|
2962
|
+
} else {
|
|
2963
|
+
return visitor.visitChildren(this);
|
|
2964
|
+
}
|
|
2965
|
+
}
|
|
2966
|
+
|
|
2967
|
+
|
|
2968
|
+
}
|
|
2969
|
+
|
|
2970
|
+
|
|
2971
|
+
|
|
2972
|
+
class IdentifierContext extends antlr4.ParserRuleContext {
|
|
2973
|
+
|
|
2974
|
+
constructor(parser, parent, invokingState) {
|
|
2975
|
+
if(parent===undefined) {
|
|
2976
|
+
parent = null;
|
|
2977
|
+
}
|
|
2978
|
+
if(invokingState===undefined || invokingState===null) {
|
|
2979
|
+
invokingState = -1;
|
|
2980
|
+
}
|
|
2981
|
+
super(parent, invokingState);
|
|
2982
|
+
this.parser = parser;
|
|
2983
|
+
this.ruleIndex = GISGrammarParser.RULE_identifier;
|
|
2984
|
+
}
|
|
2985
|
+
|
|
2986
|
+
IDENTIFIER() {
|
|
2987
|
+
return this.getToken(GISGrammarParser.IDENTIFIER, 0);
|
|
2988
|
+
};
|
|
2989
|
+
|
|
2990
|
+
enterRule(listener) {
|
|
2991
|
+
if(listener instanceof GISGrammarListener ) {
|
|
2992
|
+
listener.enterIdentifier(this);
|
|
2993
|
+
}
|
|
2994
|
+
}
|
|
2995
|
+
|
|
2996
|
+
exitRule(listener) {
|
|
2997
|
+
if(listener instanceof GISGrammarListener ) {
|
|
2998
|
+
listener.exitIdentifier(this);
|
|
2999
|
+
}
|
|
3000
|
+
}
|
|
3001
|
+
|
|
3002
|
+
accept(visitor) {
|
|
3003
|
+
if ( visitor instanceof GISGrammarVisitor ) {
|
|
3004
|
+
return visitor.visitIdentifier(this);
|
|
3005
|
+
} else {
|
|
3006
|
+
return visitor.visitChildren(this);
|
|
3007
|
+
}
|
|
3008
|
+
}
|
|
3009
|
+
|
|
3010
|
+
|
|
3011
|
+
}
|
|
3012
|
+
|
|
3013
|
+
|
|
3014
|
+
|
|
3015
|
+
class TextContext extends antlr4.ParserRuleContext {
|
|
3016
|
+
|
|
3017
|
+
constructor(parser, parent, invokingState) {
|
|
3018
|
+
if(parent===undefined) {
|
|
3019
|
+
parent = null;
|
|
3020
|
+
}
|
|
3021
|
+
if(invokingState===undefined || invokingState===null) {
|
|
3022
|
+
invokingState = -1;
|
|
3023
|
+
}
|
|
3024
|
+
super(parent, invokingState);
|
|
3025
|
+
this.parser = parser;
|
|
3026
|
+
this.ruleIndex = GISGrammarParser.RULE_text;
|
|
3027
|
+
}
|
|
3028
|
+
|
|
3029
|
+
QUOTED_TEXT() {
|
|
3030
|
+
return this.getToken(GISGrammarParser.QUOTED_TEXT, 0);
|
|
3031
|
+
};
|
|
3032
|
+
|
|
3033
|
+
enterRule(listener) {
|
|
3034
|
+
if(listener instanceof GISGrammarListener ) {
|
|
3035
|
+
listener.enterText(this);
|
|
3036
|
+
}
|
|
3037
|
+
}
|
|
3038
|
+
|
|
3039
|
+
exitRule(listener) {
|
|
3040
|
+
if(listener instanceof GISGrammarListener ) {
|
|
3041
|
+
listener.exitText(this);
|
|
3042
|
+
}
|
|
3043
|
+
}
|
|
3044
|
+
|
|
3045
|
+
accept(visitor) {
|
|
3046
|
+
if ( visitor instanceof GISGrammarVisitor ) {
|
|
3047
|
+
return visitor.visitText(this);
|
|
3048
|
+
} else {
|
|
3049
|
+
return visitor.visitChildren(this);
|
|
3050
|
+
}
|
|
3051
|
+
}
|
|
3052
|
+
|
|
3053
|
+
|
|
3054
|
+
}
|
|
3055
|
+
|
|
3056
|
+
|
|
3057
|
+
|
|
3058
|
+
class HexColorContext extends antlr4.ParserRuleContext {
|
|
3059
|
+
|
|
3060
|
+
constructor(parser, parent, invokingState) {
|
|
3061
|
+
if(parent===undefined) {
|
|
3062
|
+
parent = null;
|
|
3063
|
+
}
|
|
3064
|
+
if(invokingState===undefined || invokingState===null) {
|
|
3065
|
+
invokingState = -1;
|
|
3066
|
+
}
|
|
3067
|
+
super(parent, invokingState);
|
|
3068
|
+
this.parser = parser;
|
|
3069
|
+
this.ruleIndex = GISGrammarParser.RULE_hexColor;
|
|
3070
|
+
}
|
|
3071
|
+
|
|
3072
|
+
HEX_COLOR() {
|
|
3073
|
+
return this.getToken(GISGrammarParser.HEX_COLOR, 0);
|
|
3074
|
+
};
|
|
3075
|
+
|
|
3076
|
+
enterRule(listener) {
|
|
3077
|
+
if(listener instanceof GISGrammarListener ) {
|
|
3078
|
+
listener.enterHexColor(this);
|
|
3079
|
+
}
|
|
3080
|
+
}
|
|
3081
|
+
|
|
3082
|
+
exitRule(listener) {
|
|
3083
|
+
if(listener instanceof GISGrammarListener ) {
|
|
3084
|
+
listener.exitHexColor(this);
|
|
3085
|
+
}
|
|
3086
|
+
}
|
|
3087
|
+
|
|
3088
|
+
accept(visitor) {
|
|
3089
|
+
if ( visitor instanceof GISGrammarVisitor ) {
|
|
3090
|
+
return visitor.visitHexColor(this);
|
|
3091
|
+
} else {
|
|
3092
|
+
return visitor.visitChildren(this);
|
|
3093
|
+
}
|
|
3094
|
+
}
|
|
3095
|
+
|
|
3096
|
+
|
|
3097
|
+
}
|
|
3098
|
+
|
|
3099
|
+
|
|
3100
|
+
|
|
3101
|
+
class FloatNumberContext extends antlr4.ParserRuleContext {
|
|
3102
|
+
|
|
3103
|
+
constructor(parser, parent, invokingState) {
|
|
3104
|
+
if(parent===undefined) {
|
|
3105
|
+
parent = null;
|
|
3106
|
+
}
|
|
3107
|
+
if(invokingState===undefined || invokingState===null) {
|
|
3108
|
+
invokingState = -1;
|
|
3109
|
+
}
|
|
3110
|
+
super(parent, invokingState);
|
|
3111
|
+
this.parser = parser;
|
|
3112
|
+
this.ruleIndex = GISGrammarParser.RULE_floatNumber;
|
|
3113
|
+
}
|
|
3114
|
+
|
|
3115
|
+
FLOAT_NUMBER() {
|
|
3116
|
+
return this.getToken(GISGrammarParser.FLOAT_NUMBER, 0);
|
|
3117
|
+
};
|
|
3118
|
+
|
|
3119
|
+
enterRule(listener) {
|
|
3120
|
+
if(listener instanceof GISGrammarListener ) {
|
|
3121
|
+
listener.enterFloatNumber(this);
|
|
3122
|
+
}
|
|
3123
|
+
}
|
|
3124
|
+
|
|
3125
|
+
exitRule(listener) {
|
|
3126
|
+
if(listener instanceof GISGrammarListener ) {
|
|
3127
|
+
listener.exitFloatNumber(this);
|
|
3128
|
+
}
|
|
3129
|
+
}
|
|
3130
|
+
|
|
3131
|
+
accept(visitor) {
|
|
3132
|
+
if ( visitor instanceof GISGrammarVisitor ) {
|
|
3133
|
+
return visitor.visitFloatNumber(this);
|
|
3134
|
+
} else {
|
|
3135
|
+
return visitor.visitChildren(this);
|
|
3136
|
+
}
|
|
3137
|
+
}
|
|
3138
|
+
|
|
3139
|
+
|
|
3140
|
+
}
|
|
3141
|
+
|
|
3142
|
+
|
|
3143
|
+
|
|
3144
|
+
|
|
3145
|
+
GISGrammarParser.ParseContext = ParseContext;
|
|
3146
|
+
GISGrammarParser.SentenceContext = SentenceContext;
|
|
3147
|
+
GISGrammarParser.CreateStatementContext = CreateStatementContext;
|
|
3148
|
+
GISGrammarParser.CreateGISContext = CreateGISContext;
|
|
3149
|
+
GISGrammarParser.CreateEntityContext = CreateEntityContext;
|
|
3150
|
+
GISGrammarParser.CreateLayerContext = CreateLayerContext;
|
|
3151
|
+
GISGrammarParser.CreateTileLayerContext = CreateTileLayerContext;
|
|
3152
|
+
GISGrammarParser.CreateGeoJSONLayerContext = CreateGeoJSONLayerContext;
|
|
3153
|
+
GISGrammarParser.CreateWmsStyleContext = CreateWmsStyleContext;
|
|
3154
|
+
GISGrammarParser.CreateWmsLayerContext = CreateWmsLayerContext;
|
|
3155
|
+
GISGrammarParser.WmsSubLayerContext = WmsSubLayerContext;
|
|
3156
|
+
GISGrammarParser.CreateSortableMapContext = CreateSortableMapContext;
|
|
3157
|
+
GISGrammarParser.CreateMapContext = CreateMapContext;
|
|
3158
|
+
GISGrammarParser.MapLayerContext = MapLayerContext;
|
|
3159
|
+
GISGrammarParser.UseGISContext = UseGISContext;
|
|
3160
|
+
GISGrammarParser.GenerateGISContext = GenerateGISContext;
|
|
3161
|
+
GISGrammarParser.SetDeploymentContext = SetDeploymentContext;
|
|
3162
|
+
GISGrammarParser.DeploymentPropertyContext = DeploymentPropertyContext;
|
|
3163
|
+
GISGrammarParser.PropertyContext = PropertyContext;
|
|
3164
|
+
GISGrammarParser.PropertyDefinitionContext = PropertyDefinitionContext;
|
|
3165
|
+
GISGrammarParser.RelationshipDefinitionContext = RelationshipDefinitionContext;
|
|
3166
|
+
GISGrammarParser.MappedRelationshipDefinitionContext = MappedRelationshipDefinitionContext;
|
|
3167
|
+
GISGrammarParser.OwnedRelationshipDefinitionContext = OwnedRelationshipDefinitionContext;
|
|
3168
|
+
GISGrammarParser.CardinalityContext = CardinalityContext;
|
|
3169
|
+
GISGrammarParser.SridContext = SridContext;
|
|
3170
|
+
GISGrammarParser.IdentifierContext = IdentifierContext;
|
|
3171
|
+
GISGrammarParser.TextContext = TextContext;
|
|
3172
|
+
GISGrammarParser.HexColorContext = HexColorContext;
|
|
3173
|
+
GISGrammarParser.FloatNumberContext = FloatNumberContext;
|