geokernel-electron 1.0.2

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 (136) hide show
  1. package/LICENSE +6 -0
  2. package/README.md +52 -0
  3. package/assets/images/FullExtent.svg +29 -0
  4. package/assets/images/GeoKernelAppIcon.ico +0 -0
  5. package/assets/images/Pan.svg +6 -0
  6. package/assets/images/RectangularZoom.svg +82 -0
  7. package/assets/images/ZoomIn.svg +10 -0
  8. package/assets/images/ZoomOut.svg +10 -0
  9. package/bin/GeoKernel.Core.dll +0 -0
  10. package/bin/GeoKernel.Formats.dll +0 -0
  11. package/bin/GeoKernel.Viewer.dll +0 -0
  12. package/bin/Qt6Core.dll +0 -0
  13. package/bin/Qt6Gui.dll +0 -0
  14. package/bin/Qt6Network.dll +0 -0
  15. package/bin/Qt6OpenGL.dll +0 -0
  16. package/bin/Qt6OpenGLWidgets.dll +0 -0
  17. package/bin/Qt6Sql.dll +0 -0
  18. package/bin/Qt6Widgets.dll +0 -0
  19. package/bin/README_LICENSE_PROFILE.txt +21 -0
  20. package/bin/gdal-data/GDALLogoBW.svg +138 -0
  21. package/bin/gdal-data/GDALLogoColor.svg +126 -0
  22. package/bin/gdal-data/GDALLogoGS.svg +126 -0
  23. package/bin/gdal-data/LICENSE.TXT +467 -0
  24. package/bin/gdal-data/cubewerx_extra.wkt +48 -0
  25. package/bin/gdal-data/ecw_cs.wkt +1453 -0
  26. package/bin/gdal-data/epsg.wkt +1 -0
  27. package/bin/gdal-data/esri_StatePlane_extra.wkt +631 -0
  28. package/bin/gdal-data/gdal_algorithm.schema.json +220 -0
  29. package/bin/gdal-data/gdalicon.png +0 -0
  30. package/bin/gdal-data/gdalinfo_output.schema.json +390 -0
  31. package/bin/gdal-data/gdalmdiminfo_output.schema.json +326 -0
  32. package/bin/gdal-data/gdalvrt.xsd +927 -0
  33. package/bin/gdal-data/gfs.xsd +246 -0
  34. package/bin/gdal-data/gml_registry.xml +117 -0
  35. package/bin/gdal-data/gml_registry.xsd +66 -0
  36. package/bin/gdal-data/inspire_cp_BasicPropertyUnit.gfs +57 -0
  37. package/bin/gdal-data/inspire_cp_CadastralBoundary.gfs +60 -0
  38. package/bin/gdal-data/inspire_cp_CadastralParcel.gfs +81 -0
  39. package/bin/gdal-data/inspire_cp_CadastralZoning.gfs +161 -0
  40. package/bin/gdal-data/jpfgdgml_AdmArea.gfs +59 -0
  41. package/bin/gdal-data/jpfgdgml_AdmBdry.gfs +49 -0
  42. package/bin/gdal-data/jpfgdgml_AdmPt.gfs +59 -0
  43. package/bin/gdal-data/jpfgdgml_BldA.gfs +54 -0
  44. package/bin/gdal-data/jpfgdgml_BldL.gfs +54 -0
  45. package/bin/gdal-data/jpfgdgml_Cntr.gfs +54 -0
  46. package/bin/gdal-data/jpfgdgml_CommBdry.gfs +49 -0
  47. package/bin/gdal-data/jpfgdgml_CommPt.gfs +59 -0
  48. package/bin/gdal-data/jpfgdgml_Cstline.gfs +54 -0
  49. package/bin/gdal-data/jpfgdgml_ElevPt.gfs +54 -0
  50. package/bin/gdal-data/jpfgdgml_GCP.gfs +94 -0
  51. package/bin/gdal-data/jpfgdgml_LeveeEdge.gfs +49 -0
  52. package/bin/gdal-data/jpfgdgml_RailCL.gfs +54 -0
  53. package/bin/gdal-data/jpfgdgml_RdASL.gfs +44 -0
  54. package/bin/gdal-data/jpfgdgml_RdArea.gfs +54 -0
  55. package/bin/gdal-data/jpfgdgml_RdCompt.gfs +59 -0
  56. package/bin/gdal-data/jpfgdgml_RdEdg.gfs +59 -0
  57. package/bin/gdal-data/jpfgdgml_RdMgtBdry.gfs +49 -0
  58. package/bin/gdal-data/jpfgdgml_RdSgmtA.gfs +59 -0
  59. package/bin/gdal-data/jpfgdgml_RvrMgtBdry.gfs +49 -0
  60. package/bin/gdal-data/jpfgdgml_SBAPt.gfs +49 -0
  61. package/bin/gdal-data/jpfgdgml_SBArea.gfs +54 -0
  62. package/bin/gdal-data/jpfgdgml_SBBdry.gfs +44 -0
  63. package/bin/gdal-data/jpfgdgml_WA.gfs +54 -0
  64. package/bin/gdal-data/jpfgdgml_WL.gfs +54 -0
  65. package/bin/gdal-data/jpfgdgml_WStrA.gfs +54 -0
  66. package/bin/gdal-data/jpfgdgml_WStrL.gfs +54 -0
  67. package/bin/gdal-data/leaflet_template.html +102 -0
  68. package/bin/gdal-data/ogr_fields_override.schema.json +125 -0
  69. package/bin/gdal-data/ogrinfo_output.schema.json +528 -0
  70. package/bin/gdal-data/ogrvrt.xsd +528 -0
  71. package/bin/gdal-data/osmconf.ini +134 -0
  72. package/bin/gdal-data/ozi_datum.csv +131 -0
  73. package/bin/gdal-data/ozi_ellips.csv +35 -0
  74. package/bin/gdal-data/pci_datum.txt +530 -0
  75. package/bin/gdal-data/pci_ellips.txt +129 -0
  76. package/bin/gdal-data/ruian_vf_ob_v1.gfs +1455 -0
  77. package/bin/gdal-data/ruian_vf_st_uvoh_v1.gfs +86 -0
  78. package/bin/gdal-data/ruian_vf_st_v1.gfs +1489 -0
  79. package/bin/gdal-data/ruian_vf_v1.gfs +2126 -0
  80. package/bin/gdal-data/stateplane.csv +259 -0
  81. package/bin/gdal-data/template_tiles.mapml +28 -0
  82. package/bin/gdal-data/tms_LINZAntarticaMapTileGrid.json +190 -0
  83. package/bin/gdal-data/tms_MapML_APSTILE.json +268 -0
  84. package/bin/gdal-data/tms_MapML_CBMTILE.json +346 -0
  85. package/bin/gdal-data/tms_NZTM2000.json +243 -0
  86. package/bin/gdal.dll +0 -0
  87. package/bin/gdalplugins/drivers.ini +279 -0
  88. package/bin/gdalplugins/gdal_ECW_JP2ECW.dll +0 -0
  89. package/bin/gdalplugins/gdal_JPEG.dll +0 -0
  90. package/bin/gdalplugins/gdal_MrSID.dll +0 -0
  91. package/bin/gdalplugins/gdal_PNG.dll +0 -0
  92. package/bin/gdalplugins/ogr_Arrow.dll +0 -0
  93. package/bin/gdalplugins/ogr_LIBKML.dll +0 -0
  94. package/bin/gdalplugins/ogr_Parquet.dll +0 -0
  95. package/bin/gdalplugins/ogr_XLS.dll +0 -0
  96. package/bin/license-profile.json +17 -0
  97. package/bin/licenses/README.txt +1 -0
  98. package/bin/proj-data/CH +22 -0
  99. package/bin/proj-data/GL27 +23 -0
  100. package/bin/proj-data/ITRF2000 +24 -0
  101. package/bin/proj-data/ITRF2008 +94 -0
  102. package/bin/proj-data/ITRF2014 +55 -0
  103. package/bin/proj-data/ITRF2020 +91 -0
  104. package/bin/proj-data/copyright +34 -0
  105. package/bin/proj-data/deformation_model.schema.json +582 -0
  106. package/bin/proj-data/nad.lst +142 -0
  107. package/bin/proj-data/nad27 +810 -0
  108. package/bin/proj-data/nad83 +745 -0
  109. package/bin/proj-data/other.extra +53 -0
  110. package/bin/proj-data/proj-config-version.cmake +44 -0
  111. package/bin/proj-data/proj-config.cmake +79 -0
  112. package/bin/proj-data/proj-targets-debug.cmake +19 -0
  113. package/bin/proj-data/proj-targets-release.cmake +19 -0
  114. package/bin/proj-data/proj-targets.cmake +107 -0
  115. package/bin/proj-data/proj.db +0 -0
  116. package/bin/proj-data/proj.ini +59 -0
  117. package/bin/proj-data/proj4-targets-debug.cmake +19 -0
  118. package/bin/proj-data/proj4-targets-release.cmake +19 -0
  119. package/bin/proj-data/proj4-targets.cmake +107 -0
  120. package/bin/proj-data/projjson.schema.json +1174 -0
  121. package/bin/proj-data/triangulation.schema.json +214 -0
  122. package/bin/proj-data/usage +9 -0
  123. package/bin/proj-data/vcpkg.spdx.json +1103 -0
  124. package/bin/proj-data/vcpkg_abi_info.txt +29 -0
  125. package/bin/proj-data/world +214 -0
  126. package/bin/use-license-profile.ps1 +4 -0
  127. package/package.json +42 -0
  128. package/src/index.js +20 -0
  129. package/src/native-signatures.js +251 -0
  130. package/src/native-types.js +101 -0
  131. package/src/native.js +63 -0
  132. package/src/runtime.js +71 -0
  133. package/src/styles.js +70 -0
  134. package/src/types.js +120 -0
  135. package/src/viewer-helpers.js +124 -0
  136. package/src/viewer.js +524 -0
@@ -0,0 +1,54 @@
1
+ <GMLFeatureClassList>
2
+ <GMLFeatureClass>
3
+ <Name>SBArea</Name>
4
+ <ElementPath>SBArea</ElementPath>
5
+ <GeometryElementPath>area</GeometryElementPath>
6
+ <GeometryType>Polygon</GeometryType>
7
+ <SRSName>urn:ogc:def:crs:EPSG::6668</SRSName>
8
+ <PropertyDefn>
9
+ <Name>fid</Name>
10
+ <ElementPath>fid</ElementPath>
11
+ <Type>String</Type>
12
+ </PropertyDefn>
13
+ <PropertyDefn>
14
+ <Name>lfSpanFr</Name>
15
+ <ElementPath>lfSpanFr|timePosition</ElementPath>
16
+ <Type>String</Type>
17
+ </PropertyDefn>
18
+ <PropertyDefn>
19
+ <Name>lfSpanTo</Name>
20
+ <ElementPath>lfSpanTo|timePosition</ElementPath>
21
+ <Type>String</Type>
22
+ </PropertyDefn>
23
+ <PropertyDefn>
24
+ <Name>devDate</Name>
25
+ <ElementPath>devDate|timePosition</ElementPath>
26
+ <Type>String</Type>
27
+ </PropertyDefn>
28
+ <PropertyDefn>
29
+ <Name>orgGILvl</Name>
30
+ <ElementPath>orgGILvl</ElementPath>
31
+ <Type>String</Type>
32
+ </PropertyDefn>
33
+ <PropertyDefn>
34
+ <Name>orgMDId</Name>
35
+ <ElementPath>orgMDId</ElementPath>
36
+ <Type>String</Type>
37
+ </PropertyDefn>
38
+ <PropertyDefn>
39
+ <Name>vis</Name>
40
+ <ElementPath>vis</ElementPath>
41
+ <Type>String</Type>
42
+ </PropertyDefn>
43
+ <PropertyDefn>
44
+ <Name>type</Name>
45
+ <ElementPath>type</ElementPath>
46
+ <Type>String</Type>
47
+ </PropertyDefn>
48
+ <PropertyDefn>
49
+ <Name>sbaNo</Name>
50
+ <ElementPath>sbaNo</ElementPath>
51
+ <Type>String</Type>
52
+ </PropertyDefn>
53
+ </GMLFeatureClass>
54
+ </GMLFeatureClassList>
@@ -0,0 +1,44 @@
1
+ <GMLFeatureClassList>
2
+ <GMLFeatureClass>
3
+ <Name>SBBdry</Name>
4
+ <ElementPath>SBBdry</ElementPath>
5
+ <GeometryElementPath>loc</GeometryElementPath>
6
+ <GeometryType>LineString</GeometryType>
7
+ <SRSName>urn:ogc:def:crs:EPSG::6668</SRSName>
8
+ <PropertyDefn>
9
+ <Name>fid</Name>
10
+ <ElementPath>fid</ElementPath>
11
+ <Type>String</Type>
12
+ </PropertyDefn>
13
+ <PropertyDefn>
14
+ <Name>lfSpanFr</Name>
15
+ <ElementPath>lfSpanFr|timePosition</ElementPath>
16
+ <Type>String</Type>
17
+ </PropertyDefn>
18
+ <PropertyDefn>
19
+ <Name>lfSpanTo</Name>
20
+ <ElementPath>lfSpanTo|timePosition</ElementPath>
21
+ <Type>String</Type>
22
+ </PropertyDefn>
23
+ <PropertyDefn>
24
+ <Name>devDate</Name>
25
+ <ElementPath>devDate|timePosition</ElementPath>
26
+ <Type>String</Type>
27
+ </PropertyDefn>
28
+ <PropertyDefn>
29
+ <Name>orgGILvl</Name>
30
+ <ElementPath>orgGILvl</ElementPath>
31
+ <Type>String</Type>
32
+ </PropertyDefn>
33
+ <PropertyDefn>
34
+ <Name>orgMDId</Name>
35
+ <ElementPath>orgMDId</ElementPath>
36
+ <Type>String</Type>
37
+ </PropertyDefn>
38
+ <PropertyDefn>
39
+ <Name>vis</Name>
40
+ <ElementPath>vis</ElementPath>
41
+ <Type>String</Type>
42
+ </PropertyDefn>
43
+ </GMLFeatureClass>
44
+ </GMLFeatureClassList>
@@ -0,0 +1,54 @@
1
+ <GMLFeatureClassList>
2
+ <GMLFeatureClass>
3
+ <Name>WA</Name>
4
+ <ElementPath>WA</ElementPath>
5
+ <GeometryElementPath>area</GeometryElementPath>
6
+ <GeometryType>Polygon</GeometryType>
7
+ <SRSName>urn:ogc:def:crs:EPSG::6668</SRSName>
8
+ <PropertyDefn>
9
+ <Name>fid</Name>
10
+ <ElementPath>fid</ElementPath>
11
+ <Type>String</Type>
12
+ </PropertyDefn>
13
+ <PropertyDefn>
14
+ <Name>lfSpanFr</Name>
15
+ <ElementPath>lfSpanFr|timePosition</ElementPath>
16
+ <Type>String</Type>
17
+ </PropertyDefn>
18
+ <PropertyDefn>
19
+ <Name>lfSpanTo</Name>
20
+ <ElementPath>lfSpanTo|timePosition</ElementPath>
21
+ <Type>String</Type>
22
+ </PropertyDefn>
23
+ <PropertyDefn>
24
+ <Name>devDate</Name>
25
+ <ElementPath>devDate|timePosition</ElementPath>
26
+ <Type>String</Type>
27
+ </PropertyDefn>
28
+ <PropertyDefn>
29
+ <Name>orgGILvl</Name>
30
+ <ElementPath>orgGILvl</ElementPath>
31
+ <Type>String</Type>
32
+ </PropertyDefn>
33
+ <PropertyDefn>
34
+ <Name>orgMDId</Name>
35
+ <ElementPath>orgMDId</ElementPath>
36
+ <Type>String</Type>
37
+ </PropertyDefn>
38
+ <PropertyDefn>
39
+ <Name>vis</Name>
40
+ <ElementPath>vis</ElementPath>
41
+ <Type>String</Type>
42
+ </PropertyDefn>
43
+ <PropertyDefn>
44
+ <Name>type</Name>
45
+ <ElementPath>type</ElementPath>
46
+ <Type>String</Type>
47
+ </PropertyDefn>
48
+ <PropertyDefn>
49
+ <Name>name</Name>
50
+ <ElementPath>name</ElementPath>
51
+ <Type>String</Type>
52
+ </PropertyDefn>
53
+ </GMLFeatureClass>
54
+ </GMLFeatureClassList>
@@ -0,0 +1,54 @@
1
+ <GMLFeatureClassList>
2
+ <GMLFeatureClass>
3
+ <Name>WL</Name>
4
+ <ElementPath>WL</ElementPath>
5
+ <GeometryElementPath>loc</GeometryElementPath>
6
+ <GeometryType>LineString</GeometryType>
7
+ <SRSName>urn:ogc:def:crs:EPSG::6668</SRSName>
8
+ <PropertyDefn>
9
+ <Name>fid</Name>
10
+ <ElementPath>fid</ElementPath>
11
+ <Type>String</Type>
12
+ </PropertyDefn>
13
+ <PropertyDefn>
14
+ <Name>lfSpanFr</Name>
15
+ <ElementPath>lfSpanFr|timePosition</ElementPath>
16
+ <Type>String</Type>
17
+ </PropertyDefn>
18
+ <PropertyDefn>
19
+ <Name>lfSpanTo</Name>
20
+ <ElementPath>lfSpanTo|timePosition</ElementPath>
21
+ <Type>String</Type>
22
+ </PropertyDefn>
23
+ <PropertyDefn>
24
+ <Name>devDate</Name>
25
+ <ElementPath>devDate|timePosition</ElementPath>
26
+ <Type>String</Type>
27
+ </PropertyDefn>
28
+ <PropertyDefn>
29
+ <Name>orgGILvl</Name>
30
+ <ElementPath>orgGILvl</ElementPath>
31
+ <Type>String</Type>
32
+ </PropertyDefn>
33
+ <PropertyDefn>
34
+ <Name>orgMDId</Name>
35
+ <ElementPath>orgMDId</ElementPath>
36
+ <Type>String</Type>
37
+ </PropertyDefn>
38
+ <PropertyDefn>
39
+ <Name>vis</Name>
40
+ <ElementPath>vis</ElementPath>
41
+ <Type>String</Type>
42
+ </PropertyDefn>
43
+ <PropertyDefn>
44
+ <Name>type</Name>
45
+ <ElementPath>type</ElementPath>
46
+ <Type>String</Type>
47
+ </PropertyDefn>
48
+ <PropertyDefn>
49
+ <Name>name</Name>
50
+ <ElementPath>name</ElementPath>
51
+ <Type>String</Type>
52
+ </PropertyDefn>
53
+ </GMLFeatureClass>
54
+ </GMLFeatureClassList>
@@ -0,0 +1,54 @@
1
+ <GMLFeatureClassList>
2
+ <GMLFeatureClass>
3
+ <Name>WStrA</Name>
4
+ <ElementPath>WStrA</ElementPath>
5
+ <GeometryElementPath>area</GeometryElementPath>
6
+ <GeometryType>Polygon</GeometryType>
7
+ <SRSName>urn:ogc:def:crs:EPSG::6668</SRSName>
8
+ <PropertyDefn>
9
+ <Name>fid</Name>
10
+ <ElementPath>fid</ElementPath>
11
+ <Type>String</Type>
12
+ </PropertyDefn>
13
+ <PropertyDefn>
14
+ <Name>lfSpanFr</Name>
15
+ <ElementPath>lfSpanFr|timePosition</ElementPath>
16
+ <Type>String</Type>
17
+ </PropertyDefn>
18
+ <PropertyDefn>
19
+ <Name>lfSpanTo</Name>
20
+ <ElementPath>lfSpanTo|timePosition</ElementPath>
21
+ <Type>String</Type>
22
+ </PropertyDefn>
23
+ <PropertyDefn>
24
+ <Name>devDate</Name>
25
+ <ElementPath>devDate|timePosition</ElementPath>
26
+ <Type>String</Type>
27
+ </PropertyDefn>
28
+ <PropertyDefn>
29
+ <Name>orgGILvl</Name>
30
+ <ElementPath>orgGILvl</ElementPath>
31
+ <Type>String</Type>
32
+ </PropertyDefn>
33
+ <PropertyDefn>
34
+ <Name>orgMDId</Name>
35
+ <ElementPath>orgMDId</ElementPath>
36
+ <Type>String</Type>
37
+ </PropertyDefn>
38
+ <PropertyDefn>
39
+ <Name>vis</Name>
40
+ <ElementPath>vis</ElementPath>
41
+ <Type>String</Type>
42
+ </PropertyDefn>
43
+ <PropertyDefn>
44
+ <Name>type</Name>
45
+ <ElementPath>type</ElementPath>
46
+ <Type>String</Type>
47
+ </PropertyDefn>
48
+ <PropertyDefn>
49
+ <Name>name</Name>
50
+ <ElementPath>name</ElementPath>
51
+ <Type>String</Type>
52
+ </PropertyDefn>
53
+ </GMLFeatureClass>
54
+ </GMLFeatureClassList>
@@ -0,0 +1,54 @@
1
+ <GMLFeatureClassList>
2
+ <GMLFeatureClass>
3
+ <Name>WStrL</Name>
4
+ <ElementPath>WStrL</ElementPath>
5
+ <GeometryElementPath>loc</GeometryElementPath>
6
+ <GeometryType>LineString</GeometryType>
7
+ <SRSName>urn:ogc:def:crs:EPSG::6668</SRSName>
8
+ <PropertyDefn>
9
+ <Name>fid</Name>
10
+ <ElementPath>fid</ElementPath>
11
+ <Type>String</Type>
12
+ </PropertyDefn>
13
+ <PropertyDefn>
14
+ <Name>lfSpanFr</Name>
15
+ <ElementPath>lfSpanFr|timePosition</ElementPath>
16
+ <Type>String</Type>
17
+ </PropertyDefn>
18
+ <PropertyDefn>
19
+ <Name>lfSpanTo</Name>
20
+ <ElementPath>lfSpanTo|timePosition</ElementPath>
21
+ <Type>String</Type>
22
+ </PropertyDefn>
23
+ <PropertyDefn>
24
+ <Name>devDate</Name>
25
+ <ElementPath>devDate|timePosition</ElementPath>
26
+ <Type>String</Type>
27
+ </PropertyDefn>
28
+ <PropertyDefn>
29
+ <Name>orgGILvl</Name>
30
+ <ElementPath>orgGILvl</ElementPath>
31
+ <Type>String</Type>
32
+ </PropertyDefn>
33
+ <PropertyDefn>
34
+ <Name>orgMDId</Name>
35
+ <ElementPath>orgMDId</ElementPath>
36
+ <Type>String</Type>
37
+ </PropertyDefn>
38
+ <PropertyDefn>
39
+ <Name>vis</Name>
40
+ <ElementPath>vis</ElementPath>
41
+ <Type>String</Type>
42
+ </PropertyDefn>
43
+ <PropertyDefn>
44
+ <Name>type</Name>
45
+ <ElementPath>type</ElementPath>
46
+ <Type>String</Type>
47
+ </PropertyDefn>
48
+ <PropertyDefn>
49
+ <Name>name</Name>
50
+ <ElementPath>name</ElementPath>
51
+ <Type>String</Type>
52
+ </PropertyDefn>
53
+ </GMLFeatureClass>
54
+ </GMLFeatureClassList>
@@ -0,0 +1,102 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
6
+ <title>%(xml_escaped_title)s</title>
7
+
8
+ <!-- Leaflet -->
9
+ <link rel="stylesheet" href="https://unpkg.com/leaflet@0.7.5/dist/leaflet.css" />
10
+ <script src="https://unpkg.com/leaflet@0.7.5/dist/leaflet.js"></script>
11
+
12
+ <style>
13
+ body { margin:0; padding:0; }
14
+ body, table, tr, td, th, div, h1, h2, input { font-family: "Calibri", "Trebuchet MS", "Ubuntu", Serif; font-size: 11pt; }
15
+ #map { position:absolute; top:0; bottom:0; width:100%; } /* full size */
16
+ .ctl {
17
+ padding: 2px 10px 2px 10px;
18
+ background: white;
19
+ background: rgba(255,255,255,0.9);
20
+ box-shadow: 0 0 15px rgba(0,0,0,0.2);
21
+ border-radius: 5px;
22
+ text-align: right;
23
+ }
24
+ .title {
25
+ font-size: 18pt;
26
+ font-weight: bold;
27
+ }
28
+ .src {
29
+ font-size: 10pt;
30
+ }
31
+
32
+ </style>
33
+
34
+ </head>
35
+ <body>
36
+
37
+ <div id="map"></div>
38
+
39
+ <script>
40
+ /* **** Leaflet **** */
41
+
42
+ // Base layers
43
+ // .. OpenStreetMap
44
+ var osm = L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors', minZoom: %(minzoom)s, maxZoom: %(maxzoom)s});
45
+
46
+ // .. CartoDB Positron
47
+ var cartodb = L.tileLayer('https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png', {attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, &copy; <a href="https://carto.com/attribution">CartoDB</a>', minZoom: %(minzoom)s, maxZoom: %(maxzoom)s});
48
+
49
+ // .. White background
50
+ var white = L.tileLayer("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEAAQMAAABmvDolAAAAA1BMVEX///+nxBvIAAAAH0lEQVQYGe3BAQ0AAADCIPunfg43YAAAAAAAAAAA5wIhAAAB9aK9BAAAAABJRU5ErkJggg==", {minZoom: %(minzoom)s, maxZoom: %(maxzoom)s});
51
+
52
+ // Overlay layers (TMS)
53
+ var lyr = L.tileLayer('./{z}/{x}/{y}.%(tileformat)s', {tms: %(tms)s, opacity: 0.7, attribution: "%(copyright)s", minZoom: %(minzoom)s, maxZoom: %(maxzoom)s});
54
+
55
+ // Map
56
+ var map = L.map('map', {
57
+ center: [%(centerlon)s, %(centerlat)s],
58
+ zoom: %(beginzoom)s,
59
+ minZoom: %(minzoom)s,
60
+ maxZoom: %(maxzoom)s,
61
+ layers: [osm, lyr]
62
+ });
63
+
64
+ var basemaps = {"OpenStreetMap": osm, "CartoDB Positron": cartodb, "Without background": white}
65
+ var overlaymaps = {"Layer": lyr}
66
+
67
+ // Title
68
+ var title = L.control();
69
+ title.onAdd = function(map) {
70
+ this._div = L.DomUtil.create('div', 'ctl title');
71
+ this.update();
72
+ return this._div;
73
+ };
74
+ title.update = function(props) {
75
+ this._div.innerHTML = "%(double_quote_escaped_title)s";
76
+ };
77
+ title.addTo(map);
78
+
79
+ // Note
80
+ var src = 'Generated by <a href="https://gdal.org/programs/gdal_raster_tile.html">gdal raster tile</a>';
81
+ var title = L.control({position: 'bottomleft'});
82
+ title.onAdd = function(map) {
83
+ this._div = L.DomUtil.create('div', 'ctl src');
84
+ this.update();
85
+ return this._div;
86
+ };
87
+ title.update = function(props) {
88
+ this._div.innerHTML = src;
89
+ };
90
+ title.addTo(map);
91
+
92
+
93
+ // Add base layers
94
+ L.control.layers(basemaps, overlaymaps, {collapsed: false}).addTo(map);
95
+
96
+ // Fit to overlay bounds (SW and NE points with (lat, lon))
97
+ map.fitBounds([[%(south)s, %(east)s], [%(north)s, %(west)s]]);
98
+
99
+ </script>
100
+
101
+ </body>
102
+ </html>
@@ -0,0 +1,125 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "description": "Schema for OGR_SCHEMA open option",
4
+ "oneOf": [
5
+ {
6
+ "$ref": "#/definitions/dataset"
7
+ }
8
+ ],
9
+ "definitions": {
10
+ "schemaType": {
11
+ "enum": [
12
+ "Patch",
13
+ "Full"
14
+ ]
15
+ },
16
+ "dataset": {
17
+ "type": "object",
18
+ "properties": {
19
+ "layers": {
20
+ "type": "array",
21
+ "description": "The list of layers contained in the schema",
22
+ "items": {
23
+ "$ref": "#/definitions/layer"
24
+ }
25
+ }
26
+ },
27
+ "required": [
28
+ "layers"
29
+ ],
30
+ "additionalProperties": false
31
+ },
32
+ "layer": {
33
+ "type": "object",
34
+ "properties": {
35
+ "name": {
36
+ "description": "The name of the layer",
37
+ "type": "string"
38
+ },
39
+ "schemaType": {
40
+ "description": "The type of schema operation: patch or full",
41
+ "$ref": "#/definitions/schemaType"
42
+ },
43
+ "fields": {
44
+ "description": "The list of field definitions",
45
+ "type": "array",
46
+ "items": {
47
+ "$ref": "#/definitions/field"
48
+ }
49
+ }
50
+ },
51
+ "required": [
52
+ "name",
53
+ "fields"
54
+ ],
55
+ "additionalProperties": false
56
+ },
57
+ "field": {
58
+ "description": "The field definition",
59
+ "additionalProperties": true,
60
+ "type": "object",
61
+ "properties": {
62
+ "name": {
63
+ "type": "string"
64
+ }
65
+ },
66
+ "anyOf": [
67
+ {
68
+ "type": "object",
69
+ "properties": {
70
+ "type": {
71
+ "$ref": "#/definitions/fieldType"
72
+ },
73
+ "subType": {
74
+ "$ref": "#/definitions/fieldSubType"
75
+ },
76
+ "width": {
77
+ "type": "integer"
78
+ },
79
+ "precision": {
80
+ "type": "integer"
81
+ }
82
+ }
83
+ },
84
+ {
85
+ "description": "The new name of the field",
86
+ "newName": {
87
+ "type": "string"
88
+ },
89
+ "required": [
90
+ "newName"
91
+ ]
92
+ }
93
+ ],
94
+ "required": [
95
+ "name"
96
+ ]
97
+ },
98
+ "fieldType": {
99
+ "enum": [
100
+ "Integer",
101
+ "Integer64",
102
+ "Real",
103
+ "String",
104
+ "Binary",
105
+ "IntegerList",
106
+ "Integer64List",
107
+ "RealList",
108
+ "StringList",
109
+ "Date",
110
+ "Time",
111
+ "DateTime"
112
+ ]
113
+ },
114
+ "fieldSubType": {
115
+ "enum": [
116
+ "None",
117
+ "Boolean",
118
+ "Int16",
119
+ "Float32",
120
+ "JSON",
121
+ "UUID"
122
+ ]
123
+ }
124
+ }
125
+ }