@jupytergis/schema 0.14.1 → 0.16.0-alpha.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/lib/_interface/forms.json +7834 -417
- package/lib/_interface/processing/clipRasterByExtent.d.ts +39 -0
- package/lib/_interface/processing/clipRasterByVector.d.ts +32 -0
- package/lib/_interface/processing/clipVectorByMaskLayer.d.ts +28 -0
- package/lib/_interface/processing/rasterize.d.ts +42 -0
- package/lib/_interface/project/jgis.d.ts +21 -4
- package/lib/_interface/project/layers/geoTiffLayer.d.ts +351 -0
- package/lib/_interface/project/layers/heatmapLayer.d.ts +8 -1
- package/lib/_interface/project/layers/openeoTileLayer.d.ts +20 -0
- package/lib/_interface/project/layers/storySegmentLayer.d.ts +6 -0
- package/lib/_interface/project/layers/vectorLayer.d.ts +615 -5
- package/lib/_interface/project/layers/vectorTileLayer.d.ts +582 -2
- package/lib/_interface/project/sources/geoJsonSource.d.ts +8 -0
- package/lib/_interface/project/sources/geoPackageRasterSource.d.ts +36 -0
- package/lib/_interface/project/sources/geoPackageVectorSource.d.ts +28 -0
- package/lib/_interface/project/sources/geoParquetSource.d.ts +8 -0
- package/lib/_interface/project/sources/geoTiffSource.d.ts +8 -0
- package/lib/_interface/project/sources/imageSource.d.ts +8 -0
- package/lib/_interface/project/sources/openeoTileSource.d.ts +26 -0
- package/lib/_interface/project/sources/rasterDemSource.d.ts +8 -0
- package/lib/_interface/project/sources/rasterSource.d.ts +8 -0
- package/lib/_interface/project/sources/shapefileSource.d.ts +8 -0
- package/lib/_interface/project/sources/vectorTileSource.d.ts +8 -0
- package/lib/_interface/project/sources/videoSource.d.ts +8 -0
- package/lib/_interface/project/sources/wmsTileSource.d.ts +40 -0
- package/lib/_interface/project/symbology.d.ts +305 -0
- package/lib/_interface/version.d.ts +1 -1
- package/lib/_interface/version.js +1 -1
- package/lib/doc.d.ts +9 -2
- package/lib/doc.js +49 -5
- package/lib/grammar/grammarConversions.d.ts +50 -0
- package/lib/grammar/grammarConversions.js +137 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +2 -0
- package/lib/interfaces.d.ts +87 -19
- package/lib/interfaces.js +10 -1
- package/lib/migrations/index.d.ts +16 -0
- package/lib/migrations/index.js +52 -0
- package/lib/migrations/v0_5_to_v0_6.d.ts +11 -0
- package/lib/migrations/v0_5_to_v0_6.js +154 -0
- package/lib/model.d.ts +49 -13
- package/lib/model.js +214 -23
- package/lib/processing/ProcessingMerge.d.ts +4 -0
- package/lib/processing/ProcessingMerge.js +4 -0
- package/lib/processing/_generated/exportProcessingSchema.d.ts +7 -3
- package/lib/processing/_generated/exportProcessingSchema.js +7 -3
- package/lib/processing/_generated/processingType.d.ts +1 -1
- package/lib/processing/_generated/processingType.js +7 -3
- package/lib/processing/_generated/processing_merge.json +74 -19
- package/lib/schema/processing/clipRasterByExtent.json +39 -0
- package/lib/schema/processing/clipRasterByVector.json +33 -0
- package/lib/schema/processing/clipVectorByMaskLayer.json +27 -0
- package/lib/schema/processing/rasterize.json +45 -0
- package/lib/schema/project/jgis.json +35 -5
- package/lib/schema/project/layers/{webGlLayer.json → geoTiffLayer.json} +9 -3
- package/lib/schema/project/layers/heatmapLayer.json +7 -1
- package/lib/schema/project/layers/openeoTileLayer.json +21 -0
- package/lib/schema/project/layers/storySegmentLayer.json +14 -3
- package/lib/schema/project/layers/vectorLayer.json +93 -14
- package/lib/schema/project/layers/vectorTileLayer.json +34 -10
- package/lib/schema/project/sources/geoJsonSource.json +13 -0
- package/lib/schema/project/sources/geoPackageRasterSource.json +45 -0
- package/lib/schema/project/sources/geoPackageVectorSource.json +29 -0
- package/lib/schema/project/sources/geoParquetSource.json +13 -0
- package/lib/schema/project/sources/geoTiffSource.json +13 -0
- package/lib/schema/project/sources/imageSource.json +13 -0
- package/lib/schema/project/sources/openeoTileSource.json +23 -0
- package/lib/schema/project/sources/rasterDemSource.json +13 -0
- package/lib/schema/project/sources/rasterSource.json +13 -0
- package/lib/schema/project/sources/shapefileSource.json +13 -0
- package/lib/schema/project/sources/vectorTileSource.json +13 -0
- package/lib/schema/project/sources/videoSource.json +13 -0
- package/lib/schema/project/sources/wmsTileSource.json +48 -0
- package/lib/schema/project/symbology.json +418 -0
- package/lib/types.d.ts +16 -1
- package/lib/types.js +8 -1
- package/package.json +3 -1
- package/lib/_interface/project/layers/webGlLayer.d.ts +0 -39
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"description": "ClipRasterByVector",
|
|
4
|
+
"title": "IClipRasterByVector",
|
|
5
|
+
"required": ["inputLayer", "clipLayer"],
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"inputLayer": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "The raster layer to clip."
|
|
11
|
+
},
|
|
12
|
+
"clipLayer": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "The vector layer to use as the cutline boundary."
|
|
15
|
+
},
|
|
16
|
+
"cropToCutline": {
|
|
17
|
+
"type": "boolean",
|
|
18
|
+
"title": "Crop to cutline extent",
|
|
19
|
+
"description": "Shrink the output extent to the cutline's bounding box. When off, the original raster extent is preserved and pixels outside the cutline are set to nodata.",
|
|
20
|
+
"default": true
|
|
21
|
+
},
|
|
22
|
+
"outputFileName": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"description": "Output file name for the clipped raster.",
|
|
25
|
+
"default": "clipped.tif"
|
|
26
|
+
},
|
|
27
|
+
"embedOutputLayer": {
|
|
28
|
+
"type": "boolean",
|
|
29
|
+
"title": "Embed output clipped raster in jGIS file",
|
|
30
|
+
"default": false
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"description": "ClipVectorByMaskLayer",
|
|
4
|
+
"title": "IClipVectorByMaskLayer",
|
|
5
|
+
"required": ["inputLayer", "clipLayer"],
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"inputLayer": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "The input layer to clip."
|
|
11
|
+
},
|
|
12
|
+
"clipLayer": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "The layer to use as the clip boundary."
|
|
15
|
+
},
|
|
16
|
+
"outputLayerName": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"title": "Output Layer Name",
|
|
19
|
+
"description": "Name for the resulting clipped layer."
|
|
20
|
+
},
|
|
21
|
+
"embedOutputLayer": {
|
|
22
|
+
"type": "boolean",
|
|
23
|
+
"title": "Embed output clipped layer in file",
|
|
24
|
+
"default": true
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"description": "Rasterize",
|
|
4
|
+
"title": "IRasterize",
|
|
5
|
+
"required": ["inputLayer", "pixelSize", "outputFileName"],
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"inputLayer": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "The input vector layer to rasterize."
|
|
11
|
+
},
|
|
12
|
+
"pixelSize": {
|
|
13
|
+
"type": "number",
|
|
14
|
+
"default": 0.1,
|
|
15
|
+
"exclusiveMinimum": 0,
|
|
16
|
+
"description": "Output raster pixel size (in projection units). Must be greater than 0."
|
|
17
|
+
},
|
|
18
|
+
"attributeField": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"default": "",
|
|
21
|
+
"description": "Optional feature attribute used to burn values. Leave empty to use a fixed burn value."
|
|
22
|
+
},
|
|
23
|
+
"burnValue": {
|
|
24
|
+
"type": "number",
|
|
25
|
+
"default": 1,
|
|
26
|
+
"description": "Fixed value burned into raster cells when no attribute field is provided."
|
|
27
|
+
},
|
|
28
|
+
"noDataValue": {
|
|
29
|
+
"type": "number",
|
|
30
|
+
"default": 0,
|
|
31
|
+
"description": "Value assigned to cells not covered by any feature."
|
|
32
|
+
},
|
|
33
|
+
"outputFileName": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"default": "rasterized.tif",
|
|
36
|
+
"description": "Output GeoTIFF filename, saved next to the project file."
|
|
37
|
+
},
|
|
38
|
+
"embedOutputLayer": {
|
|
39
|
+
"type": "boolean",
|
|
40
|
+
"title": "Embed output GeoTIFF in file",
|
|
41
|
+
"default": false,
|
|
42
|
+
"description": "When enabled, the GeoTIFF is base64-embedded inside the .jGIS document instead of being written to disk."
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"properties": {
|
|
7
7
|
"schemaVersion": {
|
|
8
8
|
"type": "string",
|
|
9
|
-
"default": "0.
|
|
9
|
+
"default": "0.6.0"
|
|
10
10
|
},
|
|
11
11
|
"layers": {
|
|
12
12
|
"$ref": "#/definitions/jGISLayers"
|
|
@@ -23,6 +23,9 @@
|
|
|
23
23
|
"stories": {
|
|
24
24
|
"$ref": "#/definitions/jGISStoryMap"
|
|
25
25
|
},
|
|
26
|
+
"viewState": {
|
|
27
|
+
"$ref": "#/definitions/jGISViewState"
|
|
28
|
+
},
|
|
26
29
|
"metadata": {
|
|
27
30
|
"type": "object",
|
|
28
31
|
"patternProperties": {
|
|
@@ -41,17 +44,19 @@
|
|
|
41
44
|
"VectorLayer",
|
|
42
45
|
"VectorTileLayer",
|
|
43
46
|
"HillshadeLayer",
|
|
44
|
-
"
|
|
47
|
+
"GeoTiffLayer",
|
|
45
48
|
"ImageLayer",
|
|
46
49
|
"HeatmapLayer",
|
|
47
50
|
"StacLayer",
|
|
48
|
-
"StorySegmentLayer"
|
|
51
|
+
"StorySegmentLayer",
|
|
52
|
+
"OpenEOTileLayer"
|
|
49
53
|
]
|
|
50
54
|
},
|
|
51
55
|
"sourceType": {
|
|
52
56
|
"type": "string",
|
|
53
57
|
"enum": [
|
|
54
58
|
"RasterSource",
|
|
59
|
+
"WmsTileSource",
|
|
55
60
|
"VectorTileSource",
|
|
56
61
|
"GeoJSONSource",
|
|
57
62
|
"RasterDemSource",
|
|
@@ -59,8 +64,11 @@
|
|
|
59
64
|
"ImageSource",
|
|
60
65
|
"ShapefileSource",
|
|
61
66
|
"GeoTiffSource",
|
|
67
|
+
"GeoPackageVectorSource",
|
|
68
|
+
"GeoPackageRasterSource",
|
|
62
69
|
"GeoParquetSource",
|
|
63
|
-
"MarkerSource"
|
|
70
|
+
"MarkerSource",
|
|
71
|
+
"OpenEOTileSource"
|
|
64
72
|
]
|
|
65
73
|
},
|
|
66
74
|
"jGISLayer": {
|
|
@@ -153,7 +161,7 @@
|
|
|
153
161
|
"storyType": {
|
|
154
162
|
"type": "string",
|
|
155
163
|
"title": "Story Type",
|
|
156
|
-
"enum": ["guided", "unguided"],
|
|
164
|
+
"enum": ["guided", "unguided", "Vertical Scroll"],
|
|
157
165
|
"description": "The type of story map"
|
|
158
166
|
},
|
|
159
167
|
"storySegments": {
|
|
@@ -206,6 +214,28 @@
|
|
|
206
214
|
"$ref": "#/definitions/jGISLayerItem"
|
|
207
215
|
}
|
|
208
216
|
},
|
|
217
|
+
"jGISViewState": {
|
|
218
|
+
"title": "IJGISViewState",
|
|
219
|
+
"type": "object",
|
|
220
|
+
"default": {},
|
|
221
|
+
"additionalProperties": {
|
|
222
|
+
"type": "object",
|
|
223
|
+
"additionalProperties": false,
|
|
224
|
+
"properties": {
|
|
225
|
+
"extent": {
|
|
226
|
+
"type": "array",
|
|
227
|
+
"items": { "type": "number" }
|
|
228
|
+
},
|
|
229
|
+
"zoom": {
|
|
230
|
+
"type": "number"
|
|
231
|
+
},
|
|
232
|
+
"projection": {
|
|
233
|
+
"type": "string"
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"required": ["extent"]
|
|
237
|
+
}
|
|
238
|
+
},
|
|
209
239
|
"jGISOptions": {
|
|
210
240
|
"title": "IJGISOptions",
|
|
211
241
|
"type": "object",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "object",
|
|
3
|
-
"description": "
|
|
4
|
-
"title": "
|
|
3
|
+
"description": "GeoTiffLayer",
|
|
4
|
+
"title": "IGeoTiffLayer",
|
|
5
5
|
"required": ["source"],
|
|
6
6
|
"additionalProperties": false,
|
|
7
7
|
"properties": {
|
|
@@ -51,8 +51,14 @@
|
|
|
51
51
|
"symbologyState": {
|
|
52
52
|
"type": "object",
|
|
53
53
|
"description": "The state of the symbology panel options",
|
|
54
|
-
"required": ["renderType"],
|
|
55
54
|
"properties": {
|
|
55
|
+
"layers": {
|
|
56
|
+
"type": "array",
|
|
57
|
+
"description": "Grammar rendering layers.",
|
|
58
|
+
"items": {
|
|
59
|
+
"$ref": "project/symbology.json#/definitions/IGrammarLayer"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
56
62
|
"renderType": {
|
|
57
63
|
"type": "string",
|
|
58
64
|
"default": "Singleband Pseudocolor"
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"color": {
|
|
31
31
|
"type": "array",
|
|
32
|
+
"description": "DEPRECATED. Legacy gradient cache. New files should not set this; symbologyState.gradient is the source of truth. Retained only so that legacy .jGIS files can be migrated on load.",
|
|
32
33
|
"items": {
|
|
33
34
|
"type": "string"
|
|
34
35
|
},
|
|
@@ -36,7 +37,7 @@
|
|
|
36
37
|
},
|
|
37
38
|
"symbologyState": {
|
|
38
39
|
"type": "object",
|
|
39
|
-
"description": "The
|
|
40
|
+
"description": "The symbology configuration. Source of truth for how the heatmap is rendered.",
|
|
40
41
|
"required": ["renderType"],
|
|
41
42
|
"properties": {
|
|
42
43
|
"renderType": {
|
|
@@ -46,6 +47,11 @@
|
|
|
46
47
|
"colorRamp": {
|
|
47
48
|
"type": "string",
|
|
48
49
|
"default": "viridis"
|
|
50
|
+
},
|
|
51
|
+
"gradient": {
|
|
52
|
+
"type": "array",
|
|
53
|
+
"description": "Ordered list of CSS color strings used to build the heatmap gradient.",
|
|
54
|
+
"items": { "type": "string" }
|
|
49
55
|
}
|
|
50
56
|
},
|
|
51
57
|
"default": {}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"description": "OpenEOTileLayer",
|
|
4
|
+
"title": "IOpenEOTileLayer",
|
|
5
|
+
"required": ["source"],
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"source": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "The id of the source"
|
|
11
|
+
},
|
|
12
|
+
"opacity": {
|
|
13
|
+
"type": "number",
|
|
14
|
+
"description": "The opacity of the source",
|
|
15
|
+
"default": 1,
|
|
16
|
+
"multipleOf": 0.1,
|
|
17
|
+
"minimum": 0,
|
|
18
|
+
"maximum": 1
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -16,10 +16,16 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"content": {
|
|
19
|
-
"type": "object",
|
|
20
19
|
"title": "Segment Content",
|
|
21
|
-
"
|
|
20
|
+
"type": "object",
|
|
22
21
|
"properties": {
|
|
22
|
+
"contentMode": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"title": "Content Mode",
|
|
25
|
+
"description": "Display map or markdown content while this segment is active",
|
|
26
|
+
"enum": ["map", "markdown"],
|
|
27
|
+
"default": "map"
|
|
28
|
+
},
|
|
23
29
|
"title": {
|
|
24
30
|
"title": "Segment Title",
|
|
25
31
|
"type": "string",
|
|
@@ -36,7 +42,12 @@
|
|
|
36
42
|
"default": ""
|
|
37
43
|
}
|
|
38
44
|
},
|
|
39
|
-
"
|
|
45
|
+
"required": ["contentMode"],
|
|
46
|
+
"default": {
|
|
47
|
+
"contentMode": "map",
|
|
48
|
+
"title": "",
|
|
49
|
+
"image": ""
|
|
50
|
+
}
|
|
40
51
|
},
|
|
41
52
|
"transition": {
|
|
42
53
|
"type": "object",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"color": {
|
|
13
13
|
"type": "object",
|
|
14
|
-
"description": "
|
|
14
|
+
"description": "DEPRECATED. Legacy OpenLayers FlatStyle cache. New files should not set this; symbologyState is the source of truth. Retained only so that legacy .jGIS files can be migrated on load.",
|
|
15
15
|
"default": {}
|
|
16
16
|
},
|
|
17
17
|
"opacity": {
|
|
@@ -24,17 +24,8 @@
|
|
|
24
24
|
},
|
|
25
25
|
"symbologyState": {
|
|
26
26
|
"type": "object",
|
|
27
|
-
"description": "The
|
|
28
|
-
"required": ["renderType"],
|
|
27
|
+
"description": "The symbology configuration. This is the single source of truth for how the layer is rendered; the OpenLayers style is derived from it on the fly.",
|
|
29
28
|
"properties": {
|
|
30
|
-
"renderType": {
|
|
31
|
-
"type": "string",
|
|
32
|
-
"enum": ["Single Symbol", "Graduated", "Categorized"],
|
|
33
|
-
"default": "Single Symbol"
|
|
34
|
-
},
|
|
35
|
-
"value": {
|
|
36
|
-
"type": "string"
|
|
37
|
-
},
|
|
38
29
|
"method": {
|
|
39
30
|
"type": "string",
|
|
40
31
|
"enum": ["color", "radius"],
|
|
@@ -48,7 +39,7 @@
|
|
|
48
39
|
"type": "number",
|
|
49
40
|
"default": 9.0
|
|
50
41
|
},
|
|
51
|
-
"
|
|
42
|
+
"reverseRamp": {
|
|
52
43
|
"type": "boolean",
|
|
53
44
|
"default": false
|
|
54
45
|
},
|
|
@@ -62,14 +53,102 @@
|
|
|
62
53
|
"pretty",
|
|
63
54
|
"logarithmic"
|
|
64
55
|
]
|
|
56
|
+
},
|
|
57
|
+
"vmin": {
|
|
58
|
+
"type": "number",
|
|
59
|
+
"description": "Minimum value for color mapping"
|
|
60
|
+
},
|
|
61
|
+
"vmax": {
|
|
62
|
+
"type": "number",
|
|
63
|
+
"description": "Maximum value for color mapping"
|
|
64
|
+
},
|
|
65
|
+
"fallbackColor": {
|
|
66
|
+
"type": "array",
|
|
67
|
+
"description": "RGBA fallback color for features with no matching category or outside the gradient range",
|
|
68
|
+
"items": { "type": "number" },
|
|
69
|
+
"minItems": 4,
|
|
70
|
+
"maxItems": 4
|
|
71
|
+
},
|
|
72
|
+
"strokeFollowsFill": {
|
|
73
|
+
"type": "boolean",
|
|
74
|
+
"description": "Whether the stroke color follows the fill color expression",
|
|
75
|
+
"default": false
|
|
76
|
+
},
|
|
77
|
+
"fillColor": {
|
|
78
|
+
"type": "array",
|
|
79
|
+
"description": "Manual RGBA fill color. Used for Single Symbol, and as the base fill for Categorized when no stops are defined.",
|
|
80
|
+
"items": { "type": "number" },
|
|
81
|
+
"minItems": 4,
|
|
82
|
+
"maxItems": 4
|
|
83
|
+
},
|
|
84
|
+
"strokeColor": {
|
|
85
|
+
"type": "array",
|
|
86
|
+
"description": "Manual RGBA stroke color",
|
|
87
|
+
"items": { "type": "number" },
|
|
88
|
+
"minItems": 4,
|
|
89
|
+
"maxItems": 4
|
|
90
|
+
},
|
|
91
|
+
"strokeWidth": {
|
|
92
|
+
"type": "number",
|
|
93
|
+
"description": "Stroke width in pixels",
|
|
94
|
+
"default": 1.25
|
|
95
|
+
},
|
|
96
|
+
"radius": {
|
|
97
|
+
"type": "number",
|
|
98
|
+
"description": "Circle radius in pixels for point geometries (Single Symbol, and the base for Graduated radius)",
|
|
99
|
+
"default": 5
|
|
100
|
+
},
|
|
101
|
+
"joinStyle": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"enum": ["bevel", "round", "miter"],
|
|
104
|
+
"default": "round"
|
|
105
|
+
},
|
|
106
|
+
"capStyle": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"enum": ["butt", "round", "square"],
|
|
109
|
+
"default": "round"
|
|
110
|
+
},
|
|
111
|
+
"geometryType": {
|
|
112
|
+
"type": "string",
|
|
113
|
+
"enum": ["fill", "circle", "line"],
|
|
114
|
+
"description": "The type of geometry."
|
|
115
|
+
},
|
|
116
|
+
"stopsOverride": {
|
|
117
|
+
"type": "array",
|
|
118
|
+
"description": "User-customized color stops that override the computed classification. Saved only when the user manually edits stop colors in the dialog.",
|
|
119
|
+
"items": {
|
|
120
|
+
"type": "object",
|
|
121
|
+
"properties": {
|
|
122
|
+
"value": {},
|
|
123
|
+
"color": {
|
|
124
|
+
"type": "array",
|
|
125
|
+
"items": { "type": "number" },
|
|
126
|
+
"minItems": 4,
|
|
127
|
+
"maxItems": 4
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"rules": {
|
|
133
|
+
"type": "array",
|
|
134
|
+
"description": "Legacy top-level encoding rules (backward compatibility). New files should use layers.",
|
|
135
|
+
"items": {
|
|
136
|
+
"$ref": "project/symbology.json#/definitions/IEncodingRule"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"layers": {
|
|
140
|
+
"type": "array",
|
|
141
|
+
"description": "Grammar rendering layers. Each layer is an independent rendering pipeline with optional preprocess transforms and encoding rules.",
|
|
142
|
+
"items": {
|
|
143
|
+
"$ref": "project/symbology.json#/definitions/IGrammarLayer"
|
|
144
|
+
}
|
|
65
145
|
}
|
|
66
146
|
},
|
|
67
147
|
"additionalProperties": false,
|
|
68
148
|
"default": {
|
|
69
|
-
"renderType": "Single Symbol",
|
|
70
149
|
"method": "color",
|
|
71
150
|
"colorRamp": "viridis",
|
|
72
|
-
"nClasses":
|
|
151
|
+
"nClasses": 9,
|
|
73
152
|
"mode": "equal interval"
|
|
74
153
|
}
|
|
75
154
|
}
|
|
@@ -25,17 +25,7 @@
|
|
|
25
25
|
"symbologyState": {
|
|
26
26
|
"type": "object",
|
|
27
27
|
"description": "The state of the symbology panel options",
|
|
28
|
-
"required": ["renderType"],
|
|
29
28
|
"properties": {
|
|
30
|
-
"renderType": {
|
|
31
|
-
"type": "string",
|
|
32
|
-
"enum": ["Single Symbol", "Graduated", "Categorized"],
|
|
33
|
-
"default": "Single Symbol"
|
|
34
|
-
},
|
|
35
|
-
"value": {
|
|
36
|
-
"type": "string",
|
|
37
|
-
"default": ""
|
|
38
|
-
},
|
|
39
29
|
"method": {
|
|
40
30
|
"type": "string",
|
|
41
31
|
"enum": ["color", "radius"],
|
|
@@ -59,6 +49,40 @@
|
|
|
59
49
|
"pretty",
|
|
60
50
|
"logarithmic"
|
|
61
51
|
]
|
|
52
|
+
},
|
|
53
|
+
"vmin": {
|
|
54
|
+
"type": "number",
|
|
55
|
+
"description": "Minimum value for color mapping"
|
|
56
|
+
},
|
|
57
|
+
"vmax": {
|
|
58
|
+
"type": "number",
|
|
59
|
+
"description": "Maximum value for color mapping"
|
|
60
|
+
},
|
|
61
|
+
"fallbackColor": {
|
|
62
|
+
"type": "array",
|
|
63
|
+
"description": "RGBA fallback color for features with no matching category or outside the gradient range",
|
|
64
|
+
"items": { "type": "number" },
|
|
65
|
+
"minItems": 4,
|
|
66
|
+
"maxItems": 4
|
|
67
|
+
},
|
|
68
|
+
"strokeFollowsFill": {
|
|
69
|
+
"type": "boolean",
|
|
70
|
+
"description": "Whether the stroke color follows the fill color expression",
|
|
71
|
+
"default": false
|
|
72
|
+
},
|
|
73
|
+
"rules": {
|
|
74
|
+
"type": "array",
|
|
75
|
+
"description": "Legacy top-level encoding rules (backward compatibility). New files should use layers.",
|
|
76
|
+
"items": {
|
|
77
|
+
"$ref": "project/symbology.json#/definitions/IEncodingRule"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"layers": {
|
|
81
|
+
"type": "array",
|
|
82
|
+
"description": "Grammar rendering layers. Each layer is an independent rendering pipeline with optional preprocess transforms and encoding rules.",
|
|
83
|
+
"items": {
|
|
84
|
+
"$ref": "project/symbology.json#/definitions/IGrammarLayer"
|
|
85
|
+
}
|
|
62
86
|
}
|
|
63
87
|
},
|
|
64
88
|
"additionalProperties": false,
|
|
@@ -13,6 +13,19 @@
|
|
|
13
13
|
"type": "object",
|
|
14
14
|
"description": "The GeoJSON data",
|
|
15
15
|
"$ref": "./geojson.json"
|
|
16
|
+
},
|
|
17
|
+
"useProxy": {
|
|
18
|
+
"type": "boolean",
|
|
19
|
+
"description": "Route requests through the Jupyter server proxy to avoid CORS issues.",
|
|
20
|
+
"default": false
|
|
21
|
+
},
|
|
22
|
+
"httpHeaders": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"description": "HTTP headers forwarded to the upstream server when useProxy is true.",
|
|
25
|
+
"default": "",
|
|
26
|
+
"additionalProperties": {
|
|
27
|
+
"type": "string"
|
|
28
|
+
}
|
|
16
29
|
}
|
|
17
30
|
}
|
|
18
31
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"description": "GeoPackageRasterSource",
|
|
4
|
+
"title": "IGeoPackageRasterSource",
|
|
5
|
+
"required": ["path"],
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"path": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "The path to the GeoPackage source"
|
|
11
|
+
},
|
|
12
|
+
"minZoom": {
|
|
13
|
+
"type": "number",
|
|
14
|
+
"minimum": 0,
|
|
15
|
+
"maximum": 24,
|
|
16
|
+
"readOnly": true,
|
|
17
|
+
"description": "The minimum zoom level for the raster source",
|
|
18
|
+
"default": 0
|
|
19
|
+
},
|
|
20
|
+
"maxZoom": {
|
|
21
|
+
"type": "number",
|
|
22
|
+
"minimum": 0,
|
|
23
|
+
"maximum": 24,
|
|
24
|
+
"readOnly": true,
|
|
25
|
+
"description": "The maximum zoom level for the raster source",
|
|
26
|
+
"default": 24
|
|
27
|
+
},
|
|
28
|
+
"tables": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "The names of the tables in the GeoPackage to use as a source (optional). If left empty, all tables will be used.",
|
|
31
|
+
"default": ""
|
|
32
|
+
},
|
|
33
|
+
"attribution": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"readOnly": true,
|
|
36
|
+
"description": "The attribution for the GeoPackage source",
|
|
37
|
+
"default": ""
|
|
38
|
+
},
|
|
39
|
+
"interpolate": {
|
|
40
|
+
"type": "boolean",
|
|
41
|
+
"description": "Interpolate between grid cells when overzooming?",
|
|
42
|
+
"default": false
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"description": "GeoPackageVectorSource",
|
|
4
|
+
"title": "IGeoPackageVectorSource",
|
|
5
|
+
"required": ["path"],
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"path": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "The path to the GeoPackage source"
|
|
11
|
+
},
|
|
12
|
+
"attribution": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"readOnly": true,
|
|
15
|
+
"description": "The attribution for the GeoPackage source.",
|
|
16
|
+
"default": ""
|
|
17
|
+
},
|
|
18
|
+
"projection": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "The projection information for the GeoPackage data (optional).",
|
|
21
|
+
"default": "EPSG:3857"
|
|
22
|
+
},
|
|
23
|
+
"tables": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"description": "The names of the tables in the GeoPackage to use as a source (optional). If left empty, all tables will be used.",
|
|
26
|
+
"default": ""
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -20,6 +20,19 @@
|
|
|
20
20
|
"type": "string",
|
|
21
21
|
"description": "The projection information for the GeoParquet data (optional).",
|
|
22
22
|
"default": "EPSG:4326"
|
|
23
|
+
},
|
|
24
|
+
"useProxy": {
|
|
25
|
+
"type": "boolean",
|
|
26
|
+
"description": "Route requests through the Jupyter server proxy to avoid CORS issues.",
|
|
27
|
+
"default": false
|
|
28
|
+
},
|
|
29
|
+
"httpHeaders": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"description": "HTTP headers forwarded to the upstream server when useProxy is true.",
|
|
32
|
+
"default": "",
|
|
33
|
+
"additionalProperties": {
|
|
34
|
+
"type": "string"
|
|
35
|
+
}
|
|
23
36
|
}
|
|
24
37
|
}
|
|
25
38
|
}
|
|
@@ -43,6 +43,19 @@
|
|
|
43
43
|
"type": "boolean",
|
|
44
44
|
"description": "Interpolate between grid cells when overzooming?",
|
|
45
45
|
"default": false
|
|
46
|
+
},
|
|
47
|
+
"useProxy": {
|
|
48
|
+
"type": "boolean",
|
|
49
|
+
"description": "Route requests through the Jupyter server proxy to avoid CORS issues.",
|
|
50
|
+
"default": false
|
|
51
|
+
},
|
|
52
|
+
"httpHeaders": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"description": "HTTP headers forwarded to the upstream server when useProxy is true.",
|
|
55
|
+
"default": "",
|
|
56
|
+
"additionalProperties": {
|
|
57
|
+
"type": "string"
|
|
58
|
+
}
|
|
46
59
|
}
|
|
47
60
|
}
|
|
48
61
|
}
|