@lbdudc/gp-gis-dsl 0.2.6 → 0.3.1
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/grammar/GISGrammar.g4 +75 -2
- package/package.json +1 -1
- package/src/GISVisitor.js +73 -8
- package/src/GISVisitorHelper.js +93 -93
- package/src/cli.js +34 -34
- package/src/error/ErrorListener.js +26 -26
- package/src/error/SyntaxGenericError.js +18 -18
- package/src/features.js +1 -0
- package/src/index.js +26 -26
- package/src/lib/GISGrammar.interp +39 -1
- package/src/lib/GISGrammar.tokens +40 -28
- package/src/lib/GISGrammarLexer.interp +38 -1
- package/src/lib/GISGrammarLexer.js +322 -265
- package/src/lib/GISGrammarLexer.tokens +40 -28
- package/src/lib/GISGrammarListener.js +126 -0
- package/src/lib/GISGrammarParser.js +2253 -964
- package/src/lib/GISGrammarVisitor.js +84 -0
- package/src/spl/GIS.js +234 -234
- package/src/spl/GeoJSONLayer.js +21 -21
- package/src/spl/GeoJSONLayerStyle.js +14 -14
- package/src/spl/Map.js +2 -0
- package/src/spl/TileLayer.js +16 -16
- package/src/spl/WMSLayer.js +30 -30
- package/src/spl/WMSServiceLayer.js +40 -0
- package/src/spl/WMSStyle.js +13 -13
- package/src/spl/WMSStyleCustom.js +22 -22
- package/src/store.js +74 -74
|
@@ -31,31 +31,43 @@ SORTABLE_SYMBOL=30
|
|
|
31
31
|
MAP_SYMBOL=31
|
|
32
32
|
SET_SYMBOL=32
|
|
33
33
|
DEPLOYMENT_SYMBOL=33
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
34
|
+
URL_WMS_SYMBOL=34
|
|
35
|
+
LAYERNAME_SYMBOL=35
|
|
36
|
+
FORMAT_SYMBOL=36
|
|
37
|
+
CRS_SYMBOL=37
|
|
38
|
+
BBOX_CRS_SYMBOL=38
|
|
39
|
+
MINX_SYMBOL=39
|
|
40
|
+
MINY_SYMBOL=40
|
|
41
|
+
MAXX_SYMBOL=41
|
|
42
|
+
MAXY_SYMBOL=42
|
|
43
|
+
QUERYABLE_SYMBOL=43
|
|
44
|
+
ATTRIBUTION_SYMBOL=44
|
|
45
|
+
VERSION_SYMBOL=45
|
|
46
|
+
ZERO_ONE_SYMBOL=46
|
|
47
|
+
ONE_ONE_SYMBOL=47
|
|
48
|
+
ZERO_MANY_SYMBOL=48
|
|
49
|
+
ONE_MANY_SYMBOL=49
|
|
50
|
+
TYPE=50
|
|
51
|
+
POUND_SYMBOL=51
|
|
52
|
+
DOT_SYMBOL=52
|
|
53
|
+
OPAR_SYMBOL=53
|
|
54
|
+
CPAR_SYMBOL=54
|
|
55
|
+
COMMA_SYMBOL=55
|
|
56
|
+
SCOL_SYMBOL=56
|
|
57
|
+
HEX_COLOR=57
|
|
58
|
+
INT_NUMBER=58
|
|
59
|
+
FLOAT_NUMBER=59
|
|
60
|
+
COMMENT=60
|
|
61
|
+
WHITESPACE=61
|
|
62
|
+
IDENTIFIER=62
|
|
63
|
+
QUOTED_TEXT=63
|
|
64
|
+
'0..1'=46
|
|
65
|
+
'1..1'=47
|
|
66
|
+
'0..*'=48
|
|
67
|
+
'1..*'=49
|
|
68
|
+
'#'=51
|
|
69
|
+
'.'=52
|
|
70
|
+
'('=53
|
|
71
|
+
')'=54
|
|
72
|
+
','=55
|
|
73
|
+
';'=56
|
|
@@ -113,6 +113,132 @@ export default class GISGrammarListener extends antlr4.tree.ParseTreeListener {
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
|
|
116
|
+
// Enter a parse tree produced by GISGrammarParser#wmsUrl.
|
|
117
|
+
enterWmsUrl(ctx) {
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// Exit a parse tree produced by GISGrammarParser#wmsUrl.
|
|
121
|
+
exitWmsUrl(ctx) {
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
// Enter a parse tree produced by GISGrammarParser#wmsLayerName.
|
|
126
|
+
enterWmsLayerName(ctx) {
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// Exit a parse tree produced by GISGrammarParser#wmsLayerName.
|
|
130
|
+
exitWmsLayerName(ctx) {
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
// Enter a parse tree produced by GISGrammarParser#wmsFormatName.
|
|
135
|
+
enterWmsFormatName(ctx) {
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// Exit a parse tree produced by GISGrammarParser#wmsFormatName.
|
|
139
|
+
exitWmsFormatName(ctx) {
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
// Enter a parse tree produced by GISGrammarParser#wmsCrs.
|
|
144
|
+
enterWmsCrs(ctx) {
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// Exit a parse tree produced by GISGrammarParser#wmsCrs.
|
|
148
|
+
exitWmsCrs(ctx) {
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
// Enter a parse tree produced by GISGrammarParser#wmsBboxCrs.
|
|
153
|
+
enterWmsBboxCrs(ctx) {
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
// Exit a parse tree produced by GISGrammarParser#wmsBboxCrs.
|
|
157
|
+
exitWmsBboxCrs(ctx) {
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
// Enter a parse tree produced by GISGrammarParser#wmsMinX.
|
|
162
|
+
enterWmsMinX(ctx) {
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
// Exit a parse tree produced by GISGrammarParser#wmsMinX.
|
|
166
|
+
exitWmsMinX(ctx) {
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
// Enter a parse tree produced by GISGrammarParser#wmsMinY.
|
|
171
|
+
enterWmsMinY(ctx) {
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// Exit a parse tree produced by GISGrammarParser#wmsMinY.
|
|
175
|
+
exitWmsMinY(ctx) {
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
// Enter a parse tree produced by GISGrammarParser#wmsMaxX.
|
|
180
|
+
enterWmsMaxX(ctx) {
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
// Exit a parse tree produced by GISGrammarParser#wmsMaxX.
|
|
184
|
+
exitWmsMaxX(ctx) {
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
// Enter a parse tree produced by GISGrammarParser#wmsMaxY.
|
|
189
|
+
enterWmsMaxY(ctx) {
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
// Exit a parse tree produced by GISGrammarParser#wmsMaxY.
|
|
193
|
+
exitWmsMaxY(ctx) {
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
// Enter a parse tree produced by GISGrammarParser#wmsBboxGroup.
|
|
198
|
+
enterWmsBboxGroup(ctx) {
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
// Exit a parse tree produced by GISGrammarParser#wmsBboxGroup.
|
|
202
|
+
exitWmsBboxGroup(ctx) {
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
// Enter a parse tree produced by GISGrammarParser#wmsStyles.
|
|
207
|
+
enterWmsStyles(ctx) {
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
// Exit a parse tree produced by GISGrammarParser#wmsStyles.
|
|
211
|
+
exitWmsStyles(ctx) {
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
// Enter a parse tree produced by GISGrammarParser#wmsQueryable.
|
|
216
|
+
enterWmsQueryable(ctx) {
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
// Exit a parse tree produced by GISGrammarParser#wmsQueryable.
|
|
220
|
+
exitWmsQueryable(ctx) {
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
// Enter a parse tree produced by GISGrammarParser#wmsAttribution.
|
|
225
|
+
enterWmsAttribution(ctx) {
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
// Exit a parse tree produced by GISGrammarParser#wmsAttribution.
|
|
229
|
+
exitWmsAttribution(ctx) {
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
// Enter a parse tree produced by GISGrammarParser#wmsVersion.
|
|
234
|
+
enterWmsVersion(ctx) {
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
// Exit a parse tree produced by GISGrammarParser#wmsVersion.
|
|
238
|
+
exitWmsVersion(ctx) {
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
|
|
116
242
|
// Enter a parse tree produced by GISGrammarParser#createSortableMap.
|
|
117
243
|
enterCreateSortableMap(ctx) {
|
|
118
244
|
}
|