@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.
Files changed (42) hide show
  1. package/.claude/settings.local.json +7 -0
  2. package/grammar/.antlr/GISGrammar.interp +182 -0
  3. package/grammar/.antlr/GISGrammar.tokens +73 -0
  4. package/grammar/.antlr/GISGrammarBaseListener.java +579 -0
  5. package/grammar/.antlr/GISGrammarLexer.interp +241 -0
  6. package/grammar/.antlr/GISGrammarLexer.java +686 -0
  7. package/grammar/.antlr/GISGrammarLexer.tokens +73 -0
  8. package/grammar/.antlr/GISGrammarListener.java +459 -0
  9. package/grammar/.antlr/GISGrammarParser.java +2948 -0
  10. package/grammar/GISGrammar.g4 +313 -313
  11. package/package.json +1 -1
  12. package/parse-file.js +73 -0
  13. package/src/GISVisitorHelper.js +93 -93
  14. package/src/cli.js +34 -34
  15. package/src/error/ErrorListener.js +26 -26
  16. package/src/error/SyntaxGenericError.js +18 -18
  17. package/src/index.js +4 -1
  18. package/src/lib/GISGrammar.interp +181 -181
  19. package/src/lib/GISGrammarLexer.interp +241 -241
  20. package/src/lib/GISGrammarLexer.js +202 -202
  21. package/src/lib/GISGrammarListener.js +1 -1
  22. package/src/lib/GISGrammarParser.js +1 -1
  23. package/src/lib/GISGrammarVisitor.js +1 -1
  24. package/src/spl/GIS.js +234 -234
  25. package/src/spl/GeoJSONLayer.js +21 -21
  26. package/src/spl/GeoJSONLayerStyle.js +14 -14
  27. package/src/spl/TileLayer.js +16 -16
  28. package/src/spl/WMSLayer.js +30 -30
  29. package/src/spl/WMSStyle.js +13 -13
  30. package/src/spl/WMSStyleCustom.js +22 -22
  31. package/src/store.js +74 -74
  32. package/test-examples.js +120 -0
  33. package/test-output/agriculture.json +429 -0
  34. package/test-output/basic.json +315 -0
  35. package/test-output/complete.json +1259 -0
  36. package/test-output/emergency.json +755 -0
  37. package/test-output/environmental.json +591 -0
  38. package/test-output/gis.json +254 -0
  39. package/test-output/tourism.json +704 -0
  40. package/test-output/transportation.json +488 -0
  41. package/test-output/utilities.json +620 -0
  42. package/test-output/wms.json +110 -0
@@ -0,0 +1,110 @@
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": "HelloWorld"
58
+ },
59
+ "data": {
60
+ "dataModel": {
61
+ "entities": [],
62
+ "enums": []
63
+ }
64
+ },
65
+ "mapViewer": {
66
+ "maps": [],
67
+ "layers": [
68
+ {
69
+ "name": "base",
70
+ "type": "tilelayer",
71
+ "label": "OpenStreetMap",
72
+ "url": "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
73
+ },
74
+ {
75
+ "name": "red_de_control_quimico_de_vigilancia_general",
76
+ "type": "wms",
77
+ "label": "red_de_control_quimico_de_vigilancia_general",
78
+ "list": null,
79
+ "layers": [
80
+ "EF.EnvironmentalMonitoringNetworks"
81
+ ],
82
+ "availableStyles": [
83
+ "Agua_casub_quimico_vigilancia"
84
+ ],
85
+ "defaultStyles": "Agua_casub_quimico_vigilancia",
86
+ "external": true,
87
+ "url": "https://wms.mapama.gob.es/sig/Agua/CAS_Vigilancia",
88
+ "layerName": "EF.EnvironmentalMonitoringNetworks",
89
+ "format": "image/png",
90
+ "crs": "CRS:84",
91
+ "bbox": {
92
+ "crs": "CRS:84",
93
+ "minx": -10.46691747950002,
94
+ "miny": 34.4328529235,
95
+ "maxx": 5.62803474250002,
96
+ "maxy": 44.5738228055
97
+ },
98
+ "version": "1.3.0",
99
+ "styles": [
100
+ "Agua_casub_quimico_vigilancia"
101
+ ],
102
+ "queryable": true,
103
+ "attribution": null,
104
+ "visible": true,
105
+ "opacity": 1
106
+ }
107
+ ],
108
+ "styles": []
109
+ }
110
+ }