@lbdudc/gp-gis-dsl 0.3.1 → 0.3.3
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/.claude/settings.local.json +7 -0
- package/grammar/.antlr/GISGrammar.interp +182 -0
- package/grammar/.antlr/GISGrammar.tokens +73 -0
- package/grammar/.antlr/GISGrammarBaseListener.java +579 -0
- package/grammar/.antlr/GISGrammarLexer.interp +241 -0
- package/grammar/.antlr/GISGrammarLexer.java +686 -0
- package/grammar/.antlr/GISGrammarLexer.tokens +73 -0
- package/grammar/.antlr/GISGrammarListener.java +459 -0
- package/grammar/.antlr/GISGrammarParser.java +2948 -0
- package/grammar/GISGrammar.g4 +313 -313
- package/package.json +1 -1
- package/parse-file.js +73 -0
- 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/index.js +4 -1
- package/src/lib/GISGrammar.interp +181 -181
- package/src/lib/GISGrammarLexer.interp +241 -241
- package/src/lib/GISGrammarLexer.js +202 -202
- package/src/lib/GISGrammarListener.js +1 -1
- package/src/lib/GISGrammarParser.js +1 -1
- package/src/lib/GISGrammarVisitor.js +1 -1
- package/src/spl/GIS.js +234 -234
- package/src/spl/GeoJSONLayer.js +21 -21
- package/src/spl/GeoJSONLayerStyle.js +14 -14
- package/src/spl/TileLayer.js +16 -16
- package/src/spl/WMSLayer.js +30 -30
- package/src/spl/WMSStyle.js +13 -13
- package/src/spl/WMSStyleCustom.js +22 -22
- package/src/store.js +74 -74
- package/test-examples.js +120 -0
- package/test-output/agriculture.json +429 -0
- package/test-output/basic.json +315 -0
- package/test-output/complete.json +1259 -0
- package/test-output/emergency.json +755 -0
- package/test-output/environmental.json +591 -0
- package/test-output/gis.json +254 -0
- package/test-output/tourism.json +704 -0
- package/test-output/transportation.json +488 -0
- package/test-output/utilities.json +620 -0
- package/test-output/wms.json +110 -0
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
{
|
|
2
|
+
"features": [
|
|
3
|
+
"MapViewer",
|
|
4
|
+
"ChartViewer",
|
|
5
|
+
"Tools",
|
|
6
|
+
"DM_SpatialDatabase",
|
|
7
|
+
"DM_GenerationType",
|
|
8
|
+
"MV_MapServer",
|
|
9
|
+
"MV_Tools",
|
|
10
|
+
"MV_MapManagement",
|
|
11
|
+
"DM_SD_PostGIS",
|
|
12
|
+
"DM_GT_Sequence",
|
|
13
|
+
"MV_MM_MultipleMapViewer",
|
|
14
|
+
"MV_MM_MMV_MapSelectorInMapViewer",
|
|
15
|
+
"MV_MM_MMV_MapSelectorInMenuElement",
|
|
16
|
+
"MV_MS_GeoServer",
|
|
17
|
+
"GUI_Lists",
|
|
18
|
+
"GUI_L_FormLink",
|
|
19
|
+
"GUI_L_F_BasicSearch",
|
|
20
|
+
"GUI_L_Filterable",
|
|
21
|
+
"GUI_L_Sortable",
|
|
22
|
+
"GUI_L_LocateInMap",
|
|
23
|
+
"GUI_L_ViewListAsMap",
|
|
24
|
+
"MV_ContextInformation",
|
|
25
|
+
"MV_CI_Scale",
|
|
26
|
+
"MV_CI_Map",
|
|
27
|
+
"MV_CI_CenterCoordinates",
|
|
28
|
+
"MV_CI_Dimensions",
|
|
29
|
+
"MV_DetailOnClick",
|
|
30
|
+
"MV_LayerManagement",
|
|
31
|
+
"MV_LM_CenterViewOnLayer",
|
|
32
|
+
"MV_LM_Order",
|
|
33
|
+
"MV_LM_Opacity",
|
|
34
|
+
"MV_LM_HideLayer",
|
|
35
|
+
"MV_LM_Style",
|
|
36
|
+
"MV_LM_ExternalLayer",
|
|
37
|
+
"MV_LM_StylePreview",
|
|
38
|
+
"MV_T_E_Type",
|
|
39
|
+
"MV_T_E_F_URL",
|
|
40
|
+
"MV_T_E_F_PDF",
|
|
41
|
+
"MV_T_E_SetScale",
|
|
42
|
+
"MV_T_E_ShowLegend",
|
|
43
|
+
"MV_T_InformationMode",
|
|
44
|
+
"MV_T_MeasureControl",
|
|
45
|
+
"MV_T_ZoomWindow",
|
|
46
|
+
"MV_T_ViewMapAsList",
|
|
47
|
+
"DM_DataInput",
|
|
48
|
+
"DM_DI_DataFeeding",
|
|
49
|
+
"DM_DI_DF_Shapefile",
|
|
50
|
+
"T_GIS",
|
|
51
|
+
"T_EntitiesInformation",
|
|
52
|
+
"D_C_Postgres",
|
|
53
|
+
"D_C_Geoserver",
|
|
54
|
+
"D_C_Nginx"
|
|
55
|
+
],
|
|
56
|
+
"basicData": {
|
|
57
|
+
"name": "city_example"
|
|
58
|
+
},
|
|
59
|
+
"data": {
|
|
60
|
+
"dataModel": {
|
|
61
|
+
"entities": [
|
|
62
|
+
{
|
|
63
|
+
"name": "City",
|
|
64
|
+
"properties": [
|
|
65
|
+
{
|
|
66
|
+
"name": "id",
|
|
67
|
+
"class": "Long (autoinc)",
|
|
68
|
+
"pk": true,
|
|
69
|
+
"required": true,
|
|
70
|
+
"unique": true
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "name",
|
|
74
|
+
"class": "String"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "extension",
|
|
78
|
+
"class": "MultiPolygon"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "points",
|
|
82
|
+
"class": "PointOfInterest",
|
|
83
|
+
"owner": false,
|
|
84
|
+
"bidirectional": "city",
|
|
85
|
+
"multiple": true,
|
|
86
|
+
"required": false
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "streets",
|
|
90
|
+
"class": "Street",
|
|
91
|
+
"owner": false,
|
|
92
|
+
"bidirectional": "city",
|
|
93
|
+
"multiple": true,
|
|
94
|
+
"required": false
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"displayString": "$name"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "Street",
|
|
101
|
+
"properties": [
|
|
102
|
+
{
|
|
103
|
+
"name": "id",
|
|
104
|
+
"class": "Long (autoinc)",
|
|
105
|
+
"pk": true,
|
|
106
|
+
"required": true,
|
|
107
|
+
"unique": true
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "name",
|
|
111
|
+
"class": "String"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "type",
|
|
115
|
+
"class": "String"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"name": "path",
|
|
119
|
+
"class": "MultiLineString"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "city",
|
|
123
|
+
"class": "City",
|
|
124
|
+
"owner": true,
|
|
125
|
+
"bidirectional": "streets",
|
|
126
|
+
"multiple": false,
|
|
127
|
+
"required": true
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
"displayString": "$name"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"name": "PointOfInterest",
|
|
134
|
+
"properties": [
|
|
135
|
+
{
|
|
136
|
+
"name": "id",
|
|
137
|
+
"class": "Long (autoinc)",
|
|
138
|
+
"pk": true,
|
|
139
|
+
"required": true,
|
|
140
|
+
"unique": true
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"name": "name",
|
|
144
|
+
"class": "String"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"name": "location",
|
|
148
|
+
"class": "Point"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"name": "city",
|
|
152
|
+
"class": "City",
|
|
153
|
+
"owner": true,
|
|
154
|
+
"bidirectional": "points",
|
|
155
|
+
"multiple": false,
|
|
156
|
+
"required": true
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"name": "type",
|
|
160
|
+
"class": "PoiType",
|
|
161
|
+
"owner": true,
|
|
162
|
+
"bidirectional": "pointofinterests",
|
|
163
|
+
"multiple": false,
|
|
164
|
+
"required": true
|
|
165
|
+
}
|
|
166
|
+
],
|
|
167
|
+
"displayString": "$name"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"name": "PoiType",
|
|
171
|
+
"properties": [
|
|
172
|
+
{
|
|
173
|
+
"name": "id",
|
|
174
|
+
"class": "Long (autoinc)",
|
|
175
|
+
"pk": true,
|
|
176
|
+
"required": true,
|
|
177
|
+
"unique": true
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"name": "name",
|
|
181
|
+
"class": "String"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"name": "pointofinterests",
|
|
185
|
+
"class": "PointOfInterest",
|
|
186
|
+
"owner": false,
|
|
187
|
+
"bidirectional": "type",
|
|
188
|
+
"multiple": true,
|
|
189
|
+
"required": false
|
|
190
|
+
}
|
|
191
|
+
],
|
|
192
|
+
"displayString": "$name"
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
"enums": []
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"mapViewer": {
|
|
199
|
+
"maps": [
|
|
200
|
+
{
|
|
201
|
+
"name": "streets",
|
|
202
|
+
"label": "Streets",
|
|
203
|
+
"sortable": false,
|
|
204
|
+
"layers": [
|
|
205
|
+
{
|
|
206
|
+
"name": "base",
|
|
207
|
+
"baseLayer": true,
|
|
208
|
+
"selected": true
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"name": "streetLayer",
|
|
212
|
+
"baseLayer": false,
|
|
213
|
+
"selected": true
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"name": "cityLayer",
|
|
217
|
+
"baseLayer": false,
|
|
218
|
+
"selected": false
|
|
219
|
+
}
|
|
220
|
+
]
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"name": "points",
|
|
224
|
+
"label": "Points of Interest",
|
|
225
|
+
"sortable": false,
|
|
226
|
+
"layers": [
|
|
227
|
+
{
|
|
228
|
+
"name": "base",
|
|
229
|
+
"baseLayer": true,
|
|
230
|
+
"selected": true
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "pointsOfInterestLayer",
|
|
234
|
+
"baseLayer": false,
|
|
235
|
+
"selected": true
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"name": "cityLayer",
|
|
239
|
+
"baseLayer": false,
|
|
240
|
+
"selected": false
|
|
241
|
+
}
|
|
242
|
+
]
|
|
243
|
+
}
|
|
244
|
+
],
|
|
245
|
+
"layers": [
|
|
246
|
+
{
|
|
247
|
+
"name": "base",
|
|
248
|
+
"type": "tilelayer",
|
|
249
|
+
"label": "OpenStreetMap",
|
|
250
|
+
"url": "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"name": "streetLayer",
|
|
254
|
+
"type": "wms",
|
|
255
|
+
"label": "Streets",
|
|
256
|
+
"list": "Street",
|
|
257
|
+
"layers": [
|
|
258
|
+
"Street"
|
|
259
|
+
],
|
|
260
|
+
"availableStyles": [
|
|
261
|
+
"streetLayerStyle"
|
|
262
|
+
],
|
|
263
|
+
"defaultStyles": "streetLayerStyle"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"name": "pointsOfInterestLayer",
|
|
267
|
+
"type": "geojson",
|
|
268
|
+
"label": "Points of Interest",
|
|
269
|
+
"entityName": "PointOfInterest",
|
|
270
|
+
"editable": true,
|
|
271
|
+
"defaultStyle": "pointsOfInterestLayerStyle",
|
|
272
|
+
"availableStyles": [
|
|
273
|
+
"pointsOfInterestLayerStyle"
|
|
274
|
+
]
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"name": "cityLayer",
|
|
278
|
+
"type": "wms",
|
|
279
|
+
"label": "City",
|
|
280
|
+
"list": "City",
|
|
281
|
+
"layers": [
|
|
282
|
+
"City"
|
|
283
|
+
],
|
|
284
|
+
"availableStyles": [
|
|
285
|
+
"cityLayerStyle"
|
|
286
|
+
],
|
|
287
|
+
"defaultStyles": "cityLayerStyle"
|
|
288
|
+
}
|
|
289
|
+
],
|
|
290
|
+
"styles": [
|
|
291
|
+
{
|
|
292
|
+
"name": "streetLayerStyle",
|
|
293
|
+
"type": "WMSLayerSLDStyle",
|
|
294
|
+
"cached": true,
|
|
295
|
+
"sldPath": "/home/acortinas/sld/streets-sld.xml",
|
|
296
|
+
"sld": "@include:/home/acortinas/sld/streets-sld.xml"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"name": "pointsOfInterestLayerStyle",
|
|
300
|
+
"type": "GeoJSONLayerStyle",
|
|
301
|
+
"fillColor": "#243452",
|
|
302
|
+
"strokeColor": "#eeeee3",
|
|
303
|
+
"fillOpacity": "0.8",
|
|
304
|
+
"strokeOpacity": "0.9"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"name": "cityLayerStyle",
|
|
308
|
+
"type": "WMSLayerSLDStyle",
|
|
309
|
+
"cached": true,
|
|
310
|
+
"sldPath": "/home/acortinas/sld/city-sld.xml",
|
|
311
|
+
"sld": "@include:/home/acortinas/sld/city-sld.xml"
|
|
312
|
+
}
|
|
313
|
+
]
|
|
314
|
+
}
|
|
315
|
+
}
|