pyogrio 0.12.0__cp314-cp314t-macosx_12_0_arm64.whl

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 (231) hide show
  1. pyogrio/.dylibs/libgdal.37.3.11.4.dylib +0 -0
  2. pyogrio/__init__.py +57 -0
  3. pyogrio/_compat.py +54 -0
  4. pyogrio/_env.py +59 -0
  5. pyogrio/_err.cpython-314t-darwin.so +0 -0
  6. pyogrio/_geometry.cpython-314t-darwin.so +0 -0
  7. pyogrio/_io.cpython-314t-darwin.so +0 -0
  8. pyogrio/_ogr.cpython-314t-darwin.so +0 -0
  9. pyogrio/_version.py +21 -0
  10. pyogrio/_vsi.cpython-314t-darwin.so +0 -0
  11. pyogrio/core.py +387 -0
  12. pyogrio/errors.py +25 -0
  13. pyogrio/gdal_data/GDAL-targets-release.cmake +19 -0
  14. pyogrio/gdal_data/GDAL-targets.cmake +106 -0
  15. pyogrio/gdal_data/GDALConfig.cmake +24 -0
  16. pyogrio/gdal_data/GDALConfigVersion.cmake +65 -0
  17. pyogrio/gdal_data/GDALLogoBW.svg +138 -0
  18. pyogrio/gdal_data/GDALLogoColor.svg +126 -0
  19. pyogrio/gdal_data/GDALLogoGS.svg +126 -0
  20. pyogrio/gdal_data/LICENSE.TXT +467 -0
  21. pyogrio/gdal_data/MM_m_idofic.csv +321 -0
  22. pyogrio/gdal_data/copyright +467 -0
  23. pyogrio/gdal_data/cubewerx_extra.wkt +48 -0
  24. pyogrio/gdal_data/default.rsc +0 -0
  25. pyogrio/gdal_data/ecw_cs.wkt +1453 -0
  26. pyogrio/gdal_data/eedaconf.json +23 -0
  27. pyogrio/gdal_data/epsg.wkt +1 -0
  28. pyogrio/gdal_data/esri_StatePlane_extra.wkt +631 -0
  29. pyogrio/gdal_data/gdal_algorithm.schema.json +220 -0
  30. pyogrio/gdal_data/gdalg.schema.json +36 -0
  31. pyogrio/gdal_data/gdalicon.png +0 -0
  32. pyogrio/gdal_data/gdalinfo_output.schema.json +390 -0
  33. pyogrio/gdal_data/gdalmdiminfo_output.schema.json +326 -0
  34. pyogrio/gdal_data/gdaltileindex.xsd +253 -0
  35. pyogrio/gdal_data/gdalvrt.xsd +927 -0
  36. pyogrio/gdal_data/gfs.xsd +246 -0
  37. pyogrio/gdal_data/gml_registry.xml +117 -0
  38. pyogrio/gdal_data/gml_registry.xsd +66 -0
  39. pyogrio/gdal_data/grib2_center.csv +251 -0
  40. pyogrio/gdal_data/grib2_process.csv +102 -0
  41. pyogrio/gdal_data/grib2_subcenter.csv +63 -0
  42. pyogrio/gdal_data/grib2_table_4_2_0_0.csv +261 -0
  43. pyogrio/gdal_data/grib2_table_4_2_0_1.csv +261 -0
  44. pyogrio/gdal_data/grib2_table_4_2_0_13.csv +261 -0
  45. pyogrio/gdal_data/grib2_table_4_2_0_14.csv +261 -0
  46. pyogrio/gdal_data/grib2_table_4_2_0_15.csv +261 -0
  47. pyogrio/gdal_data/grib2_table_4_2_0_16.csv +261 -0
  48. pyogrio/gdal_data/grib2_table_4_2_0_17.csv +11 -0
  49. pyogrio/gdal_data/grib2_table_4_2_0_18.csv +261 -0
  50. pyogrio/gdal_data/grib2_table_4_2_0_19.csv +261 -0
  51. pyogrio/gdal_data/grib2_table_4_2_0_190.csv +261 -0
  52. pyogrio/gdal_data/grib2_table_4_2_0_191.csv +261 -0
  53. pyogrio/gdal_data/grib2_table_4_2_0_2.csv +261 -0
  54. pyogrio/gdal_data/grib2_table_4_2_0_20.csv +261 -0
  55. pyogrio/gdal_data/grib2_table_4_2_0_21.csv +261 -0
  56. pyogrio/gdal_data/grib2_table_4_2_0_3.csv +261 -0
  57. pyogrio/gdal_data/grib2_table_4_2_0_4.csv +261 -0
  58. pyogrio/gdal_data/grib2_table_4_2_0_5.csv +261 -0
  59. pyogrio/gdal_data/grib2_table_4_2_0_6.csv +261 -0
  60. pyogrio/gdal_data/grib2_table_4_2_0_7.csv +261 -0
  61. pyogrio/gdal_data/grib2_table_4_2_10_0.csv +261 -0
  62. pyogrio/gdal_data/grib2_table_4_2_10_1.csv +261 -0
  63. pyogrio/gdal_data/grib2_table_4_2_10_191.csv +261 -0
  64. pyogrio/gdal_data/grib2_table_4_2_10_2.csv +261 -0
  65. pyogrio/gdal_data/grib2_table_4_2_10_3.csv +261 -0
  66. pyogrio/gdal_data/grib2_table_4_2_10_4.csv +261 -0
  67. pyogrio/gdal_data/grib2_table_4_2_1_0.csv +261 -0
  68. pyogrio/gdal_data/grib2_table_4_2_1_1.csv +261 -0
  69. pyogrio/gdal_data/grib2_table_4_2_1_2.csv +261 -0
  70. pyogrio/gdal_data/grib2_table_4_2_20_0.csv +261 -0
  71. pyogrio/gdal_data/grib2_table_4_2_20_1.csv +261 -0
  72. pyogrio/gdal_data/grib2_table_4_2_20_2.csv +261 -0
  73. pyogrio/gdal_data/grib2_table_4_2_2_0.csv +261 -0
  74. pyogrio/gdal_data/grib2_table_4_2_2_3.csv +261 -0
  75. pyogrio/gdal_data/grib2_table_4_2_2_4.csv +261 -0
  76. pyogrio/gdal_data/grib2_table_4_2_2_5.csv +261 -0
  77. pyogrio/gdal_data/grib2_table_4_2_2_6.csv +261 -0
  78. pyogrio/gdal_data/grib2_table_4_2_3_0.csv +261 -0
  79. pyogrio/gdal_data/grib2_table_4_2_3_1.csv +261 -0
  80. pyogrio/gdal_data/grib2_table_4_2_3_2.csv +28 -0
  81. pyogrio/gdal_data/grib2_table_4_2_3_3.csv +8 -0
  82. pyogrio/gdal_data/grib2_table_4_2_3_4.csv +14 -0
  83. pyogrio/gdal_data/grib2_table_4_2_3_5.csv +11 -0
  84. pyogrio/gdal_data/grib2_table_4_2_3_6.csv +11 -0
  85. pyogrio/gdal_data/grib2_table_4_2_4_0.csv +261 -0
  86. pyogrio/gdal_data/grib2_table_4_2_4_1.csv +261 -0
  87. pyogrio/gdal_data/grib2_table_4_2_4_10.csv +261 -0
  88. pyogrio/gdal_data/grib2_table_4_2_4_2.csv +261 -0
  89. pyogrio/gdal_data/grib2_table_4_2_4_3.csv +261 -0
  90. pyogrio/gdal_data/grib2_table_4_2_4_4.csv +261 -0
  91. pyogrio/gdal_data/grib2_table_4_2_4_5.csv +261 -0
  92. pyogrio/gdal_data/grib2_table_4_2_4_6.csv +261 -0
  93. pyogrio/gdal_data/grib2_table_4_2_4_7.csv +261 -0
  94. pyogrio/gdal_data/grib2_table_4_2_4_8.csv +261 -0
  95. pyogrio/gdal_data/grib2_table_4_2_4_9.csv +261 -0
  96. pyogrio/gdal_data/grib2_table_4_2_local_Canada.csv +5 -0
  97. pyogrio/gdal_data/grib2_table_4_2_local_HPC.csv +2 -0
  98. pyogrio/gdal_data/grib2_table_4_2_local_MRMS.csv +175 -0
  99. pyogrio/gdal_data/grib2_table_4_2_local_NCEP.csv +401 -0
  100. pyogrio/gdal_data/grib2_table_4_2_local_NDFD.csv +38 -0
  101. pyogrio/gdal_data/grib2_table_4_2_local_index.csv +7 -0
  102. pyogrio/gdal_data/grib2_table_4_5.csv +261 -0
  103. pyogrio/gdal_data/grib2_table_versions.csv +3 -0
  104. pyogrio/gdal_data/gt_datum.csv +229 -0
  105. pyogrio/gdal_data/gt_ellips.csv +24 -0
  106. pyogrio/gdal_data/header.dxf +1124 -0
  107. pyogrio/gdal_data/inspire_cp_BasicPropertyUnit.gfs +57 -0
  108. pyogrio/gdal_data/inspire_cp_CadastralBoundary.gfs +60 -0
  109. pyogrio/gdal_data/inspire_cp_CadastralParcel.gfs +81 -0
  110. pyogrio/gdal_data/inspire_cp_CadastralZoning.gfs +161 -0
  111. pyogrio/gdal_data/jpfgdgml_AdmArea.gfs +59 -0
  112. pyogrio/gdal_data/jpfgdgml_AdmBdry.gfs +49 -0
  113. pyogrio/gdal_data/jpfgdgml_AdmPt.gfs +59 -0
  114. pyogrio/gdal_data/jpfgdgml_BldA.gfs +54 -0
  115. pyogrio/gdal_data/jpfgdgml_BldL.gfs +54 -0
  116. pyogrio/gdal_data/jpfgdgml_Cntr.gfs +54 -0
  117. pyogrio/gdal_data/jpfgdgml_CommBdry.gfs +49 -0
  118. pyogrio/gdal_data/jpfgdgml_CommPt.gfs +59 -0
  119. pyogrio/gdal_data/jpfgdgml_Cstline.gfs +54 -0
  120. pyogrio/gdal_data/jpfgdgml_ElevPt.gfs +54 -0
  121. pyogrio/gdal_data/jpfgdgml_GCP.gfs +94 -0
  122. pyogrio/gdal_data/jpfgdgml_LeveeEdge.gfs +49 -0
  123. pyogrio/gdal_data/jpfgdgml_RailCL.gfs +54 -0
  124. pyogrio/gdal_data/jpfgdgml_RdASL.gfs +44 -0
  125. pyogrio/gdal_data/jpfgdgml_RdArea.gfs +54 -0
  126. pyogrio/gdal_data/jpfgdgml_RdCompt.gfs +59 -0
  127. pyogrio/gdal_data/jpfgdgml_RdEdg.gfs +59 -0
  128. pyogrio/gdal_data/jpfgdgml_RdMgtBdry.gfs +49 -0
  129. pyogrio/gdal_data/jpfgdgml_RdSgmtA.gfs +59 -0
  130. pyogrio/gdal_data/jpfgdgml_RvrMgtBdry.gfs +49 -0
  131. pyogrio/gdal_data/jpfgdgml_SBAPt.gfs +49 -0
  132. pyogrio/gdal_data/jpfgdgml_SBArea.gfs +54 -0
  133. pyogrio/gdal_data/jpfgdgml_SBBdry.gfs +44 -0
  134. pyogrio/gdal_data/jpfgdgml_WA.gfs +54 -0
  135. pyogrio/gdal_data/jpfgdgml_WL.gfs +54 -0
  136. pyogrio/gdal_data/jpfgdgml_WStrA.gfs +54 -0
  137. pyogrio/gdal_data/jpfgdgml_WStrL.gfs +54 -0
  138. pyogrio/gdal_data/leaflet_template.html +102 -0
  139. pyogrio/gdal_data/nitf_spec.xml +3288 -0
  140. pyogrio/gdal_data/nitf_spec.xsd +171 -0
  141. pyogrio/gdal_data/ogr_fields_override.schema.json +125 -0
  142. pyogrio/gdal_data/ogrinfo_output.schema.json +528 -0
  143. pyogrio/gdal_data/ogrvrt.xsd +528 -0
  144. pyogrio/gdal_data/osmconf.ini +134 -0
  145. pyogrio/gdal_data/ozi_datum.csv +131 -0
  146. pyogrio/gdal_data/ozi_ellips.csv +35 -0
  147. pyogrio/gdal_data/pci_datum.txt +530 -0
  148. pyogrio/gdal_data/pci_ellips.txt +129 -0
  149. pyogrio/gdal_data/pdfcomposition.xsd +703 -0
  150. pyogrio/gdal_data/pds4_template.xml +65 -0
  151. pyogrio/gdal_data/plscenesconf.json +1985 -0
  152. pyogrio/gdal_data/ruian_vf_ob_v1.gfs +1455 -0
  153. pyogrio/gdal_data/ruian_vf_st_uvoh_v1.gfs +86 -0
  154. pyogrio/gdal_data/ruian_vf_st_v1.gfs +1489 -0
  155. pyogrio/gdal_data/ruian_vf_v1.gfs +2126 -0
  156. pyogrio/gdal_data/s57agencies.csv +249 -0
  157. pyogrio/gdal_data/s57attributes.csv +484 -0
  158. pyogrio/gdal_data/s57expectedinput.csv +1008 -0
  159. pyogrio/gdal_data/s57objectclasses.csv +287 -0
  160. pyogrio/gdal_data/seed_2d.dgn +0 -0
  161. pyogrio/gdal_data/seed_3d.dgn +0 -0
  162. pyogrio/gdal_data/stateplane.csv +259 -0
  163. pyogrio/gdal_data/template_tiles.mapml +28 -0
  164. pyogrio/gdal_data/tms_LINZAntarticaMapTileGrid.json +190 -0
  165. pyogrio/gdal_data/tms_MapML_APSTILE.json +268 -0
  166. pyogrio/gdal_data/tms_MapML_CBMTILE.json +346 -0
  167. pyogrio/gdal_data/tms_NZTM2000.json +243 -0
  168. pyogrio/gdal_data/trailer.dxf +434 -0
  169. pyogrio/gdal_data/usage +4 -0
  170. pyogrio/gdal_data/vcpkg-cmake-wrapper.cmake +23 -0
  171. pyogrio/gdal_data/vcpkg.spdx.json +291 -0
  172. pyogrio/gdal_data/vcpkg_abi_info.txt +45 -0
  173. pyogrio/gdal_data/vdv452.xml +349 -0
  174. pyogrio/gdal_data/vdv452.xsd +45 -0
  175. pyogrio/gdal_data/vicar.json +164 -0
  176. pyogrio/geopandas.py +978 -0
  177. pyogrio/proj_data/CH +22 -0
  178. pyogrio/proj_data/GL27 +23 -0
  179. pyogrio/proj_data/ITRF2000 +24 -0
  180. pyogrio/proj_data/ITRF2008 +94 -0
  181. pyogrio/proj_data/ITRF2014 +55 -0
  182. pyogrio/proj_data/ITRF2020 +91 -0
  183. pyogrio/proj_data/copyright +34 -0
  184. pyogrio/proj_data/deformation_model.schema.json +582 -0
  185. pyogrio/proj_data/nad.lst +142 -0
  186. pyogrio/proj_data/nad27 +810 -0
  187. pyogrio/proj_data/nad83 +745 -0
  188. pyogrio/proj_data/other.extra +53 -0
  189. pyogrio/proj_data/proj-config-version.cmake +44 -0
  190. pyogrio/proj_data/proj-config.cmake +79 -0
  191. pyogrio/proj_data/proj-targets-release.cmake +19 -0
  192. pyogrio/proj_data/proj-targets.cmake +107 -0
  193. pyogrio/proj_data/proj.db +0 -0
  194. pyogrio/proj_data/proj.ini +59 -0
  195. pyogrio/proj_data/proj4-targets-release.cmake +19 -0
  196. pyogrio/proj_data/proj4-targets.cmake +107 -0
  197. pyogrio/proj_data/projjson.schema.json +1174 -0
  198. pyogrio/proj_data/triangulation.schema.json +214 -0
  199. pyogrio/proj_data/usage +9 -0
  200. pyogrio/proj_data/vcpkg.spdx.json +203 -0
  201. pyogrio/proj_data/vcpkg_abi_info.txt +28 -0
  202. pyogrio/proj_data/world +214 -0
  203. pyogrio/raw.py +897 -0
  204. pyogrio/tests/__init__.py +0 -0
  205. pyogrio/tests/conftest.py +588 -0
  206. pyogrio/tests/fixtures/README.md +108 -0
  207. pyogrio/tests/fixtures/curve.gpkg +0 -0
  208. pyogrio/tests/fixtures/curvepolygon.gpkg +0 -0
  209. pyogrio/tests/fixtures/line_zm.gpkg +0 -0
  210. pyogrio/tests/fixtures/list_field_values_file.parquet +0 -0
  211. pyogrio/tests/fixtures/list_nested_struct_file.parquet +0 -0
  212. pyogrio/tests/fixtures/multisurface.gpkg +0 -0
  213. pyogrio/tests/fixtures/naturalearth_lowres/naturalearth_lowres.cpg +1 -0
  214. pyogrio/tests/fixtures/naturalearth_lowres/naturalearth_lowres.dbf +0 -0
  215. pyogrio/tests/fixtures/naturalearth_lowres/naturalearth_lowres.prj +1 -0
  216. pyogrio/tests/fixtures/naturalearth_lowres/naturalearth_lowres.shp +0 -0
  217. pyogrio/tests/fixtures/naturalearth_lowres/naturalearth_lowres.shx +0 -0
  218. pyogrio/tests/fixtures/sample.osm.pbf +0 -0
  219. pyogrio/tests/fixtures/test_gpkg_nulls.gpkg +0 -0
  220. pyogrio/tests/test_arrow.py +1160 -0
  221. pyogrio/tests/test_core.py +702 -0
  222. pyogrio/tests/test_geopandas_io.py +3218 -0
  223. pyogrio/tests/test_path.py +374 -0
  224. pyogrio/tests/test_raw_io.py +1473 -0
  225. pyogrio/tests/test_util.py +56 -0
  226. pyogrio/util.py +258 -0
  227. pyogrio-0.12.0.dist-info/METADATA +125 -0
  228. pyogrio-0.12.0.dist-info/RECORD +231 -0
  229. pyogrio-0.12.0.dist-info/WHEEL +6 -0
  230. pyogrio-0.12.0.dist-info/licenses/LICENSE +21 -0
  231. pyogrio-0.12.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,220 @@
1
+ {
2
+ "$id": "https://gdal.org/gdal_algorithm.schema.json",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "description": "Validate the output of the 'gdal [command] [subcommand] --json-usage'",
5
+
6
+ "oneOf": [
7
+ {
8
+ "$ref": "#/definitions/algorithm"
9
+ }
10
+ ],
11
+
12
+ "definitions": {
13
+
14
+ "algorithm": {
15
+ "type": "object",
16
+ "properties": {
17
+ "name": {
18
+ "type": "string",
19
+ "$comment": "Algorithm name. Normally always set, except for the top 'gdal' algorithm"
20
+ },
21
+ "full_path": {
22
+ "type": "array",
23
+ "items": {
24
+ "type": "string"
25
+ },
26
+ "$comment": "Full path to get to this algorithm. For example, for 'gdal raster info', this will be [\"gdal\", \"raster\", \"info\"]"
27
+ },
28
+ "description": {
29
+ "type": "string",
30
+ "$comment": "One sentence description of the algorithm"
31
+ },
32
+ "short_url": {
33
+ "type": "string",
34
+ "$comment": "URL to the help page, without the server. For example \"/programs/gdal_raster_info.html\""
35
+ },
36
+ "url": {
37
+ "type": "string",
38
+ "$comment": "Full URL to the help page. For example \"https://gdal.org/programs/gdal_raster_info.html\""
39
+ },
40
+ "sub_algorithms": {
41
+ "type": "array",
42
+ "items": {
43
+ "$ref": "#/definitions/algorithm"
44
+ },
45
+ "$comment": "Names of the immediate sub-algorithm of this algorithm. For example, or 'gdal raster', this will be [\"info\", \"convert\", ...]"
46
+ },
47
+ "input_arguments": {
48
+ "type": "array",
49
+ "items": {
50
+ "$ref": "#/definitions/argument"
51
+ },
52
+ "$comment": "Input arguments of the algorithm"
53
+ },
54
+ "output_arguments": {
55
+ "type": "array",
56
+ "items": {
57
+ "$ref": "#/definitions/argument"
58
+ },
59
+ "$comment": "Output arguments of the algorithm, that is arguments that are set by the algorithm (typically an output dataset)"
60
+ },
61
+ "input_output_arguments": {
62
+ "type": "array",
63
+ "items": {
64
+ "$ref": "#/definitions/argument"
65
+ },
66
+ "$comment": "Arguments of the algorithm that are both read and written by it."
67
+ },
68
+ "pipeline_algorithms": {
69
+ "type": "array",
70
+ "items": {
71
+ "$ref": "#/definitions/algorithm"
72
+ },
73
+ "$comment": "For pipeline algorithm, description of the accepted step algorithms. Only present for such pipeline algorithms"
74
+ },
75
+ "supports_streamed_output": {
76
+ "type": "boolean",
77
+ "$comment": "Whether the algorithm supports a streamed output dataset"
78
+ }
79
+ },
80
+ "required": [
81
+ "description",
82
+ "sub_algorithms",
83
+ "input_arguments",
84
+ "output_arguments",
85
+ "input_output_arguments"
86
+ ],
87
+ "additionalProperties": false
88
+ },
89
+
90
+ "argument": {
91
+ "type": "object",
92
+ "properties": {
93
+ "name": {
94
+ "type": "string",
95
+ "$comment": "Argument name"
96
+ },
97
+ "type": {
98
+ "enum": [
99
+ "boolean",
100
+ "integer",
101
+ "real",
102
+ "string",
103
+ "dataset",
104
+ "integer_list",
105
+ "real_list",
106
+ "string_list",
107
+ "dataset_list"
108
+ ],
109
+ "$comment": "Argument type"
110
+ },
111
+ "description": {
112
+ "type": "string",
113
+ "$comment": "Argument description"
114
+ },
115
+ "metavar": {
116
+ "type": "string",
117
+ "$comment": "Hint on the expected value of the argument"
118
+ },
119
+ "choices": {
120
+ "type": "array",
121
+ "items": {
122
+ "type": "string"
123
+ },
124
+ "$comment": "Valid values for the argument, when it accepts an enumeration as a value"
125
+ },
126
+ "default": {
127
+ "$comment": "Default value (optional)"
128
+ },
129
+ "min_value": {
130
+ "type": "number",
131
+ "$comment": "Minimum value allowed"
132
+ },
133
+ "min_value_is_included": {
134
+ "type": "boolean",
135
+ "$comment": "Whether min_value is included"
136
+ },
137
+ "max_value": {
138
+ "type": "number",
139
+ "$comment": "Maximum value allowed"
140
+ },
141
+ "max_value_is_included": {
142
+ "type": "boolean",
143
+ "$comment": "Whether max_value is included"
144
+ },
145
+ "required": {
146
+ "type": "boolean",
147
+ "$comment": "Whether this argument is required"
148
+ },
149
+ "packed_values_allowed": {
150
+ "type": "boolean",
151
+ "$comment": "For command-line specification, for multi-valued arguments (type: integer_list, real_list, string_list), whether comma-separated values are accepted. e.g. '--my-arg=first,second'"
152
+ },
153
+ "repeated_arg_allowed": {
154
+ "type": "boolean",
155
+ "$comment": "For command-line specification, for multi-valued arguments (type: integer_list, real_list, string_list), whether several repetition of the argument are accepted. e.g. '--my-arg first --my-arg second'"
156
+ },
157
+ "min_count": {
158
+ "type": "integer",
159
+ "$comment": "For multi-valued arguments (type: integer_list, real_list, string_list, dataset_list), minimum number of values"
160
+ },
161
+ "max_count": {
162
+ "type": "integer",
163
+ "$comment": "For multi-valued arguments (type: integer_list, real_list, string_list, dataset_list), maximum number of values"
164
+ },
165
+ "category": {
166
+ "type": "string",
167
+ "$comment": "Category of the argument. Common categories include \"Base\", \"Advanced\", \"Esoteric\", but algorithms may define their own categories."
168
+ },
169
+ "mutual_exclusion_group": {
170
+ "type": "string",
171
+ "$comment": "Identifier shared by several arguments to mean they are mutually exclusive."
172
+ },
173
+ "metadata": {
174
+ "type": "object",
175
+ "$comment": "Object whose keys are metadata item names. This is typically used for type=dataset arguments. e.g. \"metadata\":{ \"required_capabilities\":[ \"DCAP_RASTER\", \"DCAP_CREATECOPY\" ] }"
176
+ },
177
+ "dataset_type": {
178
+ "type": "array",
179
+ "items": {
180
+ "enum": [
181
+ "raster",
182
+ "vector",
183
+ "multidim_raster"
184
+ ]
185
+ },
186
+ "$comment": "Type of accepted datasets. Only used for type=dataset or type=dataset_list."
187
+ },
188
+ "input_flags": {
189
+ "type": "array",
190
+ "items": {
191
+ "enum": [
192
+ "name",
193
+ "dataset"
194
+ ]
195
+ },
196
+ "$comment": "Which fields of a dataset argument may be set, by the user, when the argument is dealt as an input dataset. Only used for type=dataset or type=dataset_list."
197
+ },
198
+ "output_flags": {
199
+ "type": "array",
200
+ "items": {
201
+ "enum": [
202
+ "name",
203
+ "dataset"
204
+ ]
205
+ },
206
+ "$comment": "Which fields of a dataset argument may be set, by the algorithm, when the argument is dealt as an output dataset. Only used for type=dataset or type=dataset_list."
207
+ }
208
+ },
209
+ "required": [
210
+ "name",
211
+ "type",
212
+ "description",
213
+ "required",
214
+ "category"
215
+ ],
216
+ "additionalProperties": false
217
+ }
218
+
219
+ }
220
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "description": "Schema for GDALG (GDAL Streamed Algorithm) files",
4
+
5
+ "oneOf": [
6
+ {
7
+ "$ref": "#/definitions/gdalg_root"
8
+ }
9
+ ],
10
+
11
+ "definitions": {
12
+ "gdalg_root": {
13
+ "type": "object",
14
+ "properties": {
15
+ "type": {
16
+ "type": "string",
17
+ "enum": [
18
+ "gdal_streamed_alg"
19
+ ]
20
+ },
21
+ "command_line": {
22
+ "type": "string"
23
+ },
24
+ "relative_paths_relative_to_this_file": {
25
+ "type": "boolean",
26
+ "default": true
27
+ }
28
+ },
29
+ "required": [
30
+ "type",
31
+ "command_line"
32
+ ],
33
+ "additional_properties": false
34
+ }
35
+ }
36
+ }
Binary file
@@ -0,0 +1,390 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "description": "Schema for gdalinfo -json output",
4
+
5
+ "oneOf": [
6
+ {
7
+ "$ref": "#/definitions/dataset"
8
+ }
9
+ ],
10
+
11
+ "definitions": {
12
+
13
+ "arrayOfTwoIntegers": {
14
+ "type": "array",
15
+ "items": {
16
+ "type": "integer",
17
+ "minItems": 2,
18
+ "maxItems": 2
19
+ }
20
+ },
21
+
22
+ "arrayOfTwoNumbers": {
23
+ "type": "array",
24
+ "items": {
25
+ "type": "number",
26
+ "minItems": 2,
27
+ "maxItems": 2
28
+ }
29
+ },
30
+
31
+ "band": {
32
+ "type": "object",
33
+ "properties": {
34
+ "band": {
35
+ "type": "integer"
36
+ },
37
+ "description": {
38
+ "type": "string"
39
+ },
40
+ "block": {
41
+ "$ref": "#/definitions/arrayOfTwoIntegers"
42
+ },
43
+ "checksum": {
44
+ "type": "integer"
45
+ },
46
+ "colorInterpretation": {
47
+ "type": "string"
48
+ },
49
+ "noDataValue": {
50
+ "anyOf": [
51
+ {
52
+ "type": "number"
53
+ },
54
+ {
55
+ "type": "string",
56
+ "const": "NaN"
57
+ }
58
+ ]
59
+ },
60
+ "type": {
61
+ "enum": [
62
+ "Byte",
63
+ "Int8",
64
+ "UInt16",
65
+ "Int16",
66
+ "UInt32",
67
+ "Int32",
68
+ "UInt64",
69
+ "Int64",
70
+ "Float16",
71
+ "Float32",
72
+ "Float64",
73
+ "CInt16",
74
+ "CInt32",
75
+ "CFloat16",
76
+ "CFloat32",
77
+ "CFloat64"
78
+ ]
79
+ },
80
+ "histogram": {
81
+ "type": "object",
82
+ "properties": {
83
+ "buckets": {
84
+ "type": "array",
85
+ "items": {
86
+ "type": "integer"
87
+ }
88
+ },
89
+ "count": {
90
+ "type": "integer"
91
+ },
92
+ "min": {
93
+ "type": "number"
94
+ },
95
+ "max": {
96
+ "type": "number"
97
+ }
98
+ }
99
+ },
100
+ "min": {
101
+ "type": "number"
102
+ },
103
+ "max": {
104
+ "type": "number"
105
+ },
106
+ "computedMin": {
107
+ "type": "number"
108
+ },
109
+ "computedMax": {
110
+ "type": "number"
111
+ },
112
+ "minimum": {
113
+ "type": "number"
114
+ },
115
+ "maximum": {
116
+ "type": "number"
117
+ },
118
+ "mean": {
119
+ "type": "number"
120
+ },
121
+ "stdDev": {
122
+ "type": "number"
123
+ },
124
+ "overviews": {
125
+ "type": "array",
126
+ "items": {
127
+ "type": "object",
128
+ "properties": {
129
+ "size": {
130
+ "$ref": "#/definitions/arrayOfTwoIntegers"
131
+ }
132
+ }
133
+ }
134
+ },
135
+ "metadata": {
136
+ "$ref": "#/definitions/metadata"
137
+ },
138
+ "colorTable": {
139
+ "type": "object",
140
+ "properties": {
141
+ "entries": {
142
+ "type": "array",
143
+ "items": {
144
+ "type": "array",
145
+ "items": {
146
+ "type": "integer",
147
+ "minItems": 4,
148
+ "maxItems": 4
149
+ }
150
+ }
151
+ },
152
+ "count": {
153
+ "type": "integer"
154
+ },
155
+ "palette": {
156
+ "type": "string"
157
+ }
158
+ }
159
+ },
160
+ "rat": {
161
+ "type": "object"
162
+ }
163
+ },
164
+ "required": [
165
+ "band",
166
+ "block",
167
+ "type"
168
+ ],
169
+ "additionalProperties": false
170
+ },
171
+
172
+ "cornerCoordinates": {
173
+ "type": "object",
174
+ "properties": {
175
+ "upperLeft": {
176
+ "$ref": "#/definitions/arrayOfTwoNumbers"
177
+ },
178
+ "lowerLeft": {
179
+ "$ref": "#/definitions/arrayOfTwoNumbers"
180
+ },
181
+ "lowerRight": {
182
+ "$ref": "#/definitions/arrayOfTwoNumbers"
183
+ },
184
+ "upperRight": {
185
+ "$ref": "#/definitions/arrayOfTwoNumbers"
186
+ },
187
+ "center": {
188
+ "$ref": "#/definitions/arrayOfTwoNumbers"
189
+ }
190
+ },
191
+ "required": [
192
+ "upperLeft",
193
+ "lowerLeft",
194
+ "lowerRight",
195
+ "upperRight",
196
+ "center"
197
+ ],
198
+ "additionalProperties": false
199
+ },
200
+
201
+ "dataset": {
202
+ "type": "object",
203
+ "properties": {
204
+ "description": {
205
+ "type": "string"
206
+ },
207
+ "driverShortName": {
208
+ "type": "string"
209
+ },
210
+ "driverLongName": {
211
+ "type": "string"
212
+ },
213
+ "files": {
214
+ "type": "array",
215
+ "items": {
216
+ "type": "string"
217
+ }
218
+ },
219
+ "size": {
220
+ "$comment": "note that the order of items in side is width,height",
221
+ "$ref": "#/definitions/arrayOfTwoIntegers"
222
+ },
223
+ "coordinateSystem": {
224
+ "$ref": "#/definitions/coordinateSystem"
225
+ },
226
+ "geoTransform": {
227
+ "type": "array",
228
+ "items": {
229
+ "type": "number",
230
+ "minItems": 6,
231
+ "maxItems": 6
232
+ }
233
+ },
234
+ "cornerCoordinates": {
235
+ "$ref": "#/definitions/cornerCoordinates"
236
+ },
237
+ "extent": {
238
+ "type": "object"
239
+ },
240
+ "wgs84Extent": {
241
+ "$ref": "https://geojson.org/schema/Geometry.json"
242
+ },
243
+ "bands": {
244
+ "type": "array",
245
+ "items": {
246
+ "$ref": "#/definitions/band"
247
+ }
248
+ },
249
+ "stac": {
250
+ "$ref": "#/definitions/stac"
251
+ },
252
+ "metadata": {
253
+ "$ref": "#/definitions/metadata"
254
+ }
255
+ },
256
+ "required": [
257
+ "size",
258
+ "bands"
259
+ ],
260
+ "additionalProperties": false
261
+ },
262
+
263
+ "metadata": {
264
+ "type": "object",
265
+ "$comment": "Object whose keys are metadata domain names. The empty string is a valid metadata domain name, and is used for the default domain.",
266
+ "patternProperties": {
267
+ "^.*$": {
268
+ "$ref": "#/definitions/metadataDomain"
269
+ }
270
+ }
271
+ },
272
+
273
+ "metadataDomain": {
274
+ "$comment": " The values of a metadadomain are key: string pairs, or arbitrary JSON objects for metadata domain names starting with the \"json:\" prefix.",
275
+ "any": [
276
+ {
277
+ "type": "object"
278
+ },
279
+ {
280
+ "type": "#/definitions/keyValueDict"
281
+ }
282
+ ]
283
+ },
284
+
285
+ "coordinateSystem": {
286
+ "type": "object",
287
+ "properties": {
288
+ "wkt": {
289
+ "type": "string"
290
+ },
291
+ "proj4": {
292
+ "type": "string"
293
+ },
294
+ "projjson": {
295
+ "$ref": "https://proj.org/schemas/v0.5/projjson.schema.json"
296
+ },
297
+ "dataAxisToSRSAxisMapping": {
298
+ "type": "array",
299
+ "items": {
300
+ "type": "number",
301
+ "minItems": 2,
302
+ "maxItems": 3
303
+ }
304
+ },
305
+ "coordinateEpoch": {
306
+ "type": "number"
307
+ }
308
+ },
309
+ "required": [
310
+ "wkt",
311
+ "dataAxisToSRSAxisMapping"
312
+ ],
313
+ "additionalProperties": false
314
+ },
315
+
316
+ "keyValueDict": {
317
+ "type": "object",
318
+ "patternProperties": {
319
+ "^.*$": {}
320
+ }
321
+ },
322
+
323
+ "stac": {
324
+ "$comment": "Derived from https://raw.githubusercontent.com/stac-extensions/projection/main/json-schema/schema.json#/definitions/fields, https://raw.githubusercontent.com/stac-extensions/eo/v1.1.0/json-schema/schema.json#/definitions/bands and https://raw.githubusercontent.com/stac-extensions/eo/v1.1.0/json-schema/schema.json#/definitions/bands",
325
+ "type": "object",
326
+ "properties": {
327
+ "proj:epsg": {
328
+ "title": "EPSG code",
329
+ "type": [
330
+ "integer",
331
+ "null"
332
+ ]
333
+ },
334
+ "proj:wkt2": {
335
+ "title": "Coordinate Reference System in WKT2 format",
336
+ "type": [
337
+ "string",
338
+ "null"
339
+ ]
340
+ },
341
+ "proj:projjson": {
342
+ "title": "Coordinate Reference System in PROJJSON format",
343
+ "oneOf": [
344
+ {
345
+ "$ref": "https://proj.org/schemas/v0.5/projjson.schema.json"
346
+ },
347
+ {
348
+ "type": "null"
349
+ }
350
+ ]
351
+ },
352
+
353
+ "proj:shape": {
354
+ "$comment": "note that the order of items in proj:shape is height,width starting with GDAL 3.8.5 (previous versions ordered it wrongly as width,height)",
355
+ "title": "Shape",
356
+ "type": "array",
357
+ "minItems": 2,
358
+ "maxItems": 2,
359
+ "items": {
360
+ "type": "integer"
361
+ }
362
+ },
363
+ "proj:transform": {
364
+ "title": "Transform",
365
+ "type": "array",
366
+ "oneOf": [
367
+ {
368
+ "minItems": 6,
369
+ "maxItems": 6
370
+ },
371
+ {
372
+ "minItems": 9,
373
+ "maxItems": 9
374
+ }
375
+ ],
376
+ "items": {
377
+ "type": "number"
378
+ }
379
+ },
380
+ "eo:bands": {
381
+ "$ref": "https://raw.githubusercontent.com/stac-extensions/eo/v1.1.0/json-schema/schema.json#/definitions/bands"
382
+ },
383
+ "raster:bands": {
384
+ "$ref": "https://raw.githubusercontent.com/stac-extensions/eo/v1.1.0/json-schema/schema.json#/definitions/bands"
385
+ }
386
+ },
387
+ "additionalProperties": false
388
+ }
389
+ }
390
+ }