@jupytergis/schema 0.4.1 → 0.4.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 (46) hide show
  1. package/lib/_interface/export/exportGeojson.d.ts +18 -0
  2. package/lib/_interface/export/exportGeotiff.d.ts +28 -0
  3. package/lib/_interface/forms.json +382 -267
  4. package/lib/_interface/processing/buffer.d.ts +23 -0
  5. package/lib/_interface/processing/dissolve.d.ts +23 -0
  6. package/lib/_interface/{geoTiffSource.d.ts → project/sources/geoTiffSource.d.ts} +4 -0
  7. package/lib/_interface/{imageSource.d.ts → project/sources/imageSource.d.ts} +4 -0
  8. package/lib/_interface/{rasterDemSource.d.ts → project/sources/rasterDemSource.d.ts} +4 -0
  9. package/lib/_interface/{rastersource.d.ts → project/sources/rastersource.d.ts} +4 -0
  10. package/lib/doc.d.ts +1 -1
  11. package/lib/interfaces.d.ts +7 -2
  12. package/lib/model.d.ts +1 -1
  13. package/lib/model.js +1 -1
  14. package/lib/schema/export/exportGeojson.json +15 -0
  15. package/lib/schema/export/exportGeotiff.json +31 -0
  16. package/lib/schema/processing/buffer.json +23 -0
  17. package/lib/schema/processing/dissolve.json +22 -0
  18. package/lib/schema/{geoTiffSource.json → project/sources/geoTiffSource.json} +5 -0
  19. package/lib/schema/{imageSource.json → project/sources/imageSource.json} +5 -0
  20. package/lib/schema/{rasterDemSource.json → project/sources/rasterDemSource.json} +5 -0
  21. package/lib/schema/{rastersource.json → project/sources/rastersource.json} +5 -0
  22. package/lib/types.d.ts +19 -15
  23. package/lib/types.js +21 -15
  24. package/package.json +1 -1
  25. /package/lib/_interface/{jgis.d.ts → project/jgis.d.ts} +0 -0
  26. /package/lib/_interface/{heatmapLayer.d.ts → project/layers/heatmapLayer.d.ts} +0 -0
  27. /package/lib/_interface/{hillshadeLayer.d.ts → project/layers/hillshadeLayer.d.ts} +0 -0
  28. /package/lib/_interface/{imageLayer.d.ts → project/layers/imageLayer.d.ts} +0 -0
  29. /package/lib/_interface/{rasterlayer.d.ts → project/layers/rasterlayer.d.ts} +0 -0
  30. /package/lib/_interface/{vectorTileLayer.d.ts → project/layers/vectorTileLayer.d.ts} +0 -0
  31. /package/lib/_interface/{vectorlayer.d.ts → project/layers/vectorlayer.d.ts} +0 -0
  32. /package/lib/_interface/{webGlLayer.d.ts → project/layers/webGlLayer.d.ts} +0 -0
  33. /package/lib/_interface/{shapefileSource.d.ts → project/sources/shapefileSource.d.ts} +0 -0
  34. /package/lib/_interface/{vectortilesource.d.ts → project/sources/vectortilesource.d.ts} +0 -0
  35. /package/lib/_interface/{videoSource.d.ts → project/sources/videoSource.d.ts} +0 -0
  36. /package/lib/schema/{jgis.json → project/jgis.json} +0 -0
  37. /package/lib/schema/{heatmapLayer.json → project/layers/heatmapLayer.json} +0 -0
  38. /package/lib/schema/{hillshadeLayer.json → project/layers/hillshadeLayer.json} +0 -0
  39. /package/lib/schema/{imageLayer.json → project/layers/imageLayer.json} +0 -0
  40. /package/lib/schema/{rasterlayer.json → project/layers/rasterlayer.json} +0 -0
  41. /package/lib/schema/{vectorTileLayer.json → project/layers/vectorTileLayer.json} +0 -0
  42. /package/lib/schema/{vectorlayer.json → project/layers/vectorlayer.json} +0 -0
  43. /package/lib/schema/{webGlLayer.json → project/layers/webGlLayer.json} +0 -0
  44. /package/lib/schema/{shapefileSource.json → project/sources/shapefileSource.json} +0 -0
  45. /package/lib/schema/{vectortilesource.json → project/sources/vectortilesource.json} +0 -0
  46. /package/lib/schema/{videoSource.json → project/sources/videoSource.json} +0 -0
@@ -0,0 +1,18 @@
1
+ /* tslint:disable */
2
+ /**
3
+ * This file was automatically generated by json-schema-to-typescript.
4
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
5
+ * and run json-schema-to-typescript to regenerate this file.
6
+ */
7
+
8
+ /**
9
+ * The name of the exported GeoJSON file.
10
+ */
11
+ export type GeoJSONFileName = string;
12
+
13
+ /**
14
+ * ExportGeoJSONSchema
15
+ */
16
+ export interface IExportGeoJSON {
17
+ exportFileName: GeoJSONFileName;
18
+ }
@@ -0,0 +1,28 @@
1
+ /* tslint:disable */
2
+ /**
3
+ * This file was automatically generated by json-schema-to-typescript.
4
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
5
+ * and run json-schema-to-typescript to regenerate this file.
6
+ */
7
+
8
+ /**
9
+ * The name of the exported GeoTIFF file.
10
+ */
11
+ export type GeoTiFFFileName = string;
12
+ /**
13
+ * The width resolution for the raster export.
14
+ */
15
+ export type ResolutionWidth = number;
16
+ /**
17
+ * The height resolution for the raster export.
18
+ */
19
+ export type ResolutionHeight = number;
20
+
21
+ /**
22
+ * ExportGeoTIFFSchema
23
+ */
24
+ export interface IExportGeoTIFF {
25
+ exportFileName: GeoTiFFFileName;
26
+ resolutionX: ResolutionWidth;
27
+ resolutionY: ResolutionHeight;
28
+ }
@@ -1,37 +1,96 @@
1
1
  {
2
- "GeoTiffSource": {
2
+ "ExportGeoJSONSchema": {
3
3
  "type": "object",
4
4
  "required": [
5
- "urls"
5
+ "exportFileName"
6
6
  ],
7
7
  "additionalProperties": false,
8
8
  "properties": {
9
- "urls": {
10
- "type": "array",
11
- "items": {
12
- "type": "object",
13
- "properties": {
14
- "url": {
15
- "type": "string"
16
- },
17
- "min": {
18
- "type": "number"
19
- },
20
- "max": {
21
- "type": "number"
22
- }
23
- }
24
- },
25
- "minItems": 1,
26
- "description": "URLs"
9
+ "exportFileName": {
10
+ "type": "string",
11
+ "title": "GeoJSON File Name",
12
+ "default": "exported_layer",
13
+ "description": "The name of the exported GeoJSON file."
14
+ }
15
+ }
16
+ },
17
+ "ExportGeoTIFFSchema": {
18
+ "type": "object",
19
+ "required": [
20
+ "exportFileName",
21
+ "resolutionX",
22
+ "resolutionY"
23
+ ],
24
+ "additionalProperties": false,
25
+ "properties": {
26
+ "exportFileName": {
27
+ "type": "string",
28
+ "title": "GeoTiFF File Name",
29
+ "default": "exported_layer",
30
+ "description": "The name of the exported GeoTIFF file."
27
31
  },
28
- "normalize": {
32
+ "resolutionX": {
33
+ "type": "number",
34
+ "title": "Resolution (Width)",
35
+ "default": 1200,
36
+ "minimum": 1,
37
+ "maximum": 10000,
38
+ "description": "The width resolution for the raster export."
39
+ },
40
+ "resolutionY": {
41
+ "type": "number",
42
+ "title": "Resolution (Height)",
43
+ "default": 1200,
44
+ "minimum": 1,
45
+ "maximum": 10000,
46
+ "description": "The height resolution for the raster export."
47
+ }
48
+ }
49
+ },
50
+ "Buffer": {
51
+ "type": "object",
52
+ "required": [
53
+ "inputLayer",
54
+ "bufferDistance"
55
+ ],
56
+ "additionalProperties": false,
57
+ "properties": {
58
+ "inputLayer": {
59
+ "type": "string",
60
+ "description": "The input layer for buffering."
61
+ },
62
+ "bufferDistance": {
63
+ "type": "number",
64
+ "default": 10,
65
+ "description": "The distance used for buffering the geometry (in projection units)."
66
+ },
67
+ "embedOutputLayer": {
29
68
  "type": "boolean",
69
+ "title": "Embed output buffered layer in file",
30
70
  "default": true
71
+ }
72
+ }
73
+ },
74
+ "Dissolve": {
75
+ "type": "object",
76
+ "required": [
77
+ "inputLayer",
78
+ "dissolveField"
79
+ ],
80
+ "additionalProperties": false,
81
+ "properties": {
82
+ "inputLayer": {
83
+ "type": "string",
84
+ "description": "The input layer for the dissolve operation."
31
85
  },
32
- "wrapX": {
86
+ "dissolveField": {
87
+ "type": "string",
88
+ "description": "The field based on which geometries will be dissolved."
89
+ },
90
+ "embedOutputLayer": {
33
91
  "type": "boolean",
34
- "default": false
92
+ "title": "Embed output dissolved layer in file",
93
+ "default": true
35
94
  }
36
95
  }
37
96
  },
@@ -136,60 +195,6 @@
136
195
  }
137
196
  }
138
197
  },
139
- "ImageSource": {
140
- "type": "object",
141
- "required": [
142
- "path",
143
- "coordinates"
144
- ],
145
- "additionalProperties": false,
146
- "properties": {
147
- "path": {
148
- "type": "string",
149
- "readOnly": true,
150
- "description": "Path that points to an image"
151
- },
152
- "coordinates": {
153
- "type": "array",
154
- "readOnly": true,
155
- "items": {
156
- "type": "array",
157
- "items": {
158
- "type": "number"
159
- },
160
- "minItems": 2,
161
- "maxItems": 2
162
- },
163
- "minItems": 4,
164
- "maxItems": 4,
165
- "default": [],
166
- "description": "Corners of image specified in longitude, latitude pairs"
167
- }
168
- }
169
- },
170
- "RasterDemSource": {
171
- "type": "object",
172
- "required": [
173
- "url"
174
- ],
175
- "additionalProperties": false,
176
- "properties": {
177
- "url": {
178
- "type": "string",
179
- "description": "The url to the tile provider"
180
- },
181
- "attribution": {
182
- "type": "string",
183
- "description": "The attribution for the raster-dem source"
184
- },
185
- "urlParameters": {
186
- "type": "object",
187
- "additionalProperties": {
188
- "type": "string"
189
- }
190
- }
191
- }
192
- },
193
198
  "RasterLayer": {
194
199
  "type": "object",
195
200
  "required": [
@@ -211,111 +216,6 @@
211
216
  }
212
217
  }
213
218
  },
214
- "RasterSource": {
215
- "type": "object",
216
- "required": [
217
- "url",
218
- "maxZoom",
219
- "minZoom"
220
- ],
221
- "additionalProperties": false,
222
- "properties": {
223
- "url": {
224
- "type": "string",
225
- "description": "The url to the tile provider"
226
- },
227
- "minZoom": {
228
- "type": "number",
229
- "minimum": 0,
230
- "maximum": 24,
231
- "readOnly": true,
232
- "description": "The minimum zoom level for the raster source",
233
- "default": 0
234
- },
235
- "maxZoom": {
236
- "type": "number",
237
- "minimum": 0,
238
- "maximum": 24,
239
- "readOnly": true,
240
- "description": "The maximum zoom level for the raster source",
241
- "default": 24
242
- },
243
- "attribution": {
244
- "type": "string",
245
- "readOnly": true,
246
- "description": "The attribution for the raster source",
247
- "default": ""
248
- },
249
- "htmlAttribution": {
250
- "type": "string",
251
- "readOnly": true,
252
- "description": "The html attribution for the raster source",
253
- "default": ""
254
- },
255
- "provider": {
256
- "type": "string",
257
- "readOnly": true,
258
- "description": "The map provider",
259
- "default": ""
260
- },
261
- "bounds": {
262
- "type": "array",
263
- "readOnly": true,
264
- "items": {
265
- "type": "array",
266
- "items": {
267
- "type": "number"
268
- }
269
- },
270
- "default": [],
271
- "description": "The bounds of the source"
272
- },
273
- "urlParameters": {
274
- "type": "object",
275
- "additionalProperties": {
276
- "type": "string"
277
- },
278
- "default": {}
279
- }
280
- }
281
- },
282
- "ShapefileSource": {
283
- "type": "object",
284
- "required": [
285
- "path"
286
- ],
287
- "additionalProperties": false,
288
- "properties": {
289
- "path": {
290
- "type": "string",
291
- "description": "The path to the shapefile (.shp, .zip, or folder URL)."
292
- },
293
- "attribution": {
294
- "type": "string",
295
- "readOnly": true,
296
- "description": "The attribution for the shapefile source.",
297
- "default": ""
298
- },
299
- "projection": {
300
- "type": "string",
301
- "description": "The projection information for the shapefile (optional).",
302
- "default": "WGS84"
303
- },
304
- "encoding": {
305
- "type": "string",
306
- "description": "The encoding used for the shapefile's DBF (optional).",
307
- "default": "UTF-8"
308
- },
309
- "additionalFiles": {
310
- "type": "object",
311
- "description": "Additional files associated with the shapefile (e.g., .dbf, .prj, .cpg).",
312
- "additionalProperties": {
313
- "type": "string"
314
- },
315
- "default": {}
316
- }
317
- }
318
- },
319
219
  "VectorTileLayer": {
320
220
  "type": "object",
321
221
  "required": [
@@ -435,100 +335,24 @@
435
335
  }
436
336
  }
437
337
  },
438
- "VectorTileSource": {
338
+ "WebGlLayer": {
439
339
  "type": "object",
440
340
  "required": [
441
- "url",
442
- "maxZoom",
443
- "minZoom"
341
+ "source"
444
342
  ],
445
343
  "additionalProperties": false,
446
344
  "properties": {
447
- "url": {
345
+ "source": {
448
346
  "type": "string",
449
- "description": "The url to the tile provider"
450
- },
451
- "minZoom": {
452
- "type": "number",
453
- "minimum": 0,
454
- "maximum": 24,
455
- "description": "The minimum zoom level for the vector source"
347
+ "description": "The id of the source"
456
348
  },
457
- "maxZoom": {
349
+ "opacity": {
458
350
  "type": "number",
351
+ "description": "The opacity of the source",
352
+ "default": 1,
353
+ "multipleOf": 0.1,
459
354
  "minimum": 0,
460
- "maximum": 24,
461
- "description": "The maximum zoom level for the vector source"
462
- },
463
- "attribution": {
464
- "type": "string",
465
- "description": "The attribution for the vector source"
466
- },
467
- "provider": {
468
- "type": "string",
469
- "readOnly": true,
470
- "description": "The map provider"
471
- },
472
- "urlParameters": {
473
- "type": "object",
474
- "additionalProperties": {
475
- "type": "string"
476
- }
477
- }
478
- }
479
- },
480
- "VideoSource": {
481
- "type": "object",
482
- "required": [
483
- "urls",
484
- "coordinates"
485
- ],
486
- "additionalProperties": false,
487
- "properties": {
488
- "urls": {
489
- "type": "array",
490
- "items": {
491
- "type": "string"
492
- },
493
- "minItems": 1,
494
- "default": [],
495
- "description": "URLs to video content in order of preferred format"
496
- },
497
- "coordinates": {
498
- "type": "array",
499
- "items": {
500
- "type": "array",
501
- "items": {
502
- "type": "number"
503
- },
504
- "minItems": 2,
505
- "maxItems": 2
506
- },
507
- "minItems": 4,
508
- "maxItems": 4,
509
- "default": [],
510
- "description": "Corners of video specified in longitude, latitude pairs"
511
- }
512
- }
513
- },
514
- "WebGlLayer": {
515
- "type": "object",
516
- "required": [
517
- "source"
518
- ],
519
- "additionalProperties": false,
520
- "properties": {
521
- "source": {
522
- "type": "string",
523
- "description": "The id of the source"
524
- },
525
- "opacity": {
526
- "type": "number",
527
- "description": "The opacity of the source",
528
- "default": 1,
529
- "multipleOf": 0.1,
530
- "minimum": 0,
531
- "maximum": 1
355
+ "maximum": 1
532
356
  },
533
357
  "color": {
534
358
  "oneOf": [
@@ -632,6 +456,297 @@
632
456
  }
633
457
  }
634
458
  },
459
+ "GeoTiffSource": {
460
+ "type": "object",
461
+ "required": [
462
+ "urls"
463
+ ],
464
+ "additionalProperties": false,
465
+ "properties": {
466
+ "urls": {
467
+ "type": "array",
468
+ "items": {
469
+ "type": "object",
470
+ "properties": {
471
+ "url": {
472
+ "type": "string"
473
+ },
474
+ "min": {
475
+ "type": "number"
476
+ },
477
+ "max": {
478
+ "type": "number"
479
+ }
480
+ }
481
+ },
482
+ "minItems": 1,
483
+ "description": "URLs"
484
+ },
485
+ "normalize": {
486
+ "type": "boolean",
487
+ "default": true
488
+ },
489
+ "wrapX": {
490
+ "type": "boolean",
491
+ "default": false
492
+ },
493
+ "interpolate": {
494
+ "type": "boolean",
495
+ "description": "Interpolate between grid cells when overzooming?",
496
+ "default": false
497
+ }
498
+ }
499
+ },
500
+ "ImageSource": {
501
+ "type": "object",
502
+ "required": [
503
+ "path",
504
+ "coordinates"
505
+ ],
506
+ "additionalProperties": false,
507
+ "properties": {
508
+ "path": {
509
+ "type": "string",
510
+ "readOnly": true,
511
+ "description": "Path that points to an image"
512
+ },
513
+ "coordinates": {
514
+ "type": "array",
515
+ "readOnly": true,
516
+ "items": {
517
+ "type": "array",
518
+ "items": {
519
+ "type": "number"
520
+ },
521
+ "minItems": 2,
522
+ "maxItems": 2
523
+ },
524
+ "minItems": 4,
525
+ "maxItems": 4,
526
+ "default": [],
527
+ "description": "Corners of image specified in longitude, latitude pairs"
528
+ },
529
+ "interpolate": {
530
+ "type": "boolean",
531
+ "description": "Interpolate between grid cells when overzooming?",
532
+ "default": false
533
+ }
534
+ }
535
+ },
536
+ "RasterDemSource": {
537
+ "type": "object",
538
+ "required": [
539
+ "url"
540
+ ],
541
+ "additionalProperties": false,
542
+ "properties": {
543
+ "url": {
544
+ "type": "string",
545
+ "description": "The url to the tile provider"
546
+ },
547
+ "attribution": {
548
+ "type": "string",
549
+ "description": "The attribution for the raster-dem source"
550
+ },
551
+ "urlParameters": {
552
+ "type": "object",
553
+ "additionalProperties": {
554
+ "type": "string"
555
+ }
556
+ },
557
+ "interpolate": {
558
+ "type": "boolean",
559
+ "description": "Interpolate between grid cells when overzooming?",
560
+ "default": false
561
+ }
562
+ }
563
+ },
564
+ "RasterSource": {
565
+ "type": "object",
566
+ "required": [
567
+ "url",
568
+ "maxZoom",
569
+ "minZoom"
570
+ ],
571
+ "additionalProperties": false,
572
+ "properties": {
573
+ "url": {
574
+ "type": "string",
575
+ "description": "The url to the tile provider"
576
+ },
577
+ "minZoom": {
578
+ "type": "number",
579
+ "minimum": 0,
580
+ "maximum": 24,
581
+ "readOnly": true,
582
+ "description": "The minimum zoom level for the raster source",
583
+ "default": 0
584
+ },
585
+ "maxZoom": {
586
+ "type": "number",
587
+ "minimum": 0,
588
+ "maximum": 24,
589
+ "readOnly": true,
590
+ "description": "The maximum zoom level for the raster source",
591
+ "default": 24
592
+ },
593
+ "attribution": {
594
+ "type": "string",
595
+ "readOnly": true,
596
+ "description": "The attribution for the raster source",
597
+ "default": ""
598
+ },
599
+ "htmlAttribution": {
600
+ "type": "string",
601
+ "readOnly": true,
602
+ "description": "The html attribution for the raster source",
603
+ "default": ""
604
+ },
605
+ "provider": {
606
+ "type": "string",
607
+ "readOnly": true,
608
+ "description": "The map provider",
609
+ "default": ""
610
+ },
611
+ "bounds": {
612
+ "type": "array",
613
+ "readOnly": true,
614
+ "items": {
615
+ "type": "array",
616
+ "items": {
617
+ "type": "number"
618
+ }
619
+ },
620
+ "default": [],
621
+ "description": "The bounds of the source"
622
+ },
623
+ "urlParameters": {
624
+ "type": "object",
625
+ "additionalProperties": {
626
+ "type": "string"
627
+ },
628
+ "default": {}
629
+ },
630
+ "interpolate": {
631
+ "type": "boolean",
632
+ "description": "Interpolate between grid cells when overzooming?",
633
+ "default": false
634
+ }
635
+ }
636
+ },
637
+ "ShapefileSource": {
638
+ "type": "object",
639
+ "required": [
640
+ "path"
641
+ ],
642
+ "additionalProperties": false,
643
+ "properties": {
644
+ "path": {
645
+ "type": "string",
646
+ "description": "The path to the shapefile (.shp, .zip, or folder URL)."
647
+ },
648
+ "attribution": {
649
+ "type": "string",
650
+ "readOnly": true,
651
+ "description": "The attribution for the shapefile source.",
652
+ "default": ""
653
+ },
654
+ "projection": {
655
+ "type": "string",
656
+ "description": "The projection information for the shapefile (optional).",
657
+ "default": "WGS84"
658
+ },
659
+ "encoding": {
660
+ "type": "string",
661
+ "description": "The encoding used for the shapefile's DBF (optional).",
662
+ "default": "UTF-8"
663
+ },
664
+ "additionalFiles": {
665
+ "type": "object",
666
+ "description": "Additional files associated with the shapefile (e.g., .dbf, .prj, .cpg).",
667
+ "additionalProperties": {
668
+ "type": "string"
669
+ },
670
+ "default": {}
671
+ }
672
+ }
673
+ },
674
+ "VectorTileSource": {
675
+ "type": "object",
676
+ "required": [
677
+ "url",
678
+ "maxZoom",
679
+ "minZoom"
680
+ ],
681
+ "additionalProperties": false,
682
+ "properties": {
683
+ "url": {
684
+ "type": "string",
685
+ "description": "The url to the tile provider"
686
+ },
687
+ "minZoom": {
688
+ "type": "number",
689
+ "minimum": 0,
690
+ "maximum": 24,
691
+ "description": "The minimum zoom level for the vector source"
692
+ },
693
+ "maxZoom": {
694
+ "type": "number",
695
+ "minimum": 0,
696
+ "maximum": 24,
697
+ "description": "The maximum zoom level for the vector source"
698
+ },
699
+ "attribution": {
700
+ "type": "string",
701
+ "description": "The attribution for the vector source"
702
+ },
703
+ "provider": {
704
+ "type": "string",
705
+ "readOnly": true,
706
+ "description": "The map provider"
707
+ },
708
+ "urlParameters": {
709
+ "type": "object",
710
+ "additionalProperties": {
711
+ "type": "string"
712
+ }
713
+ }
714
+ }
715
+ },
716
+ "VideoSource": {
717
+ "type": "object",
718
+ "required": [
719
+ "urls",
720
+ "coordinates"
721
+ ],
722
+ "additionalProperties": false,
723
+ "properties": {
724
+ "urls": {
725
+ "type": "array",
726
+ "items": {
727
+ "type": "string"
728
+ },
729
+ "minItems": 1,
730
+ "default": [],
731
+ "description": "URLs to video content in order of preferred format"
732
+ },
733
+ "coordinates": {
734
+ "type": "array",
735
+ "items": {
736
+ "type": "array",
737
+ "items": {
738
+ "type": "number"
739
+ },
740
+ "minItems": 2,
741
+ "maxItems": 2
742
+ },
743
+ "minItems": 4,
744
+ "maxItems": 4,
745
+ "default": [],
746
+ "description": "Corners of video specified in longitude, latitude pairs"
747
+ }
748
+ }
749
+ },
635
750
  "GeoJSONSource": {
636
751
  "type": "object",
637
752
  "required": [],
@@ -0,0 +1,23 @@
1
+ /* tslint:disable */
2
+ /**
3
+ * This file was automatically generated by json-schema-to-typescript.
4
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
5
+ * and run json-schema-to-typescript to regenerate this file.
6
+ */
7
+
8
+ export type EmbedOutputBufferedLayerInFile = boolean;
9
+
10
+ /**
11
+ * Buffer
12
+ */
13
+ export interface IBuffer {
14
+ /**
15
+ * The input layer for buffering.
16
+ */
17
+ inputLayer: string;
18
+ /**
19
+ * The distance used for buffering the geometry (in projection units).
20
+ */
21
+ bufferDistance: number;
22
+ embedOutputLayer?: EmbedOutputBufferedLayerInFile;
23
+ }
@@ -0,0 +1,23 @@
1
+ /* tslint:disable */
2
+ /**
3
+ * This file was automatically generated by json-schema-to-typescript.
4
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
5
+ * and run json-schema-to-typescript to regenerate this file.
6
+ */
7
+
8
+ export type EmbedOutputDissolvedLayerInFile = boolean;
9
+
10
+ /**
11
+ * Dissolve
12
+ */
13
+ export interface IDissolve {
14
+ /**
15
+ * The input layer for the dissolve operation.
16
+ */
17
+ inputLayer: string;
18
+ /**
19
+ * The field based on which geometries will be dissolved.
20
+ */
21
+ dissolveField: string;
22
+ embedOutputLayer?: EmbedOutputDissolvedLayerInFile;
23
+ }
@@ -28,4 +28,8 @@ export interface IGeoTiffSource {
28
28
  ];
29
29
  normalize?: boolean;
30
30
  wrapX?: boolean;
31
+ /**
32
+ * Interpolate between grid cells when overzooming?
33
+ */
34
+ interpolate?: boolean;
31
35
  }
@@ -17,4 +17,8 @@ export interface IImageSource {
17
17
  * Corners of image specified in longitude, latitude pairs
18
18
  */
19
19
  coordinates: [[number, number], [number, number], [number, number], [number, number]];
20
+ /**
21
+ * Interpolate between grid cells when overzooming?
22
+ */
23
+ interpolate?: boolean;
20
24
  }
@@ -20,4 +20,8 @@ export interface IRasterDemSource {
20
20
  urlParameters?: {
21
21
  [k: string]: string;
22
22
  };
23
+ /**
24
+ * Interpolate between grid cells when overzooming?
25
+ */
26
+ interpolate?: boolean;
23
27
  }
@@ -40,4 +40,8 @@ export interface IRasterSource {
40
40
  urlParameters?: {
41
41
  [k: string]: string;
42
42
  };
43
+ /**
44
+ * Interpolate between grid cells when overzooming?
45
+ */
46
+ interpolate?: boolean;
43
47
  }
package/lib/doc.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { MapChange, YDocument } from '@jupyter/ydoc';
2
2
  import { JSONObject } from '@lumino/coreutils';
3
3
  import { ISignal } from '@lumino/signaling';
4
- import { IJGISLayer, IJGISLayerItem, IJGISLayerTree, IJGISLayers, IJGISOptions, IJGISSource, IJGISSources } from './_interface/jgis';
4
+ import { IJGISLayer, IJGISLayerItem, IJGISLayerTree, IJGISLayers, IJGISOptions, IJGISSource, IJGISSources } from './_interface/project/jgis';
5
5
  import { IDict, IJGISLayerDocChange, IJGISLayerTreeDocChange, IJGISSourceDocChange, IJupyterGISDoc, IJupyterGISDocChange } from './interfaces';
6
6
  export declare class JupyterGISDoc extends YDocument<IJupyterGISDocChange> implements IJupyterGISDoc {
7
7
  constructor();
@@ -7,8 +7,8 @@ import { Contents, User } from '@jupyterlab/services';
7
7
  import { JSONObject } from '@lumino/coreutils';
8
8
  import { ISignal, Signal } from '@lumino/signaling';
9
9
  import { SplitPanel } from '@lumino/widgets';
10
- import { IJGISContent, IJGISLayer, IJGISLayerGroup, IJGISLayerItem, IJGISLayers, IJGISLayerTree, IJGISOptions, IJGISSource, IJGISSources, SourceType } from './_interface/jgis';
11
- import { IRasterSource } from './_interface/rastersource';
10
+ import { IJGISContent, IJGISLayer, IJGISLayerGroup, IJGISLayerItem, IJGISLayers, IJGISLayerTree, IJGISOptions, IJGISSource, IJGISSources, SourceType } from './_interface/project/jgis';
11
+ import { IRasterSource } from './_interface/project/sources/rastersource';
12
12
  export { IGeoJSONSource } from './_interface/geojsonsource';
13
13
  export type JgisCoordinates = {
14
14
  x: number;
@@ -56,6 +56,11 @@ export interface IJupyterGISClientState {
56
56
  };
57
57
  emitter?: string | null;
58
58
  };
59
+ selectedPropField?: {
60
+ id: string | null;
61
+ value: any;
62
+ parentType: 'panel' | 'dialog';
63
+ };
59
64
  viewportState: {
60
65
  value?: IViewPortState;
61
66
  emitter?: string | null;
package/lib/model.d.ts CHANGED
@@ -4,7 +4,7 @@ import { DocumentRegistry } from '@jupyterlab/docregistry';
4
4
  import { Contents } from '@jupyterlab/services';
5
5
  import { PartialJSONObject } from '@lumino/coreutils';
6
6
  import { ISignal, Signal } from '@lumino/signaling';
7
- import { IJGISContent, IJGISLayer, IJGISLayerGroup, IJGISLayerTree, IJGISLayers, IJGISOptions, IJGISSource, IJGISSources } from './_interface/jgis';
7
+ import { IJGISContent, IJGISLayer, IJGISLayerGroup, IJGISLayerTree, IJGISLayers, IJGISOptions, IJGISSource, IJGISSources } from './_interface/project/jgis';
8
8
  import { IAnnotationModel, IDict, IJGISLayerDocChange, IJGISLayerTreeDocChange, IJGISSourceDocChange, IJupyterGISClientState, IJupyterGISDoc, IJupyterGISModel, ISelection, IUserData, IViewPortState, Pointer } from './interfaces';
9
9
  export declare class JupyterGISModel implements IJupyterGISModel {
10
10
  constructor(options: JupyterGISModel.IOptions);
package/lib/model.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Signal } from '@lumino/signaling';
2
2
  import Ajv from 'ajv';
3
3
  import { JupyterGISDoc } from './doc';
4
- import jgisSchema from './schema/jgis.json';
4
+ import jgisSchema from './schema/project/jgis.json';
5
5
  export class JupyterGISModel {
6
6
  constructor(options) {
7
7
  this._onSharedModelChanged = (sender, changes) => {
@@ -0,0 +1,15 @@
1
+ {
2
+ "type": "object",
3
+ "description": "ExportGeoJSONSchema",
4
+ "title": "IExportGeoJSON",
5
+ "required": ["exportFileName"],
6
+ "additionalProperties": false,
7
+ "properties": {
8
+ "exportFileName": {
9
+ "type": "string",
10
+ "title": "GeoJSON File Name",
11
+ "default": "exported_layer",
12
+ "description": "The name of the exported GeoJSON file."
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "type": "object",
3
+ "description": "ExportGeoTIFFSchema",
4
+ "title": "IExportGeoTIFF",
5
+ "required": ["exportFileName", "resolutionX", "resolutionY"],
6
+ "additionalProperties": false,
7
+ "properties": {
8
+ "exportFileName": {
9
+ "type": "string",
10
+ "title": "GeoTiFF File Name",
11
+ "default": "exported_layer",
12
+ "description": "The name of the exported GeoTIFF file."
13
+ },
14
+ "resolutionX": {
15
+ "type": "number",
16
+ "title": "Resolution (Width)",
17
+ "default": 1200,
18
+ "minimum": 1,
19
+ "maximum": 10000,
20
+ "description": "The width resolution for the raster export."
21
+ },
22
+ "resolutionY": {
23
+ "type": "number",
24
+ "title": "Resolution (Height)",
25
+ "default": 1200,
26
+ "minimum": 1,
27
+ "maximum": 10000,
28
+ "description": "The height resolution for the raster export."
29
+ }
30
+ }
31
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "type": "object",
3
+ "description": "Buffer",
4
+ "title": "IBuffer",
5
+ "required": ["inputLayer", "bufferDistance"],
6
+ "additionalProperties": false,
7
+ "properties": {
8
+ "inputLayer": {
9
+ "type": "string",
10
+ "description": "The input layer for buffering."
11
+ },
12
+ "bufferDistance": {
13
+ "type": "number",
14
+ "default": 10,
15
+ "description": "The distance used for buffering the geometry (in projection units)."
16
+ },
17
+ "embedOutputLayer": {
18
+ "type": "boolean",
19
+ "title": "Embed output buffered layer in file",
20
+ "default": true
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "type": "object",
3
+ "description": "Dissolve",
4
+ "title": "IDissolve",
5
+ "required": ["inputLayer", "dissolveField"],
6
+ "additionalProperties": false,
7
+ "properties": {
8
+ "inputLayer": {
9
+ "type": "string",
10
+ "description": "The input layer for the dissolve operation."
11
+ },
12
+ "dissolveField": {
13
+ "type": "string",
14
+ "description": "The field based on which geometries will be dissolved."
15
+ },
16
+ "embedOutputLayer": {
17
+ "type": "boolean",
18
+ "title": "Embed output dissolved layer in file",
19
+ "default": true
20
+ }
21
+ }
22
+ }
@@ -31,6 +31,11 @@
31
31
  "wrapX": {
32
32
  "type": "boolean",
33
33
  "default": false
34
+ },
35
+ "interpolate": {
36
+ "type": "boolean",
37
+ "description": "Interpolate between grid cells when overzooming?",
38
+ "default": false
34
39
  }
35
40
  }
36
41
  }
@@ -25,6 +25,11 @@
25
25
  "maxItems": 4,
26
26
  "default": [],
27
27
  "description": "Corners of image specified in longitude, latitude pairs"
28
+ },
29
+ "interpolate": {
30
+ "type": "boolean",
31
+ "description": "Interpolate between grid cells when overzooming?",
32
+ "default": false
28
33
  }
29
34
  }
30
35
  }
@@ -18,6 +18,11 @@
18
18
  "additionalProperties": {
19
19
  "type": "string"
20
20
  }
21
+ },
22
+ "interpolate": {
23
+ "type": "boolean",
24
+ "description": "Interpolate between grid cells when overzooming?",
25
+ "default": false
21
26
  }
22
27
  }
23
28
  }
@@ -61,6 +61,11 @@
61
61
  "type": "string"
62
62
  },
63
63
  "default": {}
64
+ },
65
+ "interpolate": {
66
+ "type": "boolean",
67
+ "description": "Interpolate between grid cells when overzooming?",
68
+ "default": false
64
69
  }
65
70
  }
66
71
  }
package/lib/types.d.ts CHANGED
@@ -1,19 +1,23 @@
1
- export * from './_interface/jgis';
2
- export * from './_interface/geoTiffSource';
1
+ export * from './_interface/project/jgis';
2
+ export * from './_interface/project/sources/geoTiffSource';
3
3
  export * from './_interface/geojsonsource';
4
- export * from './_interface/imageSource';
5
- export * from './_interface/rasterDemSource';
6
- export * from './_interface/rastersource';
7
- export * from './_interface/shapefileSource';
8
- export * from './_interface/vectortilesource';
9
- export * from './_interface/videoSource';
10
- export * from './_interface/hillshadeLayer';
11
- export * from './_interface/rasterlayer';
12
- export * from './_interface/vectorlayer';
13
- export * from './_interface/vectorTileLayer';
14
- export * from './_interface/webGlLayer';
15
- export * from './_interface/imageLayer';
16
- export * from './_interface/heatmapLayer';
4
+ export * from './_interface/project/sources/imageSource';
5
+ export * from './_interface/project/sources/rasterDemSource';
6
+ export * from './_interface/project/sources/rastersource';
7
+ export * from './_interface/project/sources/shapefileSource';
8
+ export * from './_interface/project/sources/vectortilesource';
9
+ export * from './_interface/project/sources/videoSource';
10
+ export * from './_interface/project/layers/hillshadeLayer';
11
+ export * from './_interface/project/layers/rasterlayer';
12
+ export * from './_interface/project/layers/vectorlayer';
13
+ export * from './_interface/project/layers/vectorTileLayer';
14
+ export * from './_interface/project/layers/webGlLayer';
15
+ export * from './_interface/project/layers/imageLayer';
16
+ export * from './_interface/project/layers/heatmapLayer';
17
+ export * from './_interface/processing/buffer';
18
+ export * from './_interface/processing/dissolve';
19
+ export * from './_interface/export/exportGeojson';
20
+ export * from './_interface/export/exportGeotiff';
17
21
  export * from './doc';
18
22
  export * from './interfaces';
19
23
  export * from './model';
package/lib/types.js CHANGED
@@ -1,21 +1,27 @@
1
- export * from './_interface/jgis';
1
+ export * from './_interface/project/jgis';
2
2
  // Sources
3
- export * from './_interface/geoTiffSource';
3
+ export * from './_interface/project/sources/geoTiffSource';
4
4
  export * from './_interface/geojsonsource';
5
- export * from './_interface/imageSource';
6
- export * from './_interface/rasterDemSource';
7
- export * from './_interface/rastersource';
8
- export * from './_interface/shapefileSource';
9
- export * from './_interface/vectortilesource';
10
- export * from './_interface/videoSource';
5
+ export * from './_interface/project/sources/imageSource';
6
+ export * from './_interface/project/sources/rasterDemSource';
7
+ export * from './_interface/project/sources/rastersource';
8
+ export * from './_interface/project/sources/shapefileSource';
9
+ export * from './_interface/project/sources/vectortilesource';
10
+ export * from './_interface/project/sources/videoSource';
11
11
  // Layers
12
- export * from './_interface/hillshadeLayer';
13
- export * from './_interface/rasterlayer';
14
- export * from './_interface/vectorlayer';
15
- export * from './_interface/vectorTileLayer';
16
- export * from './_interface/webGlLayer';
17
- export * from './_interface/imageLayer';
18
- export * from './_interface/heatmapLayer';
12
+ export * from './_interface/project/layers/hillshadeLayer';
13
+ export * from './_interface/project/layers/rasterlayer';
14
+ export * from './_interface/project/layers/vectorlayer';
15
+ export * from './_interface/project/layers/vectorTileLayer';
16
+ export * from './_interface/project/layers/webGlLayer';
17
+ export * from './_interface/project/layers/imageLayer';
18
+ export * from './_interface/project/layers/heatmapLayer';
19
+ // Processing
20
+ export * from './_interface/processing/buffer';
21
+ export * from './_interface/processing/dissolve';
22
+ // exportLayer
23
+ export * from './_interface/export/exportGeojson';
24
+ export * from './_interface/export/exportGeotiff';
19
25
  // Other
20
26
  export * from './doc';
21
27
  export * from './interfaces';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupytergis/schema",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
4
4
  "description": "A JupyterGIS schema package.",
5
5
  "keywords": [
6
6
  "jupytergis"
File without changes
File without changes