@lbdudc/gp-gis-dsl 0.3.3 → 0.3.4

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.
@@ -1,22 +1,24 @@
1
- export default class WMSStyleCustom {
2
- constructor(
3
- id,
4
- geometryType,
5
- fillColor,
6
- strokeColor,
7
- fillOpacity,
8
- strokeOpacity,
9
- ) {
10
- this.name = id;
11
- this.type = "WMSLayerStyle";
12
- this.geometryType = geometryType;
13
- this.fillColor = fillColor;
14
- this.strokeColor = strokeColor;
15
- this.fillOpacity = fillOpacity;
16
- this.strokeOpacity = strokeOpacity;
17
- }
18
-
19
- getId() {
20
- return this.name;
21
- }
22
- }
1
+ export default class WMSStyleCustom {
2
+ constructor(
3
+ id,
4
+ geometryType,
5
+ fillColor,
6
+ strokeColor,
7
+ fillOpacity,
8
+ strokeOpacity,
9
+ strokeWidth,
10
+ ) {
11
+ this.name = id;
12
+ this.type = "WMSLayerStyle";
13
+ this.geometryType = geometryType;
14
+ this.fillColor = fillColor;
15
+ this.strokeColor = strokeColor;
16
+ this.fillOpacity = fillOpacity;
17
+ this.strokeOpacity = strokeOpacity;
18
+ this.strokeWidth = strokeWidth;
19
+ }
20
+
21
+ getId() {
22
+ return this.name;
23
+ }
24
+ }
@@ -398,7 +398,8 @@
398
398
  "fillColor": "#90EE90",
399
399
  "strokeColor": "#228B22",
400
400
  "fillOpacity": 0.6,
401
- "strokeOpacity": 1
401
+ "strokeOpacity": 1,
402
+ "strokeWidth": null
402
403
  },
403
404
  {
404
405
  "name": "parcelLayerStyle",
@@ -54,13 +54,13 @@
54
54
  "D_C_Nginx"
55
55
  ],
56
56
  "basicData": {
57
- "name": "city_example"
57
+ "name": "water_supply_marine"
58
58
  },
59
59
  "data": {
60
60
  "dataModel": {
61
61
  "entities": [
62
62
  {
63
- "name": "City",
63
+ "name": "River",
64
64
  "properties": [
65
65
  {
66
66
  "name": "id",
@@ -71,33 +71,28 @@
71
71
  },
72
72
  {
73
73
  "name": "name",
74
- "class": "String"
74
+ "class": "String",
75
+ "required": true
75
76
  },
76
77
  {
77
- "name": "extension",
78
- "class": "MultiPolygon"
78
+ "name": "river_code",
79
+ "class": "String",
80
+ "required": true,
81
+ "unique": true
79
82
  },
80
83
  {
81
- "name": "points",
82
- "class": "PointOfInterest",
83
- "owner": false,
84
- "bidirectional": "city",
85
- "multiple": true,
86
- "required": false
84
+ "name": "length",
85
+ "class": "Double"
87
86
  },
88
87
  {
89
- "name": "streets",
90
- "class": "Street",
91
- "owner": false,
92
- "bidirectional": "city",
93
- "multiple": true,
94
- "required": false
88
+ "name": "geometry",
89
+ "class": "LineString"
95
90
  }
96
91
  ],
97
- "displayString": "$name"
92
+ "displayString": "$id"
98
93
  },
99
94
  {
100
- "name": "Street",
95
+ "name": "Sea",
101
96
  "properties": [
102
97
  {
103
98
  "name": "id",
@@ -108,29 +103,26 @@
108
103
  },
109
104
  {
110
105
  "name": "name",
111
- "class": "String"
106
+ "class": "String",
107
+ "required": true
112
108
  },
113
109
  {
114
- "name": "type",
110
+ "name": "water_type",
115
111
  "class": "String"
116
112
  },
117
113
  {
118
- "name": "path",
119
- "class": "MultiLineString"
114
+ "name": "area",
115
+ "class": "Double"
120
116
  },
121
117
  {
122
- "name": "city",
123
- "class": "City",
124
- "owner": true,
125
- "bidirectional": "streets",
126
- "multiple": false,
127
- "required": true
118
+ "name": "geometry",
119
+ "class": "Polygon"
128
120
  }
129
121
  ],
130
- "displayString": "$name"
122
+ "displayString": "$id"
131
123
  },
132
124
  {
133
- "name": "PointOfInterest",
125
+ "name": "MaritimeBuoy",
134
126
  "properties": [
135
127
  {
136
128
  "name": "id",
@@ -140,56 +132,29 @@
140
132
  "unique": true
141
133
  },
142
134
  {
143
- "name": "name",
144
- "class": "String"
145
- },
146
- {
147
- "name": "location",
148
- "class": "Point"
135
+ "name": "buoy_id",
136
+ "class": "String",
137
+ "required": true,
138
+ "unique": true
149
139
  },
150
140
  {
151
- "name": "city",
152
- "class": "City",
153
- "owner": true,
154
- "bidirectional": "points",
155
- "multiple": false,
156
- "required": true
141
+ "name": "name",
142
+ "class": "String"
157
143
  },
158
144
  {
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
145
+ "name": "buoy_type",
146
+ "class": "String"
178
147
  },
179
148
  {
180
- "name": "name",
149
+ "name": "status",
181
150
  "class": "String"
182
151
  },
183
152
  {
184
- "name": "pointofinterests",
185
- "class": "PointOfInterest",
186
- "owner": false,
187
- "bidirectional": "type",
188
- "multiple": true,
189
- "required": false
153
+ "name": "geometry",
154
+ "class": "Point"
190
155
  }
191
156
  ],
192
- "displayString": "$name"
157
+ "displayString": "$id"
193
158
  }
194
159
  ],
195
160
  "enums": []
@@ -198,117 +163,110 @@
198
163
  "mapViewer": {
199
164
  "maps": [
200
165
  {
201
- "name": "streets",
202
- "label": "Streets",
166
+ "name": "main",
167
+ "label": "Water Supply Marine Map",
203
168
  "sortable": false,
204
169
  "layers": [
205
170
  {
206
- "name": "base",
171
+ "name": "osm",
207
172
  "baseLayer": true,
208
173
  "selected": true
209
174
  },
210
175
  {
211
- "name": "streetLayer",
176
+ "name": "river_layer",
212
177
  "baseLayer": false,
213
178
  "selected": true
214
179
  },
215
180
  {
216
- "name": "cityLayer",
181
+ "name": "sea_layer",
217
182
  "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
183
  "selected": true
231
184
  },
232
185
  {
233
- "name": "pointsOfInterestLayer",
186
+ "name": "buoy_layer",
234
187
  "baseLayer": false,
235
188
  "selected": true
236
- },
237
- {
238
- "name": "cityLayer",
239
- "baseLayer": false,
240
- "selected": false
241
189
  }
242
190
  ]
243
191
  }
244
192
  ],
245
193
  "layers": [
246
194
  {
247
- "name": "base",
195
+ "name": "osm",
248
196
  "type": "tilelayer",
249
197
  "label": "OpenStreetMap",
250
198
  "url": "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
251
199
  },
252
200
  {
253
- "name": "streetLayer",
201
+ "name": "river_layer",
254
202
  "type": "wms",
255
- "label": "Streets",
256
- "list": "Street",
203
+ "label": "Rivers",
204
+ "list": "River",
257
205
  "layers": [
258
- "Street"
206
+ "River"
259
207
  ],
260
208
  "availableStyles": [
261
- "streetLayerStyle"
209
+ "river_style"
262
210
  ],
263
- "defaultStyles": "streetLayerStyle"
211
+ "defaultStyles": "river_style"
264
212
  },
265
213
  {
266
- "name": "pointsOfInterestLayer",
267
- "type": "geojson",
268
- "label": "Points of Interest",
269
- "entityName": "PointOfInterest",
270
- "editable": true,
271
- "defaultStyle": "pointsOfInterestLayerStyle",
214
+ "name": "sea_layer",
215
+ "type": "wms",
216
+ "label": "Seas",
217
+ "list": "Sea",
218
+ "layers": [
219
+ "Sea"
220
+ ],
272
221
  "availableStyles": [
273
- "pointsOfInterestLayerStyle"
274
- ]
222
+ "sea_style"
223
+ ],
224
+ "defaultStyles": "sea_style"
275
225
  },
276
226
  {
277
- "name": "cityLayer",
227
+ "name": "buoy_layer",
278
228
  "type": "wms",
279
- "label": "City",
280
- "list": "City",
229
+ "label": "Maritime Buoys",
230
+ "list": "MaritimeBuoy",
281
231
  "layers": [
282
- "City"
232
+ "MaritimeBuoy"
283
233
  ],
284
234
  "availableStyles": [
285
- "cityLayerStyle"
235
+ "buoy_style"
286
236
  ],
287
- "defaultStyles": "cityLayerStyle"
237
+ "defaultStyles": "buoy_style"
288
238
  }
289
239
  ],
290
240
  "styles": [
291
241
  {
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"
242
+ "name": "river_style",
243
+ "type": "WMSLayerStyle",
244
+ "geometryType": "LINESTRING",
245
+ "fillColor": null,
246
+ "strokeColor": "#0066cc",
247
+ "fillOpacity": null,
248
+ "strokeOpacity": 1,
249
+ "strokeWidth": 2
297
250
  },
298
251
  {
299
- "name": "pointsOfInterestLayerStyle",
300
- "type": "GeoJSONLayerStyle",
301
- "fillColor": "#243452",
302
- "strokeColor": "#eeeee3",
303
- "fillOpacity": "0.8",
304
- "strokeOpacity": "0.9"
252
+ "name": "sea_style",
253
+ "type": "WMSLayerStyle",
254
+ "geometryType": "POLYGON",
255
+ "fillColor": "#3399ff",
256
+ "strokeColor": "#0066cc",
257
+ "fillOpacity": 0.4,
258
+ "strokeOpacity": 0.8,
259
+ "strokeWidth": null
305
260
  },
306
261
  {
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"
262
+ "name": "buoy_style",
263
+ "type": "WMSLayerStyle",
264
+ "geometryType": "POINT",
265
+ "fillColor": "#ff6600",
266
+ "strokeColor": "#cc3300",
267
+ "fillOpacity": 0.9,
268
+ "strokeOpacity": 1,
269
+ "strokeWidth": null
312
270
  }
313
271
  ]
314
272
  }
@@ -1166,7 +1166,8 @@
1166
1166
  "fillColor": "#243452",
1167
1167
  "strokeColor": "#eeeee3",
1168
1168
  "fillOpacity": 0.8,
1169
- "strokeOpacity": 0.9
1169
+ "strokeOpacity": 0.9,
1170
+ "strokeWidth": null
1170
1171
  },
1171
1172
  {
1172
1173
  "name": "populationEntityLayerStyle",
@@ -691,7 +691,8 @@
691
691
  "fillColor": "#00FF00",
692
692
  "strokeColor": "#008000",
693
693
  "fillOpacity": 0.8,
694
- "strokeOpacity": 1
694
+ "strokeOpacity": 1,
695
+ "strokeWidth": null
695
696
  },
696
697
  {
697
698
  "name": "hazardZoneStyle",
@@ -700,7 +701,8 @@
700
701
  "fillColor": "#FF0000",
701
702
  "strokeColor": "#8B0000",
702
703
  "fillOpacity": 0.3,
703
- "strokeOpacity": 0.8
704
+ "strokeOpacity": 0.8,
705
+ "strokeWidth": null
704
706
  },
705
707
  {
706
708
  "name": "fireStationLayerStyle",
@@ -542,7 +542,8 @@
542
542
  "fillColor": "#228B22",
543
543
  "strokeColor": "#006400",
544
544
  "fillOpacity": 0.4,
545
- "strokeOpacity": 0.9
545
+ "strokeOpacity": 0.9,
546
+ "strokeWidth": null
546
547
  },
547
548
  {
548
549
  "name": "waterBodyStyle",
@@ -551,7 +552,8 @@
551
552
  "fillColor": "#1E90FF",
552
553
  "strokeColor": "#00008B",
553
554
  "fillOpacity": 0.5,
554
- "strokeOpacity": 0.8
555
+ "strokeOpacity": 0.8,
556
+ "strokeWidth": null
555
557
  },
556
558
  {
557
559
  "name": "forestStyle",
@@ -560,7 +562,8 @@
560
562
  "fillColor": "#2E8B57",
561
563
  "strokeColor": "#1B4D2E",
562
564
  "fillOpacity": 0.6,
563
- "strokeOpacity": 0.9
565
+ "strokeOpacity": 0.9,
566
+ "strokeWidth": null
564
567
  },
565
568
  {
566
569
  "name": "monitoringStationLayerStyle",
@@ -54,18 +54,13 @@
54
54
  "D_C_Nginx"
55
55
  ],
56
56
  "basicData": {
57
- "name": "maritime_coruña",
58
- "extra": {
59
- "geoserver_user": "admin",
60
- "geoserver_password": "geoserver",
61
- "geoserver_url_wms": "http://localhost:8080/geoserver"
62
- }
57
+ "name": "water_supply"
63
58
  },
64
59
  "data": {
65
60
  "dataModel": {
66
61
  "entities": [
67
62
  {
68
- "name": "Buoy",
63
+ "name": "River",
69
64
  "properties": [
70
65
  {
71
66
  "name": "id",
@@ -75,24 +70,23 @@
75
70
  "unique": true
76
71
  },
77
72
  {
78
- "name": "buoy_id",
73
+ "name": "name",
79
74
  "class": "String",
80
- "required": true,
81
- "unique": true
75
+ "required": true
82
76
  },
83
77
  {
84
- "name": "name",
85
- "class": "String"
78
+ "name": "length",
79
+ "class": "Long"
86
80
  },
87
81
  {
88
82
  "name": "geometry",
89
- "class": "Point"
83
+ "class": "MultiLineString"
90
84
  }
91
85
  ],
92
86
  "displayString": "$id"
93
87
  },
94
88
  {
95
- "name": "River",
89
+ "name": "Sea",
96
90
  "properties": [
97
91
  {
98
92
  "name": "id",
@@ -107,18 +101,18 @@
107
101
  "required": true
108
102
  },
109
103
  {
110
- "name": "length",
111
- "class": "Double"
104
+ "name": "area",
105
+ "class": "Long"
112
106
  },
113
107
  {
114
108
  "name": "geometry",
115
- "class": "LineString"
109
+ "class": "MultiPolygon"
116
110
  }
117
111
  ],
118
112
  "displayString": "$id"
119
113
  },
120
114
  {
121
- "name": "Municipality",
115
+ "name": "MaritimeBuoy",
122
116
  "properties": [
123
117
  {
124
118
  "name": "id",
@@ -133,12 +127,12 @@
133
127
  "required": true
134
128
  },
135
129
  {
136
- "name": "population",
137
- "class": "Long"
130
+ "name": "location",
131
+ "class": "String"
138
132
  },
139
133
  {
140
134
  "name": "geometry",
141
- "class": "MultiPolygon"
135
+ "class": "Point"
142
136
  }
143
137
  ],
144
138
  "displayString": "$id"
@@ -150,8 +144,8 @@
150
144
  "mapViewer": {
151
145
  "maps": [
152
146
  {
153
- "name": "maritime_view",
154
- "label": "Maritime Map of Coruña",
147
+ "name": "main",
148
+ "label": "Water Supply Map",
155
149
  "sortable": false,
156
150
  "layers": [
157
151
  {
@@ -160,17 +154,17 @@
160
154
  "selected": true
161
155
  },
162
156
  {
163
- "name": "rivers",
157
+ "name": "river_layer",
164
158
  "baseLayer": false,
165
159
  "selected": true
166
160
  },
167
161
  {
168
- "name": "municipalities",
162
+ "name": "sea_layer",
169
163
  "baseLayer": false,
170
164
  "selected": true
171
165
  },
172
166
  {
173
- "name": "buoys",
167
+ "name": "buoy_layer",
174
168
  "baseLayer": false,
175
169
  "selected": true
176
170
  }
@@ -185,7 +179,7 @@
185
179
  "url": "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
186
180
  },
187
181
  {
188
- "name": "rivers",
182
+ "name": "river_layer",
189
183
  "type": "wms",
190
184
  "label": "Rivers",
191
185
  "list": "River",
@@ -198,28 +192,30 @@
198
192
  "defaultStyles": "river_style"
199
193
  },
200
194
  {
201
- "name": "municipalities",
195
+ "name": "sea_layer",
202
196
  "type": "wms",
203
- "label": "Municipalities",
204
- "list": "Municipality",
197
+ "label": "Seas",
198
+ "list": "Sea",
205
199
  "layers": [
206
- "Municipality"
200
+ "Sea"
207
201
  ],
208
202
  "availableStyles": [
209
- "municipality_style"
203
+ "sea_style"
210
204
  ],
211
- "defaultStyles": "municipality_style"
205
+ "defaultStyles": "sea_style"
212
206
  },
213
207
  {
214
- "name": "buoys",
215
- "type": "geojson",
216
- "label": "Buoy Locations",
217
- "entityName": "Buoy",
218
- "editable": true,
219
- "defaultStyle": "buoysStyle",
208
+ "name": "buoy_layer",
209
+ "type": "wms",
210
+ "label": "Maritime Buoys",
211
+ "list": "MaritimeBuoy",
212
+ "layers": [
213
+ "MaritimeBuoy"
214
+ ],
220
215
  "availableStyles": [
221
- "buoysStyle"
222
- ]
216
+ "buoy_style"
217
+ ],
218
+ "defaultStyles": "buoy_style"
223
219
  }
224
220
  ],
225
221
  "styles": [
@@ -228,26 +224,30 @@
228
224
  "type": "WMSLayerStyle",
229
225
  "geometryType": "LINESTRING",
230
226
  "fillColor": null,
231
- "strokeColor": "#0000FF",
227
+ "strokeColor": "#0066cc",
232
228
  "fillOpacity": null,
233
- "strokeOpacity": null
229
+ "strokeOpacity": null,
230
+ "strokeWidth": null
234
231
  },
235
232
  {
236
- "name": "municipality_style",
233
+ "name": "sea_style",
237
234
  "type": "WMSLayerStyle",
238
235
  "geometryType": "POLYGON",
239
- "fillColor": "#CCFFCC",
240
- "strokeColor": "#669966",
241
- "fillOpacity": 0.3,
242
- "strokeOpacity": null
236
+ "fillColor": "#0099ff",
237
+ "strokeColor": "#0066cc",
238
+ "fillOpacity": 0.5,
239
+ "strokeOpacity": 1,
240
+ "strokeWidth": null
243
241
  },
244
242
  {
245
- "name": "buoysStyle",
246
- "type": "GeoJSONLayerStyle",
247
- "fillColor": "#0000FF",
248
- "strokeColor": "#0000FF",
249
- "fillOpacity": "1.0",
250
- "strokeOpacity": "0.5"
243
+ "name": "buoy_style",
244
+ "type": "WMSLayerStyle",
245
+ "geometryType": "POINT",
246
+ "fillColor": "#ff0000",
247
+ "strokeColor": "#ff0000",
248
+ "fillOpacity": 1,
249
+ "strokeOpacity": 1,
250
+ "strokeWidth": null
251
251
  }
252
252
  ]
253
253
  }