@cpp.js/package-gdal 1.0.0-beta.22 → 1.0.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/CHANGELOG.md +38 -0
- package/README.md +1 -1
- package/cppjs.build.js +1 -0
- package/dist/prebuilt/Android-arm64-v8a/include/gdal_version.h +3 -3
- package/dist/prebuilt/Android-arm64-v8a/include/ogr_api.h +4 -4
- package/dist/prebuilt/Android-arm64-v8a/include/ogr_feature.h +2 -2
- package/dist/prebuilt/Android-arm64-v8a/lib/cmake/gdal/GDALConfigVersion.cmake +3 -3
- package/dist/prebuilt/Android-arm64-v8a/lib/libgdal.so +0 -0
- package/dist/prebuilt/Android-arm64-v8a/lib/pkgconfig/gdal.pc +1 -1
- package/dist/prebuilt/Android-arm64-v8a/share/gdal/gdalvrt.xsd +30 -24
- package/dist/prebuilt/Android-x86_64/include/cpl_atomic_ops.h +90 -0
- package/dist/prebuilt/Android-x86_64/include/cpl_auto_close.h +73 -0
- package/dist/prebuilt/Android-x86_64/include/cpl_compressor.h +112 -0
- package/dist/prebuilt/Android-x86_64/include/cpl_config.h +215 -0
- package/dist/prebuilt/Android-x86_64/include/cpl_config_extras.h +34 -0
- package/dist/prebuilt/Android-x86_64/include/cpl_conv.h +417 -0
- package/dist/prebuilt/Android-x86_64/include/cpl_csv.h +71 -0
- package/dist/prebuilt/Android-x86_64/include/cpl_error.h +344 -0
- package/dist/prebuilt/Android-x86_64/include/cpl_hash_set.h +83 -0
- package/dist/prebuilt/Android-x86_64/include/cpl_http.h +319 -0
- package/dist/prebuilt/Android-x86_64/include/cpl_json.h +301 -0
- package/dist/prebuilt/Android-x86_64/include/cpl_list.h +59 -0
- package/dist/prebuilt/Android-x86_64/include/cpl_minixml.h +211 -0
- package/dist/prebuilt/Android-x86_64/include/cpl_multiproc.h +241 -0
- package/dist/prebuilt/Android-x86_64/include/cpl_port.h +1182 -0
- package/dist/prebuilt/Android-x86_64/include/cpl_progress.h +49 -0
- package/dist/prebuilt/Android-x86_64/include/cpl_quad_tree.h +105 -0
- package/dist/prebuilt/Android-x86_64/include/cpl_spawn.h +60 -0
- package/dist/prebuilt/Android-x86_64/include/cpl_string.h +863 -0
- package/dist/prebuilt/Android-x86_64/include/cpl_time.h +29 -0
- package/dist/prebuilt/Android-x86_64/include/cpl_virtualmem.h +365 -0
- package/dist/prebuilt/Android-x86_64/include/cpl_vsi.h +830 -0
- package/dist/prebuilt/Android-x86_64/include/cpl_vsi_error.h +55 -0
- package/dist/prebuilt/Android-x86_64/include/cpl_vsi_virtual.h +580 -0
- package/dist/prebuilt/Android-x86_64/include/cplkeywordparser.h +61 -0
- package/dist/prebuilt/Android-x86_64/include/gdal.h +2667 -0
- package/dist/prebuilt/Android-x86_64/include/gdal_alg.h +717 -0
- package/dist/prebuilt/Android-x86_64/include/gdal_alg_priv.h +386 -0
- package/dist/prebuilt/Android-x86_64/include/gdal_csv.h +25 -0
- package/dist/prebuilt/Android-x86_64/include/gdal_frmts.h +236 -0
- package/dist/prebuilt/Android-x86_64/include/gdal_mdreader.h +240 -0
- package/dist/prebuilt/Android-x86_64/include/gdal_pam.h +461 -0
- package/dist/prebuilt/Android-x86_64/include/gdal_priv.h +4599 -0
- package/dist/prebuilt/Android-x86_64/include/gdal_proxy.h +470 -0
- package/dist/prebuilt/Android-x86_64/include/gdal_rat.h +390 -0
- package/dist/prebuilt/Android-x86_64/include/gdal_simplesurf.h +579 -0
- package/dist/prebuilt/Android-x86_64/include/gdal_utils.h +313 -0
- package/dist/prebuilt/Android-x86_64/include/gdal_version.h +33 -0
- package/dist/prebuilt/Android-x86_64/include/gdal_vrt.h +89 -0
- package/dist/prebuilt/Android-x86_64/include/gdalcachedpixelaccessor.h +439 -0
- package/dist/prebuilt/Android-x86_64/include/gdalgeorefpamdataset.h +73 -0
- package/dist/prebuilt/Android-x86_64/include/gdalgrid.h +102 -0
- package/dist/prebuilt/Android-x86_64/include/gdalgrid_priv.h +67 -0
- package/dist/prebuilt/Android-x86_64/include/gdaljp2abstractdataset.h +61 -0
- package/dist/prebuilt/Android-x86_64/include/gdaljp2metadata.h +237 -0
- package/dist/prebuilt/Android-x86_64/include/gdalpansharpen.h +258 -0
- package/dist/prebuilt/Android-x86_64/include/gdalsubdatasetinfo.h +104 -0
- package/dist/prebuilt/Android-x86_64/include/gdalwarper.h +622 -0
- package/dist/prebuilt/Android-x86_64/include/gnm.h +750 -0
- package/dist/prebuilt/Android-x86_64/include/gnm_api.h +101 -0
- package/dist/prebuilt/Android-x86_64/include/gnmgraph.h +258 -0
- package/dist/prebuilt/Android-x86_64/include/memdataset.h +176 -0
- package/dist/prebuilt/Android-x86_64/include/ogr_api.h +1024 -0
- package/dist/prebuilt/Android-x86_64/include/ogr_core.h +1321 -0
- package/dist/prebuilt/Android-x86_64/include/ogr_feature.h +1981 -0
- package/dist/prebuilt/Android-x86_64/include/ogr_featurestyle.h +858 -0
- package/dist/prebuilt/Android-x86_64/include/ogr_geocoding.h +46 -0
- package/dist/prebuilt/Android-x86_64/include/ogr_geomcoordinateprecision.h +79 -0
- package/dist/prebuilt/Android-x86_64/include/ogr_geometry.h +4346 -0
- package/dist/prebuilt/Android-x86_64/include/ogr_p.h +324 -0
- package/dist/prebuilt/Android-x86_64/include/ogr_recordbatch.h +125 -0
- package/dist/prebuilt/Android-x86_64/include/ogr_spatialref.h +1007 -0
- package/dist/prebuilt/Android-x86_64/include/ogr_srs_api.h +1088 -0
- package/dist/prebuilt/Android-x86_64/include/ogr_swq.h +529 -0
- package/dist/prebuilt/Android-x86_64/include/ogrsf_frmts.h +746 -0
- package/dist/prebuilt/Android-x86_64/include/rawdataset.h +255 -0
- package/dist/prebuilt/Android-x86_64/include/vrtdataset.h +2426 -0
- package/dist/prebuilt/Android-x86_64/lib/cmake/gdal/GDAL-targets-release.cmake +19 -0
- package/dist/prebuilt/Android-x86_64/lib/cmake/gdal/GDAL-targets.cmake +106 -0
- package/dist/prebuilt/Android-x86_64/lib/cmake/gdal/GDALConfig.cmake +21 -0
- package/dist/prebuilt/Android-x86_64/lib/cmake/gdal/GDALConfigVersion.cmake +85 -0
- package/dist/prebuilt/Android-x86_64/lib/gdalplugins/drivers.ini +290 -0
- package/dist/prebuilt/Android-x86_64/lib/libgdal.so +0 -0
- package/dist/prebuilt/Android-x86_64/lib/pkgconfig/gdal.pc +17 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/GDALLogoBW.svg +138 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/GDALLogoColor.svg +126 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/GDALLogoGS.svg +126 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/LICENSE.TXT +467 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/MM_m_idofic.csv +321 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/cubewerx_extra.wkt +48 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/default.rsc +0 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/ecw_cs.wkt +1453 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/epsg.wkt +1 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/esri_StatePlane_extra.wkt +631 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/gdalicon.png +0 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/gdalinfo_output.schema.json +346 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/gdalmdiminfo_output.schema.json +321 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/gdaltileindex.xsd +253 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/gdalvrt.xsd +887 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/gfs.xsd +246 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/gml_registry.xml +117 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/gml_registry.xsd +66 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_center.csv +251 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_process.csv +102 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_subcenter.csv +63 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_0_0.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_0_1.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_0_13.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_0_14.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_0_15.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_0_16.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_0_17.csv +11 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_0_18.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_0_19.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_0_190.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_0_191.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_0_2.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_0_20.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_0_21.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_0_3.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_0_4.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_0_5.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_0_6.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_0_7.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_10_0.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_10_1.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_10_191.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_10_2.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_10_3.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_10_4.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_1_0.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_1_1.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_1_2.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_20_0.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_20_1.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_20_2.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_2_0.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_2_3.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_2_4.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_2_5.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_2_6.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_3_0.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_3_1.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_3_2.csv +28 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_3_3.csv +8 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_3_4.csv +14 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_3_5.csv +11 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_3_6.csv +11 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_4_0.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_4_1.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_4_10.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_4_2.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_4_3.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_4_4.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_4_5.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_4_6.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_4_7.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_4_8.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_4_9.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_local_Canada.csv +5 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_local_HPC.csv +2 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_local_MRMS.csv +175 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_local_NCEP.csv +401 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_local_NDFD.csv +38 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_2_local_index.csv +7 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_4_5.csv +261 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/grib2_table_versions.csv +3 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/gt_datum.csv +229 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/gt_ellips.csv +24 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/header.dxf +1124 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/inspire_cp_BasicPropertyUnit.gfs +57 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/inspire_cp_CadastralBoundary.gfs +60 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/inspire_cp_CadastralParcel.gfs +81 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/inspire_cp_CadastralZoning.gfs +161 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/jpfgdgml_AdmArea.gfs +59 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/jpfgdgml_AdmBdry.gfs +49 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/jpfgdgml_AdmPt.gfs +59 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/jpfgdgml_BldA.gfs +54 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/jpfgdgml_BldL.gfs +54 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/jpfgdgml_Cntr.gfs +54 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/jpfgdgml_CommBdry.gfs +49 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/jpfgdgml_CommPt.gfs +59 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/jpfgdgml_Cstline.gfs +54 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/jpfgdgml_ElevPt.gfs +54 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/jpfgdgml_GCP.gfs +94 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/jpfgdgml_LeveeEdge.gfs +49 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/jpfgdgml_RailCL.gfs +54 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/jpfgdgml_RdASL.gfs +44 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/jpfgdgml_RdArea.gfs +54 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/jpfgdgml_RdCompt.gfs +59 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/jpfgdgml_RdEdg.gfs +59 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/jpfgdgml_RdMgtBdry.gfs +49 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/jpfgdgml_RdSgmtA.gfs +59 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/jpfgdgml_RvrMgtBdry.gfs +49 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/jpfgdgml_SBAPt.gfs +49 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/jpfgdgml_SBArea.gfs +54 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/jpfgdgml_SBBdry.gfs +44 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/jpfgdgml_WA.gfs +54 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/jpfgdgml_WL.gfs +54 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/jpfgdgml_WStrA.gfs +54 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/jpfgdgml_WStrL.gfs +54 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/nitf_spec.xml +3290 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/nitf_spec.xsd +173 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/ogrinfo_output.schema.json +528 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/ogrvrt.xsd +530 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/osmconf.ini +134 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/ozi_datum.csv +131 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/ozi_ellips.csv +35 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/pci_datum.txt +530 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/pci_ellips.txt +129 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/pdfcomposition.xsd +705 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/ruian_vf_ob_v1.gfs +1455 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/ruian_vf_st_uvoh_v1.gfs +86 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/ruian_vf_st_v1.gfs +1489 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/ruian_vf_v1.gfs +2126 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/s57agencies.csv +249 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/s57attributes.csv +484 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/s57expectedinput.csv +1008 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/s57objectclasses.csv +287 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/seed_2d.dgn +0 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/seed_3d.dgn +0 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/stateplane.csv +259 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/tms_LINZAntarticaMapTileGrid.json +190 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/tms_MapML_APSTILE.json +268 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/tms_MapML_CBMTILE.json +346 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/tms_NZTM2000.json +243 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/trailer.dxf +434 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/vdv452.xml +351 -0
- package/dist/prebuilt/Android-x86_64/share/gdal/vdv452.xsd +47 -0
- package/dist/prebuilt/Emscripten-x86_64/include/gdal_version.h +3 -3
- package/dist/prebuilt/Emscripten-x86_64/include/ogr_api.h +4 -4
- package/dist/prebuilt/Emscripten-x86_64/include/ogr_feature.h +2 -2
- package/dist/prebuilt/Emscripten-x86_64/lib/cmake/gdal/GDALConfigVersion.cmake +3 -3
- package/dist/prebuilt/Emscripten-x86_64/lib/cmake/gdal/thirdparty/FindDotnet.cmake +33 -36
- package/dist/prebuilt/Emscripten-x86_64/lib/libgdal.a +0 -0
- package/dist/prebuilt/Emscripten-x86_64/lib/pkgconfig/gdal.pc +1 -1
- package/dist/prebuilt/Emscripten-x86_64/share/gdal/gdalvrt.xsd +30 -24
- package/dist/prebuilt/iOS-iphoneos/include/gdal_version.h +3 -3
- package/dist/prebuilt/iOS-iphoneos/include/ogr_api.h +4 -4
- package/dist/prebuilt/iOS-iphoneos/include/ogr_feature.h +2 -2
- package/dist/prebuilt/iOS-iphoneos/share/gdal/gdalvrt.xsd +30 -24
- package/dist/prebuilt/iOS-iphonesimulator/include/gdal_version.h +3 -3
- package/dist/prebuilt/iOS-iphonesimulator/include/ogr_api.h +4 -4
- package/dist/prebuilt/iOS-iphonesimulator/include/ogr_feature.h +2 -2
- package/dist/prebuilt/iOS-iphonesimulator/share/gdal/gdalvrt.xsd +30 -24
- package/gdal.xcframework/ios-arm64_arm64e/Headers/gdal_version.h +3 -3
- package/gdal.xcframework/ios-arm64_arm64e/Headers/ogr_api.h +4 -4
- package/gdal.xcframework/ios-arm64_arm64e/Headers/ogr_feature.h +2 -2
- package/gdal.xcframework/ios-arm64_arm64e/libgdal.a +0 -0
- package/gdal.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/gdal_version.h +3 -3
- package/gdal.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/ogr_api.h +4 -4
- package/gdal.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/ogr_feature.h +2 -2
- package/gdal.xcframework/ios-arm64_arm64e_x86_64-simulator/libgdal.a +0 -0
- package/package.json +13 -13
- package/dist/prebuilt/Emscripten-x86_64/lib/cmake/gdal/packages/FindDB2.cmake +0 -103
|
@@ -0,0 +1,2667 @@
|
|
|
1
|
+
/******************************************************************************
|
|
2
|
+
* $Id$
|
|
3
|
+
*
|
|
4
|
+
* Project: GDAL Core
|
|
5
|
+
* Purpose: GDAL Core C/Public declarations.
|
|
6
|
+
* Author: Frank Warmerdam, warmerdam@pobox.com
|
|
7
|
+
*
|
|
8
|
+
******************************************************************************
|
|
9
|
+
* Copyright (c) 1998, 2002 Frank Warmerdam
|
|
10
|
+
* Copyright (c) 2007-2014, Even Rouault <even dot rouault at spatialys.com>
|
|
11
|
+
*
|
|
12
|
+
* SPDX-License-Identifier: MIT
|
|
13
|
+
****************************************************************************/
|
|
14
|
+
|
|
15
|
+
#ifndef GDAL_H_INCLUDED
|
|
16
|
+
#define GDAL_H_INCLUDED
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* \file gdal.h
|
|
20
|
+
*
|
|
21
|
+
* Public (C callable) GDAL entry points.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
#ifndef DOXYGEN_SKIP
|
|
25
|
+
#if defined(GDAL_COMPILATION)
|
|
26
|
+
#define DO_NOT_DEFINE_GDAL_DATE_NAME
|
|
27
|
+
#endif
|
|
28
|
+
#include "gdal_version.h"
|
|
29
|
+
#include "cpl_port.h"
|
|
30
|
+
#include "cpl_error.h"
|
|
31
|
+
#include "cpl_progress.h"
|
|
32
|
+
#include "cpl_virtualmem.h"
|
|
33
|
+
#include "cpl_minixml.h"
|
|
34
|
+
#include "ogr_api.h"
|
|
35
|
+
#endif
|
|
36
|
+
|
|
37
|
+
#include <stdbool.h>
|
|
38
|
+
#include <stdint.h>
|
|
39
|
+
|
|
40
|
+
/* -------------------------------------------------------------------- */
|
|
41
|
+
/* Significant constants. */
|
|
42
|
+
/* -------------------------------------------------------------------- */
|
|
43
|
+
|
|
44
|
+
CPL_C_START
|
|
45
|
+
|
|
46
|
+
/*! Pixel data types */
|
|
47
|
+
typedef enum
|
|
48
|
+
{
|
|
49
|
+
/*! Unknown or unspecified type */ GDT_Unknown = 0,
|
|
50
|
+
/*! Eight bit unsigned integer */ GDT_Byte = 1,
|
|
51
|
+
/*! 8-bit signed integer (GDAL >= 3.7) */ GDT_Int8 = 14,
|
|
52
|
+
/*! Sixteen bit unsigned integer */ GDT_UInt16 = 2,
|
|
53
|
+
/*! Sixteen bit signed integer */ GDT_Int16 = 3,
|
|
54
|
+
/*! Thirty two bit unsigned integer */ GDT_UInt32 = 4,
|
|
55
|
+
/*! Thirty two bit signed integer */ GDT_Int32 = 5,
|
|
56
|
+
/*! 64 bit unsigned integer (GDAL >= 3.5)*/ GDT_UInt64 = 12,
|
|
57
|
+
/*! 64 bit signed integer (GDAL >= 3.5)*/ GDT_Int64 = 13,
|
|
58
|
+
/*! Thirty two bit floating point */ GDT_Float32 = 6,
|
|
59
|
+
/*! Sixty four bit floating point */ GDT_Float64 = 7,
|
|
60
|
+
/*! Complex Int16 */ GDT_CInt16 = 8,
|
|
61
|
+
/*! Complex Int32 */ GDT_CInt32 = 9,
|
|
62
|
+
/* TODO?(#6879): GDT_CInt64 */
|
|
63
|
+
/*! Complex Float32 */ GDT_CFloat32 = 10,
|
|
64
|
+
/*! Complex Float64 */ GDT_CFloat64 = 11,
|
|
65
|
+
GDT_TypeCount = 15 /* maximum type # + 1 */
|
|
66
|
+
} GDALDataType;
|
|
67
|
+
|
|
68
|
+
int CPL_DLL CPL_STDCALL GDALGetDataTypeSize(GDALDataType); // Deprecated.
|
|
69
|
+
int CPL_DLL CPL_STDCALL GDALGetDataTypeSizeBits(GDALDataType eDataType);
|
|
70
|
+
int CPL_DLL CPL_STDCALL GDALGetDataTypeSizeBytes(GDALDataType);
|
|
71
|
+
int CPL_DLL CPL_STDCALL GDALDataTypeIsComplex(GDALDataType);
|
|
72
|
+
int CPL_DLL CPL_STDCALL GDALDataTypeIsInteger(GDALDataType);
|
|
73
|
+
int CPL_DLL CPL_STDCALL GDALDataTypeIsFloating(GDALDataType);
|
|
74
|
+
int CPL_DLL CPL_STDCALL GDALDataTypeIsSigned(GDALDataType);
|
|
75
|
+
const char CPL_DLL *CPL_STDCALL GDALGetDataTypeName(GDALDataType);
|
|
76
|
+
GDALDataType CPL_DLL CPL_STDCALL GDALGetDataTypeByName(const char *);
|
|
77
|
+
GDALDataType CPL_DLL CPL_STDCALL GDALDataTypeUnion(GDALDataType, GDALDataType);
|
|
78
|
+
GDALDataType CPL_DLL CPL_STDCALL GDALDataTypeUnionWithValue(GDALDataType eDT,
|
|
79
|
+
double dValue,
|
|
80
|
+
int bComplex);
|
|
81
|
+
GDALDataType CPL_DLL CPL_STDCALL GDALFindDataType(int nBits, int bSigned,
|
|
82
|
+
int bFloating, int bComplex);
|
|
83
|
+
GDALDataType CPL_DLL CPL_STDCALL GDALFindDataTypeForValue(double dValue,
|
|
84
|
+
int bComplex);
|
|
85
|
+
double CPL_DLL GDALAdjustValueToDataType(GDALDataType eDT, double dfValue,
|
|
86
|
+
int *pbClamped, int *pbRounded);
|
|
87
|
+
bool CPL_DLL GDALIsValueExactAs(double dfValue, GDALDataType eDT);
|
|
88
|
+
GDALDataType CPL_DLL CPL_STDCALL GDALGetNonComplexDataType(GDALDataType);
|
|
89
|
+
int CPL_DLL CPL_STDCALL GDALDataTypeIsConversionLossy(GDALDataType eTypeFrom,
|
|
90
|
+
GDALDataType eTypeTo);
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* status of the asynchronous stream
|
|
94
|
+
*/
|
|
95
|
+
typedef enum
|
|
96
|
+
{
|
|
97
|
+
GARIO_PENDING = 0,
|
|
98
|
+
GARIO_UPDATE = 1,
|
|
99
|
+
GARIO_ERROR = 2,
|
|
100
|
+
GARIO_COMPLETE = 3,
|
|
101
|
+
GARIO_TypeCount = 4
|
|
102
|
+
} GDALAsyncStatusType;
|
|
103
|
+
|
|
104
|
+
const char CPL_DLL *CPL_STDCALL GDALGetAsyncStatusTypeName(GDALAsyncStatusType);
|
|
105
|
+
GDALAsyncStatusType CPL_DLL CPL_STDCALL
|
|
106
|
+
GDALGetAsyncStatusTypeByName(const char *);
|
|
107
|
+
|
|
108
|
+
/*! Flag indicating read/write, or read-only access to data. */
|
|
109
|
+
typedef enum
|
|
110
|
+
{
|
|
111
|
+
/*! Read only (no update) access */ GA_ReadOnly = 0,
|
|
112
|
+
/*! Read/write access. */ GA_Update = 1
|
|
113
|
+
} GDALAccess;
|
|
114
|
+
|
|
115
|
+
/*! Read/Write flag for RasterIO() method */
|
|
116
|
+
typedef enum
|
|
117
|
+
{
|
|
118
|
+
/*! Read data */ GF_Read = 0,
|
|
119
|
+
/*! Write data */ GF_Write = 1
|
|
120
|
+
} GDALRWFlag;
|
|
121
|
+
|
|
122
|
+
/* NOTE: values are selected to be consistent with GDALResampleAlg of
|
|
123
|
+
* alg/gdalwarper.h */
|
|
124
|
+
/** RasterIO() resampling method.
|
|
125
|
+
* @since GDAL 2.0
|
|
126
|
+
*/
|
|
127
|
+
typedef enum
|
|
128
|
+
{
|
|
129
|
+
/*! Nearest neighbour */ GRIORA_NearestNeighbour = 0,
|
|
130
|
+
/*! Bilinear (2x2 kernel) */ GRIORA_Bilinear = 1,
|
|
131
|
+
/*! Cubic Convolution Approximation (4x4 kernel) */ GRIORA_Cubic = 2,
|
|
132
|
+
/*! Cubic B-Spline Approximation (4x4 kernel) */ GRIORA_CubicSpline = 3,
|
|
133
|
+
/*! Lanczos windowed sinc interpolation (6x6 kernel) */ GRIORA_Lanczos = 4,
|
|
134
|
+
/*! Average */ GRIORA_Average = 5,
|
|
135
|
+
/*! Mode (selects the value which appears most often of all the sampled
|
|
136
|
+
points) */
|
|
137
|
+
GRIORA_Mode = 6,
|
|
138
|
+
/*! Gauss blurring */ GRIORA_Gauss = 7,
|
|
139
|
+
/* NOTE: values 8 to 13 are reserved for max,min,med,Q1,Q3,sum */
|
|
140
|
+
/*! @cond Doxygen_Suppress */
|
|
141
|
+
GRIORA_RESERVED_START = 8,
|
|
142
|
+
GRIORA_RESERVED_END = 13,
|
|
143
|
+
/*! @endcond */
|
|
144
|
+
/** RMS: Root Mean Square / Quadratic Mean.
|
|
145
|
+
* For complex numbers, applies on the real and imaginary part
|
|
146
|
+
* independently.
|
|
147
|
+
*/
|
|
148
|
+
GRIORA_RMS = 14,
|
|
149
|
+
/*! @cond Doxygen_Suppress */
|
|
150
|
+
GRIORA_LAST = GRIORA_RMS
|
|
151
|
+
/*! @endcond */
|
|
152
|
+
} GDALRIOResampleAlg;
|
|
153
|
+
|
|
154
|
+
/* NOTE to developers: only add members, and if so edit INIT_RASTERIO_EXTRA_ARG
|
|
155
|
+
*/
|
|
156
|
+
/** Structure to pass extra arguments to RasterIO() method,
|
|
157
|
+
* must be initialized with INIT_RASTERIO_EXTRA_ARG
|
|
158
|
+
* @since GDAL 2.0
|
|
159
|
+
*/
|
|
160
|
+
typedef struct
|
|
161
|
+
{
|
|
162
|
+
/*! Version of structure (to allow future extensions of the structure) */
|
|
163
|
+
int nVersion;
|
|
164
|
+
|
|
165
|
+
/*! Resampling algorithm */
|
|
166
|
+
GDALRIOResampleAlg eResampleAlg;
|
|
167
|
+
|
|
168
|
+
/*! Progress callback */
|
|
169
|
+
GDALProgressFunc pfnProgress;
|
|
170
|
+
/*! Progress callback user data */
|
|
171
|
+
void *pProgressData;
|
|
172
|
+
|
|
173
|
+
/*! Indicate if dfXOff, dfYOff, dfXSize and dfYSize are set.
|
|
174
|
+
Mostly reserved from the VRT driver to communicate a more precise
|
|
175
|
+
source window. Must be such that dfXOff - nXOff < 1.0 and
|
|
176
|
+
dfYOff - nYOff < 1.0 and nXSize - dfXSize < 1.0 and nYSize - dfYSize
|
|
177
|
+
< 1.0 */
|
|
178
|
+
int bFloatingPointWindowValidity;
|
|
179
|
+
/*! Pixel offset to the top left corner. Only valid if
|
|
180
|
+
* bFloatingPointWindowValidity = TRUE */
|
|
181
|
+
double dfXOff;
|
|
182
|
+
/*! Line offset to the top left corner. Only valid if
|
|
183
|
+
* bFloatingPointWindowValidity = TRUE */
|
|
184
|
+
double dfYOff;
|
|
185
|
+
/*! Width in pixels of the area of interest. Only valid if
|
|
186
|
+
* bFloatingPointWindowValidity = TRUE */
|
|
187
|
+
double dfXSize;
|
|
188
|
+
/*! Height in pixels of the area of interest. Only valid if
|
|
189
|
+
* bFloatingPointWindowValidity = TRUE */
|
|
190
|
+
double dfYSize;
|
|
191
|
+
} GDALRasterIOExtraArg;
|
|
192
|
+
|
|
193
|
+
#ifndef DOXYGEN_SKIP
|
|
194
|
+
#define RASTERIO_EXTRA_ARG_CURRENT_VERSION 1
|
|
195
|
+
#endif
|
|
196
|
+
|
|
197
|
+
/** Macro to initialize an instance of GDALRasterIOExtraArg structure.
|
|
198
|
+
* @since GDAL 2.0
|
|
199
|
+
*/
|
|
200
|
+
#define INIT_RASTERIO_EXTRA_ARG(s) \
|
|
201
|
+
do \
|
|
202
|
+
{ \
|
|
203
|
+
(s).nVersion = RASTERIO_EXTRA_ARG_CURRENT_VERSION; \
|
|
204
|
+
(s).eResampleAlg = GRIORA_NearestNeighbour; \
|
|
205
|
+
(s).pfnProgress = CPL_NULLPTR; \
|
|
206
|
+
(s).pProgressData = CPL_NULLPTR; \
|
|
207
|
+
(s).bFloatingPointWindowValidity = FALSE; \
|
|
208
|
+
} while (0)
|
|
209
|
+
|
|
210
|
+
/** Value indicating the start of the range for color interpretations belonging
|
|
211
|
+
* to the InfraRed (IR) domain. All constants of the GDALColorInterp enumeration
|
|
212
|
+
* in the IR domain are in the [GCI_IR_Start, GCI_IR_End] range.
|
|
213
|
+
*
|
|
214
|
+
* @since 3.10
|
|
215
|
+
*/
|
|
216
|
+
#define GCI_IR_Start 20
|
|
217
|
+
|
|
218
|
+
/** Value indicating the end of the range for color interpretations belonging
|
|
219
|
+
* to the InfraRed (IR) domain. All constants of the GDALColorInterp enumeration
|
|
220
|
+
* in the IR domain are in the [GCI_IR_Start, GCI_IR_End] range.
|
|
221
|
+
*
|
|
222
|
+
* @since 3.10
|
|
223
|
+
*/
|
|
224
|
+
#define GCI_IR_End 29
|
|
225
|
+
|
|
226
|
+
/** Value indicating the start of the range for color interpretations belonging
|
|
227
|
+
* to the Synthetic Aperture Radar (SAR) domain.
|
|
228
|
+
* All constants of the GDALColorInterp enumeration
|
|
229
|
+
* in the SAR domain are in the [GCI_SAR_Start, GCI_SAR_End] range.
|
|
230
|
+
*
|
|
231
|
+
* @since 3.10
|
|
232
|
+
*/
|
|
233
|
+
#define GCI_SAR_Start 30
|
|
234
|
+
|
|
235
|
+
/** Value indicating the end of the range for color interpretations belonging
|
|
236
|
+
* to the Synthetic Aperture Radar (SAR) domain.
|
|
237
|
+
* All constants of the GDALColorInterp enumeration
|
|
238
|
+
* in the SAR domain are in the [GCI_SAR_Start, GCI_SAR_End] range.
|
|
239
|
+
*
|
|
240
|
+
* @since 3.10
|
|
241
|
+
*/
|
|
242
|
+
#define GCI_SAR_End 39
|
|
243
|
+
|
|
244
|
+
/** Types of color interpretation for raster bands.
|
|
245
|
+
*
|
|
246
|
+
* For spectral bands, the wavelength ranges are indicative only, and may vary
|
|
247
|
+
* depending on sensors. The CENTRAL_WAVELENGTH_UM and FWHM_UM metadata
|
|
248
|
+
* items in the IMAGERY metadata domain of the raster band, when present, will
|
|
249
|
+
* give more accurate characteristics.
|
|
250
|
+
*
|
|
251
|
+
* Values belonging to the IR domain are in the [GCI_IR_Start, GCI_IR_End] range.
|
|
252
|
+
* Values belonging to the SAR domain are in the [GCI_SAR_Start, GCI_SAR_End] range.
|
|
253
|
+
*
|
|
254
|
+
* Values between GCI_PanBand to GCI_SAR_Reserved_2 have been added in GDAL 3.10.
|
|
255
|
+
*/
|
|
256
|
+
typedef enum
|
|
257
|
+
{
|
|
258
|
+
/*! Undefined */ GCI_Undefined = 0,
|
|
259
|
+
/*! Greyscale */ GCI_GrayIndex = 1,
|
|
260
|
+
/*! Paletted (see associated color table) */ GCI_PaletteIndex = 2,
|
|
261
|
+
/*! Red band of RGBA image, or red spectral band [0.62 - 0.69 um]*/
|
|
262
|
+
GCI_RedBand = 3,
|
|
263
|
+
/*! Green band of RGBA image, or green spectral band [0.51 - 0.60 um]*/
|
|
264
|
+
GCI_GreenBand = 4,
|
|
265
|
+
/*! Blue band of RGBA image, or blue spectral band [0.45 - 0.53 um] */
|
|
266
|
+
GCI_BlueBand = 5,
|
|
267
|
+
/*! Alpha (0=transparent, 255=opaque) */ GCI_AlphaBand = 6,
|
|
268
|
+
/*! Hue band of HLS image */ GCI_HueBand = 7,
|
|
269
|
+
/*! Saturation band of HLS image */ GCI_SaturationBand = 8,
|
|
270
|
+
/*! Lightness band of HLS image */ GCI_LightnessBand = 9,
|
|
271
|
+
/*! Cyan band of CMYK image */ GCI_CyanBand = 10,
|
|
272
|
+
/*! Magenta band of CMYK image */ GCI_MagentaBand = 11,
|
|
273
|
+
/*! Yellow band of CMYK image, or yellow spectral band [0.58 - 0.62 um] */
|
|
274
|
+
GCI_YellowBand = 12,
|
|
275
|
+
/*! Black band of CMYK image */ GCI_BlackBand = 13,
|
|
276
|
+
/*! Y Luminance */ GCI_YCbCr_YBand = 14,
|
|
277
|
+
/*! Cb Chroma */ GCI_YCbCr_CbBand = 15,
|
|
278
|
+
/*! Cr Chroma */ GCI_YCbCr_CrBand = 16,
|
|
279
|
+
|
|
280
|
+
/* GDAL 3.10 addition: begin */
|
|
281
|
+
/*! Panchromatic band [0.40 - 1.00 um] */ GCI_PanBand = 17,
|
|
282
|
+
/*! Coastal band [0.40 - 0.45 um] */ GCI_CoastalBand = 18,
|
|
283
|
+
/*! Red-edge band [0.69 - 0.79 um] */ GCI_RedEdgeBand = 19,
|
|
284
|
+
|
|
285
|
+
/*! Near-InfraRed (NIR) band [0.75 - 1.40 um] */ GCI_NIRBand =
|
|
286
|
+
GCI_IR_Start + 0,
|
|
287
|
+
/*! Short-Wavelength InfraRed (SWIR) band [1.40 - 3.00 um] */ GCI_SWIRBand =
|
|
288
|
+
GCI_IR_Start + 1,
|
|
289
|
+
/*! Mid-Wavelength InfraRed (MWIR) band [3.00 - 8.00 um] */ GCI_MWIRBand =
|
|
290
|
+
GCI_IR_Start + 2,
|
|
291
|
+
/*! Long-Wavelength InfraRed (LWIR) band [8.00 - 15 um] */ GCI_LWIRBand =
|
|
292
|
+
GCI_IR_Start + 3,
|
|
293
|
+
/*! Thermal InfraRed (TIR) band (MWIR or LWIR) [3 - 15 um] */ GCI_TIRBand =
|
|
294
|
+
GCI_IR_Start + 4,
|
|
295
|
+
/*! Other infrared band [0.75 - 1000 um] */ GCI_OtherIRBand =
|
|
296
|
+
GCI_IR_Start + 5,
|
|
297
|
+
/*! Reserved value. Do not set it ! */
|
|
298
|
+
GCI_IR_Reserved_1 = GCI_IR_Start + 6,
|
|
299
|
+
/*! Reserved value. Do not set it ! */
|
|
300
|
+
GCI_IR_Reserved_2 = GCI_IR_Start + 7,
|
|
301
|
+
/*! Reserved value. Do not set it ! */
|
|
302
|
+
GCI_IR_Reserved_3 = GCI_IR_Start + 8,
|
|
303
|
+
/*! Reserved value. Do not set it ! */
|
|
304
|
+
GCI_IR_Reserved_4 = GCI_IR_Start + 9,
|
|
305
|
+
|
|
306
|
+
/*! Synthetic Aperture Radar (SAR) Ka band [0.8 - 1.1 cm / 27 - 40 GHz] */
|
|
307
|
+
GCI_SAR_Ka_Band = GCI_SAR_Start + 0,
|
|
308
|
+
/*! Synthetic Aperture Radar (SAR) K band [1.1 - 1.7 cm / 18 - 27 GHz] */
|
|
309
|
+
GCI_SAR_K_Band = GCI_SAR_Start + 1,
|
|
310
|
+
/*! Synthetic Aperture Radar (SAR) Ku band [1.7 - 2.4 cm / 12 - 18 GHz] */
|
|
311
|
+
GCI_SAR_Ku_Band = GCI_SAR_Start + 2,
|
|
312
|
+
/*! Synthetic Aperture Radar (SAR) X band [2.4 - 3.8 cm / 8 - 12 GHz] */
|
|
313
|
+
GCI_SAR_X_Band = GCI_SAR_Start + 3,
|
|
314
|
+
/*! Synthetic Aperture Radar (SAR) C band [3.8 - 7.5 cm / 4 - 8 GHz] */
|
|
315
|
+
GCI_SAR_C_Band = GCI_SAR_Start + 4,
|
|
316
|
+
/*! Synthetic Aperture Radar (SAR) S band [7.5 - 15 cm / 2 - 4 GHz] */
|
|
317
|
+
GCI_SAR_S_Band = GCI_SAR_Start + 5,
|
|
318
|
+
/*! Synthetic Aperture Radar (SAR) L band [15 - 30 cm / 1 - 2 GHz] */
|
|
319
|
+
GCI_SAR_L_Band = GCI_SAR_Start + 6,
|
|
320
|
+
/*! Synthetic Aperture Radar (SAR) P band [30 - 100 cm / 0.3 - 1 GHz] */
|
|
321
|
+
GCI_SAR_P_Band = GCI_SAR_Start + 7,
|
|
322
|
+
/*! Reserved value. Do not set it ! */
|
|
323
|
+
GCI_SAR_Reserved_1 = GCI_SAR_Start + 8,
|
|
324
|
+
/*! Reserved value. Do not set it ! */
|
|
325
|
+
GCI_SAR_Reserved_2 = GCI_SAR_Start + 9,
|
|
326
|
+
|
|
327
|
+
/* GDAL 3.10 addition: end */
|
|
328
|
+
|
|
329
|
+
/*! Max current value (equals to GCI_SAR_Reserved_2 currently) */ GCI_Max =
|
|
330
|
+
GCI_SAR_Reserved_2
|
|
331
|
+
} GDALColorInterp;
|
|
332
|
+
|
|
333
|
+
const char CPL_DLL *GDALGetColorInterpretationName(GDALColorInterp);
|
|
334
|
+
GDALColorInterp CPL_DLL GDALGetColorInterpretationByName(const char *pszName);
|
|
335
|
+
|
|
336
|
+
/*! Types of color interpretations for a GDALColorTable. */
|
|
337
|
+
typedef enum
|
|
338
|
+
{
|
|
339
|
+
/*! Grayscale (in GDALColorEntry.c1) */ GPI_Gray = 0,
|
|
340
|
+
/*! Red, Green, Blue and Alpha in (in c1, c2, c3 and c4) */ GPI_RGB = 1,
|
|
341
|
+
/*! Cyan, Magenta, Yellow and Black (in c1, c2, c3 and c4)*/ GPI_CMYK = 2,
|
|
342
|
+
/*! Hue, Lightness and Saturation (in c1, c2, and c3) */ GPI_HLS = 3
|
|
343
|
+
} GDALPaletteInterp;
|
|
344
|
+
|
|
345
|
+
const char CPL_DLL *GDALGetPaletteInterpretationName(GDALPaletteInterp);
|
|
346
|
+
|
|
347
|
+
/* "well known" metadata items. */
|
|
348
|
+
|
|
349
|
+
/** Metadata item for dataset that indicates the spatial interpretation of a
|
|
350
|
+
* pixel */
|
|
351
|
+
#define GDALMD_AREA_OR_POINT "AREA_OR_POINT"
|
|
352
|
+
/** Value for GDALMD_AREA_OR_POINT that indicates that a pixel represents an
|
|
353
|
+
* area */
|
|
354
|
+
#define GDALMD_AOP_AREA "Area"
|
|
355
|
+
/** Value for GDALMD_AREA_OR_POINT that indicates that a pixel represents a
|
|
356
|
+
* point */
|
|
357
|
+
#define GDALMD_AOP_POINT "Point"
|
|
358
|
+
|
|
359
|
+
/* -------------------------------------------------------------------- */
|
|
360
|
+
/* GDAL Specific error codes. */
|
|
361
|
+
/* */
|
|
362
|
+
/* error codes 100 to 299 reserved for GDAL. */
|
|
363
|
+
/* -------------------------------------------------------------------- */
|
|
364
|
+
#ifndef DOXYGEN_SKIP
|
|
365
|
+
#define CPLE_WrongFormat CPL_STATIC_CAST(CPLErrorNum, 200)
|
|
366
|
+
#endif
|
|
367
|
+
|
|
368
|
+
/* -------------------------------------------------------------------- */
|
|
369
|
+
/* Define handle types related to various internal classes. */
|
|
370
|
+
/* -------------------------------------------------------------------- */
|
|
371
|
+
|
|
372
|
+
/** Opaque type used for the C bindings of the C++ GDALMajorObject class */
|
|
373
|
+
typedef void *GDALMajorObjectH;
|
|
374
|
+
|
|
375
|
+
/** Opaque type used for the C bindings of the C++ GDALDataset class */
|
|
376
|
+
typedef void *GDALDatasetH;
|
|
377
|
+
|
|
378
|
+
/** Opaque type used for the C bindings of the C++ GDALRasterBand class */
|
|
379
|
+
typedef void *GDALRasterBandH;
|
|
380
|
+
|
|
381
|
+
/** Opaque type used for the C bindings of the C++ GDALDriver class */
|
|
382
|
+
typedef void *GDALDriverH;
|
|
383
|
+
|
|
384
|
+
/** Opaque type used for the C bindings of the C++ GDALColorTable class */
|
|
385
|
+
typedef void *GDALColorTableH;
|
|
386
|
+
|
|
387
|
+
/** Opaque type used for the C bindings of the C++ GDALRasterAttributeTable
|
|
388
|
+
* class */
|
|
389
|
+
typedef void *GDALRasterAttributeTableH;
|
|
390
|
+
|
|
391
|
+
/** Opaque type used for the C bindings of the C++ GDALAsyncReader class */
|
|
392
|
+
typedef void *GDALAsyncReaderH;
|
|
393
|
+
|
|
394
|
+
/** Opaque type used for the C bindings of the C++ GDALRelationship class
|
|
395
|
+
* @since GDAL 3.6
|
|
396
|
+
*/
|
|
397
|
+
typedef void *GDALRelationshipH;
|
|
398
|
+
|
|
399
|
+
/** Type to express pixel, line or band spacing. Signed 64 bit integer. */
|
|
400
|
+
typedef GIntBig GSpacing;
|
|
401
|
+
|
|
402
|
+
/** Enumeration giving the class of a GDALExtendedDataType.
|
|
403
|
+
* @since GDAL 3.1
|
|
404
|
+
*/
|
|
405
|
+
typedef enum
|
|
406
|
+
{
|
|
407
|
+
/** Numeric value. Based on GDALDataType enumeration */
|
|
408
|
+
GEDTC_NUMERIC,
|
|
409
|
+
/** String value. */
|
|
410
|
+
GEDTC_STRING,
|
|
411
|
+
/** Compound data type. */
|
|
412
|
+
GEDTC_COMPOUND
|
|
413
|
+
} GDALExtendedDataTypeClass;
|
|
414
|
+
|
|
415
|
+
/** Enumeration giving the subtype of a GDALExtendedDataType.
|
|
416
|
+
* @since GDAL 3.4
|
|
417
|
+
*/
|
|
418
|
+
typedef enum
|
|
419
|
+
{
|
|
420
|
+
/** None. */
|
|
421
|
+
GEDTST_NONE,
|
|
422
|
+
/** JSon. Only applies to GEDTC_STRING */
|
|
423
|
+
GEDTST_JSON
|
|
424
|
+
} GDALExtendedDataTypeSubType;
|
|
425
|
+
|
|
426
|
+
/** Opaque type for C++ GDALExtendedDataType */
|
|
427
|
+
typedef struct GDALExtendedDataTypeHS *GDALExtendedDataTypeH;
|
|
428
|
+
/** Opaque type for C++ GDALEDTComponent */
|
|
429
|
+
typedef struct GDALEDTComponentHS *GDALEDTComponentH;
|
|
430
|
+
/** Opaque type for C++ GDALGroup */
|
|
431
|
+
typedef struct GDALGroupHS *GDALGroupH;
|
|
432
|
+
/** Opaque type for C++ GDALMDArray */
|
|
433
|
+
typedef struct GDALMDArrayHS *GDALMDArrayH;
|
|
434
|
+
/** Opaque type for C++ GDALAttribute */
|
|
435
|
+
typedef struct GDALAttributeHS *GDALAttributeH;
|
|
436
|
+
/** Opaque type for C++ GDALDimension */
|
|
437
|
+
typedef struct GDALDimensionHS *GDALDimensionH;
|
|
438
|
+
|
|
439
|
+
/* ==================================================================== */
|
|
440
|
+
/* Registration/driver related. */
|
|
441
|
+
/* ==================================================================== */
|
|
442
|
+
|
|
443
|
+
/** Long name of the driver */
|
|
444
|
+
#define GDAL_DMD_LONGNAME "DMD_LONGNAME"
|
|
445
|
+
|
|
446
|
+
/** URL (relative to http://gdal.org/) to the help page of the driver */
|
|
447
|
+
#define GDAL_DMD_HELPTOPIC "DMD_HELPTOPIC"
|
|
448
|
+
|
|
449
|
+
/** MIME type handled by the driver. */
|
|
450
|
+
#define GDAL_DMD_MIMETYPE "DMD_MIMETYPE"
|
|
451
|
+
|
|
452
|
+
/** Extension handled by the driver. */
|
|
453
|
+
#define GDAL_DMD_EXTENSION "DMD_EXTENSION"
|
|
454
|
+
|
|
455
|
+
/** Connection prefix to provide as the file name of the open function.
|
|
456
|
+
* Typically set for non-file based drivers. Generally used with open options.
|
|
457
|
+
* @since GDAL 2.0
|
|
458
|
+
*/
|
|
459
|
+
#define GDAL_DMD_CONNECTION_PREFIX "DMD_CONNECTION_PREFIX"
|
|
460
|
+
|
|
461
|
+
/** List of (space separated) extensions handled by the driver.
|
|
462
|
+
* @since GDAL 2.0
|
|
463
|
+
*/
|
|
464
|
+
#define GDAL_DMD_EXTENSIONS "DMD_EXTENSIONS"
|
|
465
|
+
|
|
466
|
+
/** XML snippet with creation options. */
|
|
467
|
+
#define GDAL_DMD_CREATIONOPTIONLIST "DMD_CREATIONOPTIONLIST"
|
|
468
|
+
|
|
469
|
+
/** XML snippet with multidimensional dataset creation options.
|
|
470
|
+
* @since GDAL 3.1
|
|
471
|
+
*/
|
|
472
|
+
#define GDAL_DMD_MULTIDIM_DATASET_CREATIONOPTIONLIST \
|
|
473
|
+
"DMD_MULTIDIM_DATASET_CREATIONOPTIONLIST"
|
|
474
|
+
|
|
475
|
+
/** XML snippet with multidimensional group creation options.
|
|
476
|
+
* @since GDAL 3.1
|
|
477
|
+
*/
|
|
478
|
+
#define GDAL_DMD_MULTIDIM_GROUP_CREATIONOPTIONLIST \
|
|
479
|
+
"DMD_MULTIDIM_GROUP_CREATIONOPTIONLIST"
|
|
480
|
+
|
|
481
|
+
/** XML snippet with multidimensional dimension creation options.
|
|
482
|
+
* @since GDAL 3.1
|
|
483
|
+
*/
|
|
484
|
+
#define GDAL_DMD_MULTIDIM_DIMENSION_CREATIONOPTIONLIST \
|
|
485
|
+
"DMD_MULTIDIM_DIMENSION_CREATIONOPTIONLIST"
|
|
486
|
+
|
|
487
|
+
/** XML snippet with multidimensional array creation options.
|
|
488
|
+
* @since GDAL 3.1
|
|
489
|
+
*/
|
|
490
|
+
#define GDAL_DMD_MULTIDIM_ARRAY_CREATIONOPTIONLIST \
|
|
491
|
+
"DMD_MULTIDIM_ARRAY_CREATIONOPTIONLIST"
|
|
492
|
+
|
|
493
|
+
/** XML snippet with multidimensional array open options.
|
|
494
|
+
* @since GDAL 3.6
|
|
495
|
+
*/
|
|
496
|
+
#define GDAL_DMD_MULTIDIM_ARRAY_OPENOPTIONLIST \
|
|
497
|
+
"DMD_MULTIDIM_ARRAY_OPENOPTIONLIST"
|
|
498
|
+
|
|
499
|
+
/** XML snippet with multidimensional attribute creation options.
|
|
500
|
+
* @since GDAL 3.1
|
|
501
|
+
*/
|
|
502
|
+
#define GDAL_DMD_MULTIDIM_ATTRIBUTE_CREATIONOPTIONLIST \
|
|
503
|
+
"DMD_MULTIDIM_ATTRIBUTE_CREATIONOPTIONLIST"
|
|
504
|
+
|
|
505
|
+
/** XML snippet with open options.
|
|
506
|
+
* @since GDAL 2.0
|
|
507
|
+
*/
|
|
508
|
+
#define GDAL_DMD_OPENOPTIONLIST "DMD_OPENOPTIONLIST"
|
|
509
|
+
|
|
510
|
+
/** List of (space separated) raster data types supported by the
|
|
511
|
+
* Create()/CreateCopy() API. */
|
|
512
|
+
#define GDAL_DMD_CREATIONDATATYPES "DMD_CREATIONDATATYPES"
|
|
513
|
+
|
|
514
|
+
/** List of (space separated) vector field types supported by the CreateField()
|
|
515
|
+
* API.
|
|
516
|
+
* @since GDAL 2.0
|
|
517
|
+
* */
|
|
518
|
+
#define GDAL_DMD_CREATIONFIELDDATATYPES "DMD_CREATIONFIELDDATATYPES"
|
|
519
|
+
|
|
520
|
+
/** List of (space separated) vector field sub-types supported by the
|
|
521
|
+
* CreateField() API.
|
|
522
|
+
* @since GDAL 2.3
|
|
523
|
+
* */
|
|
524
|
+
#define GDAL_DMD_CREATIONFIELDDATASUBTYPES "DMD_CREATIONFIELDDATASUBTYPES"
|
|
525
|
+
|
|
526
|
+
/** List of (space separated) capability flags supported by the CreateField() API.
|
|
527
|
+
*
|
|
528
|
+
* Supported values are:
|
|
529
|
+
*
|
|
530
|
+
* - "WidthPrecision": field width and precision is supported.
|
|
531
|
+
* - "Nullable": field (non-)nullable status is supported.
|
|
532
|
+
* - "Unique": field unique constraint is supported.
|
|
533
|
+
* - "Default": field default value is supported.
|
|
534
|
+
* - "AlternativeName": field alternative name is supported.
|
|
535
|
+
* - "Comment": field comment is supported.
|
|
536
|
+
* - "Domain": field can be associated with a domain.
|
|
537
|
+
*
|
|
538
|
+
* @see GDAL_DMD_ALTER_FIELD_DEFN_FLAGS for capabilities supported when altering
|
|
539
|
+
* existing fields.
|
|
540
|
+
*
|
|
541
|
+
* @since GDAL 3.7
|
|
542
|
+
*/
|
|
543
|
+
#define GDAL_DMD_CREATION_FIELD_DEFN_FLAGS "DMD_CREATION_FIELD_DEFN_FLAGS"
|
|
544
|
+
|
|
545
|
+
/** Capability set by a driver that exposes Subdatasets.
|
|
546
|
+
*
|
|
547
|
+
* This capability reflects that a raster driver supports child layers, such as
|
|
548
|
+
* NetCDF or multi-table raster Geopackages.
|
|
549
|
+
*
|
|
550
|
+
* See GDAL_DCAP_MULTIPLE_VECTOR_LAYERS for a similar capability flag
|
|
551
|
+
* for vector drivers.
|
|
552
|
+
*/
|
|
553
|
+
#define GDAL_DMD_SUBDATASETS "DMD_SUBDATASETS"
|
|
554
|
+
|
|
555
|
+
/** Capability set by a vector driver that supports field width and precision.
|
|
556
|
+
*
|
|
557
|
+
* This capability reflects that a vector driver includes the decimal separator
|
|
558
|
+
* in the field width of fields of type OFTReal.
|
|
559
|
+
*
|
|
560
|
+
* See GDAL_DMD_NUMERIC_FIELD_WIDTH_INCLUDES_SIGN for a related capability flag.
|
|
561
|
+
* @since GDAL 3.7
|
|
562
|
+
*/
|
|
563
|
+
#define GDAL_DMD_NUMERIC_FIELD_WIDTH_INCLUDES_DECIMAL_SEPARATOR \
|
|
564
|
+
"DMD_NUMERIC_FIELD_WIDTH_INCLUDES_DECIMAL_SEPARATOR"
|
|
565
|
+
|
|
566
|
+
/** Capability set by a vector driver that supports field width and precision.
|
|
567
|
+
*
|
|
568
|
+
* This capability reflects that a vector driver includes the sign
|
|
569
|
+
* in the field width of fields of type OFTReal.
|
|
570
|
+
*
|
|
571
|
+
* See GDAL_DMD_NUMERIC_FIELD_WIDTH_INCLUDES_DECIMAL_SEPARATOR for a related capability flag.
|
|
572
|
+
* @since GDAL 3.7
|
|
573
|
+
*/
|
|
574
|
+
#define GDAL_DMD_NUMERIC_FIELD_WIDTH_INCLUDES_SIGN \
|
|
575
|
+
"DMD_NUMERIC_FIELD_WIDTH_INCLUDES_SIGN"
|
|
576
|
+
|
|
577
|
+
/** Capability set by a driver that implements the Open() API. */
|
|
578
|
+
#define GDAL_DCAP_OPEN "DCAP_OPEN"
|
|
579
|
+
|
|
580
|
+
/** Capability set by a driver that implements the Create() API.
|
|
581
|
+
*
|
|
582
|
+
* If GDAL_DCAP_CREATE is set, but GDAL_DCAP_CREATECOPY not, a generic
|
|
583
|
+
* CreateCopy() implementation is available and will use the Create() API of
|
|
584
|
+
* the driver.
|
|
585
|
+
* So to test if some CreateCopy() implementation is available, generic or
|
|
586
|
+
* specialize, test for both GDAL_DCAP_CREATE and GDAL_DCAP_CREATECOPY.
|
|
587
|
+
*/
|
|
588
|
+
#define GDAL_DCAP_CREATE "DCAP_CREATE"
|
|
589
|
+
|
|
590
|
+
/** Capability set by a driver that implements the CreateMultiDimensional() API.
|
|
591
|
+
*
|
|
592
|
+
* @since GDAL 3.1
|
|
593
|
+
*/
|
|
594
|
+
#define GDAL_DCAP_CREATE_MULTIDIMENSIONAL "DCAP_CREATE_MULTIDIMENSIONAL"
|
|
595
|
+
|
|
596
|
+
/** Capability set by a driver that implements the CreateCopy() API.
|
|
597
|
+
*
|
|
598
|
+
* If GDAL_DCAP_CREATECOPY is not defined, but GDAL_DCAP_CREATE is set, a
|
|
599
|
+
* generic CreateCopy() implementation is available and will use the Create()
|
|
600
|
+
* API of the driver. So to test if some CreateCopy() implementation is
|
|
601
|
+
* available, generic or specialize, test for both GDAL_DCAP_CREATE and
|
|
602
|
+
* GDAL_DCAP_CREATECOPY.
|
|
603
|
+
*/
|
|
604
|
+
#define GDAL_DCAP_CREATECOPY "DCAP_CREATECOPY"
|
|
605
|
+
|
|
606
|
+
/** Capability set by a driver that implements the VectorTranslateFrom() API.
|
|
607
|
+
*
|
|
608
|
+
* @since GDAL 3.8
|
|
609
|
+
*/
|
|
610
|
+
#define GDAL_DCAP_VECTOR_TRANSLATE_FROM "DCAP_VECTOR_TRANSLATE_FROM"
|
|
611
|
+
|
|
612
|
+
/** Capability set by a driver that implements the CreateCopy() API, but with
|
|
613
|
+
* multidimensional raster as input and output.
|
|
614
|
+
*
|
|
615
|
+
* @since GDAL 3.1
|
|
616
|
+
*/
|
|
617
|
+
#define GDAL_DCAP_CREATECOPY_MULTIDIMENSIONAL "DCAP_CREATECOPY_MULTIDIMENSIONAL"
|
|
618
|
+
|
|
619
|
+
/** Capability set by a driver that supports multidimensional data.
|
|
620
|
+
* @since GDAL 3.1
|
|
621
|
+
*/
|
|
622
|
+
#define GDAL_DCAP_MULTIDIM_RASTER "DCAP_MULTIDIM_RASTER"
|
|
623
|
+
|
|
624
|
+
/** Capability set by a driver that can copy over subdatasets. */
|
|
625
|
+
#define GDAL_DCAP_SUBCREATECOPY "DCAP_SUBCREATECOPY"
|
|
626
|
+
|
|
627
|
+
/** Capability set by a driver that can read/create datasets through the VSI*L
|
|
628
|
+
* API. */
|
|
629
|
+
#define GDAL_DCAP_VIRTUALIO "DCAP_VIRTUALIO"
|
|
630
|
+
|
|
631
|
+
/** Capability set by a driver having raster capability.
|
|
632
|
+
* @since GDAL 2.0
|
|
633
|
+
*/
|
|
634
|
+
#define GDAL_DCAP_RASTER "DCAP_RASTER"
|
|
635
|
+
|
|
636
|
+
/** Capability set by a driver having vector capability.
|
|
637
|
+
* @since GDAL 2.0
|
|
638
|
+
*/
|
|
639
|
+
#define GDAL_DCAP_VECTOR "DCAP_VECTOR"
|
|
640
|
+
|
|
641
|
+
/** Capability set by a driver having geographical network model capability.
|
|
642
|
+
* @since GDAL 2.1
|
|
643
|
+
*/
|
|
644
|
+
#define GDAL_DCAP_GNM "DCAP_GNM"
|
|
645
|
+
|
|
646
|
+
/** Capability set by a driver that can create layers.
|
|
647
|
+
* @since GDAL 3.6
|
|
648
|
+
*/
|
|
649
|
+
#define GDAL_DCAP_CREATE_LAYER "DCAP_CREATE_LAYER"
|
|
650
|
+
|
|
651
|
+
/** Capability set by a driver that can delete layers.
|
|
652
|
+
* @since GDAL 3.6
|
|
653
|
+
*/
|
|
654
|
+
#define GDAL_DCAP_DELETE_LAYER "DCAP_DELETE_LAYER"
|
|
655
|
+
|
|
656
|
+
/** Capability set by a driver that can create fields.
|
|
657
|
+
* @since GDAL 3.6
|
|
658
|
+
*/
|
|
659
|
+
#define GDAL_DCAP_CREATE_FIELD "DCAP_CREATE_FIELD"
|
|
660
|
+
|
|
661
|
+
/** Capability set by a driver that can delete fields.
|
|
662
|
+
* @since GDAL 3.6
|
|
663
|
+
*/
|
|
664
|
+
#define GDAL_DCAP_DELETE_FIELD "DCAP_DELETE_FIELD"
|
|
665
|
+
|
|
666
|
+
/** Capability set by a driver that can reorder fields.
|
|
667
|
+
* @since GDAL 3.6
|
|
668
|
+
*/
|
|
669
|
+
#define GDAL_DCAP_REORDER_FIELDS "DCAP_REORDER_FIELDS"
|
|
670
|
+
|
|
671
|
+
/** List of (space separated) flags supported by the OGRLayer::AlterFieldDefn()
|
|
672
|
+
* API.
|
|
673
|
+
*
|
|
674
|
+
* Supported values are "Name", "Type", "WidthPrecision", "Nullable", "Default",
|
|
675
|
+
* "Unique", "Domain", "AlternativeName" and "Comment", corresponding respectively
|
|
676
|
+
* to the ALTER_NAME_FLAG, ALTER_TYPE_FLAG, ALTER_WIDTH_PRECISION_FLAG, ALTER_NULLABLE_FLAG,
|
|
677
|
+
* ALTER_DEFAULT_FLAG, ALTER_UNIQUE_FLAG, ALTER_DOMAIN_FLAG,
|
|
678
|
+
* ALTER_ALTERNATIVE_NAME_FLAG and ALTER_COMMENT_FLAG flags.
|
|
679
|
+
*
|
|
680
|
+
* Note that advertizing one of these flags doesn't necessarily mean that
|
|
681
|
+
* all modifications of the corresponding property can be made. For example,
|
|
682
|
+
* altering the field type may be restricted by the current type of the field,
|
|
683
|
+
* etc.
|
|
684
|
+
*
|
|
685
|
+
* @see GDAL_DMD_CREATION_FIELD_DEFN_FLAGS for capabilities supported
|
|
686
|
+
* when creating new fields.
|
|
687
|
+
*
|
|
688
|
+
* @since GDAL 3.6
|
|
689
|
+
*/
|
|
690
|
+
#define GDAL_DMD_ALTER_FIELD_DEFN_FLAGS "GDAL_DMD_ALTER_FIELD_DEFN_FLAGS"
|
|
691
|
+
|
|
692
|
+
/** List of (space separated) field names which are considered illegal by the
|
|
693
|
+
* driver and should not be used when creating/altering fields.
|
|
694
|
+
*
|
|
695
|
+
* @since GDAL 3.7
|
|
696
|
+
*/
|
|
697
|
+
#define GDAL_DMD_ILLEGAL_FIELD_NAMES "GDAL_DMD_ILLEGAL_FIELD_NAMES"
|
|
698
|
+
|
|
699
|
+
/** Capability set by a driver that can create fields with NOT NULL constraint.
|
|
700
|
+
* @since GDAL 2.0
|
|
701
|
+
*/
|
|
702
|
+
#define GDAL_DCAP_NOTNULL_FIELDS "DCAP_NOTNULL_FIELDS"
|
|
703
|
+
|
|
704
|
+
/** Capability set by a driver that can create fields with UNIQUE constraint.
|
|
705
|
+
* @since GDAL 3.2
|
|
706
|
+
*/
|
|
707
|
+
#define GDAL_DCAP_UNIQUE_FIELDS "DCAP_UNIQUE_FIELDS"
|
|
708
|
+
|
|
709
|
+
/** Capability set by a driver that can create fields with DEFAULT values.
|
|
710
|
+
* @since GDAL 2.0
|
|
711
|
+
*/
|
|
712
|
+
#define GDAL_DCAP_DEFAULT_FIELDS "DCAP_DEFAULT_FIELDS"
|
|
713
|
+
|
|
714
|
+
/** Capability set by a driver that can create geometry fields with NOT NULL
|
|
715
|
+
* constraint.
|
|
716
|
+
* @since GDAL 2.0
|
|
717
|
+
*/
|
|
718
|
+
#define GDAL_DCAP_NOTNULL_GEOMFIELDS "DCAP_NOTNULL_GEOMFIELDS"
|
|
719
|
+
|
|
720
|
+
/** Capability set by a non-spatial driver having no support for geometries.
|
|
721
|
+
* E.g. non-spatial vector drivers (e.g. spreadsheet format drivers) do not
|
|
722
|
+
* support geometries, and accordingly will have this capability present.
|
|
723
|
+
* @since GDAL 2.3
|
|
724
|
+
*/
|
|
725
|
+
#define GDAL_DCAP_NONSPATIAL "DCAP_NONSPATIAL"
|
|
726
|
+
|
|
727
|
+
/** Capability set by a driver that can support curved geometries.
|
|
728
|
+
* @since GDAL 3.6
|
|
729
|
+
*/
|
|
730
|
+
#define GDAL_DCAP_CURVE_GEOMETRIES "DCAP_CURVE_GEOMETRIES"
|
|
731
|
+
|
|
732
|
+
/** Capability set by a driver that can support measured geometries.
|
|
733
|
+
*
|
|
734
|
+
* @since GDAL 3.6
|
|
735
|
+
*/
|
|
736
|
+
#define GDAL_DCAP_MEASURED_GEOMETRIES "DCAP_MEASURED_GEOMETRIES"
|
|
737
|
+
|
|
738
|
+
/** Capability set by a driver that can support the Z dimension for geometries.
|
|
739
|
+
*
|
|
740
|
+
* @since GDAL 3.6
|
|
741
|
+
*/
|
|
742
|
+
#define GDAL_DCAP_Z_GEOMETRIES "DCAP_Z_GEOMETRIES"
|
|
743
|
+
|
|
744
|
+
/** List of (space separated) flags which reflect the geometry handling behavior
|
|
745
|
+
* of a driver.
|
|
746
|
+
*
|
|
747
|
+
* Supported values are currently:
|
|
748
|
+
*
|
|
749
|
+
* - "EquatesMultiAndSingleLineStringDuringWrite" and
|
|
750
|
+
* "EquatesMultiAndSinglePolygonDuringWrite". These flags indicate that the
|
|
751
|
+
* driver does not differentiate between single-part and multi-part linestring
|
|
752
|
+
* and polygon geometries when writing features respectively.
|
|
753
|
+
*
|
|
754
|
+
* @since GDAL 3.6
|
|
755
|
+
*/
|
|
756
|
+
#define GDAL_DMD_GEOMETRY_FLAGS "GDAL_DMD_GEOMETRY_FLAGS"
|
|
757
|
+
|
|
758
|
+
/** Capability set by drivers which support either reading or writing feature
|
|
759
|
+
* styles.
|
|
760
|
+
*
|
|
761
|
+
* Consider using the more granular GDAL_DCAP_FEATURE_STYLES_READ or
|
|
762
|
+
* GDAL_DCAP_FEATURE_STYLES_WRITE capabilities instead.
|
|
763
|
+
*
|
|
764
|
+
* @since GDAL 2.3
|
|
765
|
+
*/
|
|
766
|
+
#define GDAL_DCAP_FEATURE_STYLES "DCAP_FEATURE_STYLES"
|
|
767
|
+
|
|
768
|
+
/** Capability set by drivers which support reading feature styles.
|
|
769
|
+
* @since GDAL 3.7
|
|
770
|
+
*/
|
|
771
|
+
#define GDAL_DCAP_FEATURE_STYLES_READ "DCAP_FEATURE_STYLES_READ"
|
|
772
|
+
|
|
773
|
+
/** Capability set by drivers which support writing feature styles.
|
|
774
|
+
* @since GDAL 3.7
|
|
775
|
+
*/
|
|
776
|
+
#define GDAL_DCAP_FEATURE_STYLES_WRITE "DCAP_FEATURE_STYLES_WRITE"
|
|
777
|
+
|
|
778
|
+
/** Capability set by drivers which support storing/retrieving coordinate epoch
|
|
779
|
+
* for dynamic CRS
|
|
780
|
+
* @since GDAL 3.4
|
|
781
|
+
*/
|
|
782
|
+
#define GDAL_DCAP_COORDINATE_EPOCH "DCAP_COORDINATE_EPOCH"
|
|
783
|
+
|
|
784
|
+
/** Capability set by drivers for formats which support multiple vector layers.
|
|
785
|
+
*
|
|
786
|
+
* Note: some GDAL drivers expose "virtual" layer support while the underlying
|
|
787
|
+
* formats themselves do not. This capability is only set for drivers of formats
|
|
788
|
+
* which have a native concept of multiple vector layers (such as GeoPackage).
|
|
789
|
+
*
|
|
790
|
+
* @since GDAL 3.4
|
|
791
|
+
*/
|
|
792
|
+
#define GDAL_DCAP_MULTIPLE_VECTOR_LAYERS "DCAP_MULTIPLE_VECTOR_LAYERS"
|
|
793
|
+
|
|
794
|
+
/** Capability set by drivers for formats which support reading field domains.
|
|
795
|
+
*
|
|
796
|
+
* @since GDAL 3.5
|
|
797
|
+
*/
|
|
798
|
+
#define GDAL_DCAP_FIELD_DOMAINS "DCAP_FIELD_DOMAINS"
|
|
799
|
+
|
|
800
|
+
/** Capability set by drivers for formats which support reading table
|
|
801
|
+
* relationships.
|
|
802
|
+
*
|
|
803
|
+
* @since GDAL 3.6
|
|
804
|
+
*/
|
|
805
|
+
#define GDAL_DCAP_RELATIONSHIPS "DCAP_RELATIONSHIPS"
|
|
806
|
+
|
|
807
|
+
/** Capability set by drivers for formats which support creating table
|
|
808
|
+
* relationships.
|
|
809
|
+
* @since GDAL 3.6
|
|
810
|
+
*/
|
|
811
|
+
#define GDAL_DCAP_CREATE_RELATIONSHIP "DCAP_CREATE_RELATIONSHIP"
|
|
812
|
+
|
|
813
|
+
/** Capability set by drivers for formats which support deleting table
|
|
814
|
+
* relationships.
|
|
815
|
+
* @since GDAL 3.6
|
|
816
|
+
*/
|
|
817
|
+
#define GDAL_DCAP_DELETE_RELATIONSHIP "DCAP_DELETE_RELATIONSHIP"
|
|
818
|
+
|
|
819
|
+
/** Capability set by drivers for formats which support updating existing table
|
|
820
|
+
* relationships.
|
|
821
|
+
* @since GDAL 3.6
|
|
822
|
+
*/
|
|
823
|
+
#define GDAL_DCAP_UPDATE_RELATIONSHIP "DCAP_UPDATE_RELATIONSHIP"
|
|
824
|
+
|
|
825
|
+
/** Capability set by drivers whose FlushCache() implementation returns a
|
|
826
|
+
* dataset that can be opened afterwards and seen in a consistent state, without
|
|
827
|
+
* requiring the dataset on which FlushCache() has been called to be closed.
|
|
828
|
+
* @since GDAL 3.8
|
|
829
|
+
*/
|
|
830
|
+
#define GDAL_DCAP_FLUSHCACHE_CONSISTENT_STATE "DCAP_FLUSHCACHE_CONSISTENT_STATE"
|
|
831
|
+
|
|
832
|
+
/** Capability set by drivers which honor the OGRCoordinatePrecision settings
|
|
833
|
+
* of geometry fields at layer creation and/or for OGRLayer::CreateGeomField().
|
|
834
|
+
* Note that while those drivers honor the settings at feature writing time,
|
|
835
|
+
* they might not be able to store the precision settings in layer metadata,
|
|
836
|
+
* hence on reading it might not be possible to recover the precision with
|
|
837
|
+
* which coordinates have been written.
|
|
838
|
+
* @since GDAL 3.9
|
|
839
|
+
*/
|
|
840
|
+
#define GDAL_DCAP_HONOR_GEOM_COORDINATE_PRECISION \
|
|
841
|
+
"DCAP_HONOR_GEOM_COORDINATE_PRECISION"
|
|
842
|
+
|
|
843
|
+
/** List of (space separated) flags indicating the features of relationships are
|
|
844
|
+
* supported by the driver.
|
|
845
|
+
*
|
|
846
|
+
* Supported values are:
|
|
847
|
+
*
|
|
848
|
+
* - "OneToOne": supports one-to-one relationships, see
|
|
849
|
+
* GDALRelationshipCardinality::GRC_ONE_TO_ONE
|
|
850
|
+
* - "OneToMany": supports one-to-many relationships, see
|
|
851
|
+
* GDALRelationshipCardinality::GRC_ONE_TO_MANY
|
|
852
|
+
* - "ManyToOne": supports many-to-one relationships, see
|
|
853
|
+
* GDALRelationshipCardinality::GRC_MANY_TO_ONE
|
|
854
|
+
* - "ManyToMany": supports many-to-many relationships, see
|
|
855
|
+
* GDALRelationshipCardinality::GRC_MANY_TO_MANY
|
|
856
|
+
* - "Composite": supports composite relationship types, see
|
|
857
|
+
* GDALRelationshipType::GRT_COMPOSITE
|
|
858
|
+
* - "Association": supports association relationship types, see
|
|
859
|
+
* GDALRelationshipType::GRT_ASSOCIATION
|
|
860
|
+
* - "Aggregation": supports aggregation relationship types, see
|
|
861
|
+
* GDALRelationshipType::GRT_AGGREGATION
|
|
862
|
+
* - "MultipleFieldKeys": multiple fields can be used for relationship keys. If
|
|
863
|
+
* not present then only a single field name can be used.
|
|
864
|
+
* - "ForwardPathLabel": supports forward path labels
|
|
865
|
+
* - "BackwardPathLabel": supports backward path labels
|
|
866
|
+
*
|
|
867
|
+
* @since GDAL 3.6
|
|
868
|
+
*/
|
|
869
|
+
#define GDAL_DMD_RELATIONSHIP_FLAGS "GDAL_DMD_RELATIONSHIP_FLAGS"
|
|
870
|
+
|
|
871
|
+
/** List of (space separated) standard related table types which are recognised
|
|
872
|
+
* by the driver.
|
|
873
|
+
*
|
|
874
|
+
* See GDALRelationshipGetRelatedTableType/GDALRelationshipSetRelatedTableType
|
|
875
|
+
*
|
|
876
|
+
* @since GDAL 3.7
|
|
877
|
+
*/
|
|
878
|
+
#define GDAL_DMD_RELATIONSHIP_RELATED_TABLE_TYPES \
|
|
879
|
+
"GDAL_DMD_RELATIONSHIP_RELATED_TABLE_TYPES"
|
|
880
|
+
|
|
881
|
+
/** Capability set by drivers for formats which support renaming vector layers.
|
|
882
|
+
*
|
|
883
|
+
* @since GDAL 3.5
|
|
884
|
+
*/
|
|
885
|
+
#define GDAL_DCAP_RENAME_LAYERS "DCAP_RENAME_LAYERS"
|
|
886
|
+
|
|
887
|
+
/** List of (space separated) field domain types supported by the AddFieldDomain()
|
|
888
|
+
* API.
|
|
889
|
+
*
|
|
890
|
+
* Supported values are Coded, Range and Glob, corresponding to the
|
|
891
|
+
* OGRFieldDomainType::OFDT_CODED, OGRFieldDomainType::OFDT_RANGE, and
|
|
892
|
+
* OGRFieldDomainType::OFDT_GLOB field domain types respectively.
|
|
893
|
+
*
|
|
894
|
+
* @since GDAL 3.5
|
|
895
|
+
*/
|
|
896
|
+
#define GDAL_DMD_CREATION_FIELD_DOMAIN_TYPES "DMD_CREATION_FIELD_DOMAIN_TYPES"
|
|
897
|
+
|
|
898
|
+
/** List of (space separated) flags supported by the
|
|
899
|
+
* OGRLayer::AlterGeomFieldDefn() API.
|
|
900
|
+
*
|
|
901
|
+
* Supported values are "Name", "Type", "Nullable", "SRS", "CoordinateEpoch",
|
|
902
|
+
* corresponding respectively to the ALTER_GEOM_FIELD_DEFN_NAME_FLAG,
|
|
903
|
+
* ALTER_GEOM_FIELD_DEFN_TYPE_FLAG, ALTER_GEOM_FIELD_DEFN_NULLABLE_FLAG,
|
|
904
|
+
* ALTER_GEOM_FIELD_DEFN_SRS_FLAG, ALTER_GEOM_FIELD_DEFN_SRS_COORD_EPOCH_FLAG
|
|
905
|
+
* flags. Note that advertizing one of these flags doesn't necessarily mean that
|
|
906
|
+
* all modifications of the corresponding property can be made. For example,
|
|
907
|
+
* altering the geometry type may be restricted by the type of the geometries in
|
|
908
|
+
* the field, or changing the nullable state to non-nullable is not possible if
|
|
909
|
+
* null geometries are present, etc.
|
|
910
|
+
*
|
|
911
|
+
* @since GDAL 3.6
|
|
912
|
+
*/
|
|
913
|
+
#define GDAL_DMD_ALTER_GEOM_FIELD_DEFN_FLAGS "DMD_ALTER_GEOM_FIELD_DEFN_FLAGS"
|
|
914
|
+
|
|
915
|
+
/** List of (space separated) SQL dialects supported by the driver.
|
|
916
|
+
*
|
|
917
|
+
* The default SQL dialect for the driver will always be the first listed value.
|
|
918
|
+
*
|
|
919
|
+
* Standard values are:
|
|
920
|
+
*
|
|
921
|
+
* - "OGRSQL": the OGR SQL dialect, see
|
|
922
|
+
* https://gdal.org/user/ogr_sql_dialect.html
|
|
923
|
+
* - "SQLITE": the SQLite dialect, see
|
|
924
|
+
* https://gdal.org/user/sql_sqlite_dialect.html
|
|
925
|
+
* - "NATIVE": for drivers with an RDBMS backend this value indicates that the
|
|
926
|
+
* SQL will be passed directly to that database backend, and therefore the
|
|
927
|
+
* RDBMS' native dialect will be used
|
|
928
|
+
*
|
|
929
|
+
* Other dialect values may also be present for some drivers (for some of them,
|
|
930
|
+
* the query string to use might not even by SQL but a dedicated query
|
|
931
|
+
* language). For further details on their interpretation, see the documentation
|
|
932
|
+
* for the respective driver.
|
|
933
|
+
*
|
|
934
|
+
* @since GDAL 3.6
|
|
935
|
+
*/
|
|
936
|
+
#define GDAL_DMD_SUPPORTED_SQL_DIALECTS "DMD_SUPPORTED_SQL_DIALECTS"
|
|
937
|
+
|
|
938
|
+
/*! @cond Doxygen_Suppress */
|
|
939
|
+
#define GDAL_DMD_PLUGIN_INSTALLATION_MESSAGE "DMD_PLUGIN_INSTALLATION_MESSAGE"
|
|
940
|
+
/*! @endcond */
|
|
941
|
+
|
|
942
|
+
/** Value for GDALDimension::GetType() specifying the X axis of a horizontal
|
|
943
|
+
* CRS.
|
|
944
|
+
* @since GDAL 3.1
|
|
945
|
+
*/
|
|
946
|
+
#define GDAL_DIM_TYPE_HORIZONTAL_X "HORIZONTAL_X"
|
|
947
|
+
|
|
948
|
+
/** Value for GDALDimension::GetType() specifying the Y axis of a horizontal
|
|
949
|
+
* CRS.
|
|
950
|
+
* @since GDAL 3.1
|
|
951
|
+
*/
|
|
952
|
+
#define GDAL_DIM_TYPE_HORIZONTAL_Y "HORIZONTAL_Y"
|
|
953
|
+
|
|
954
|
+
/** Value for GDALDimension::GetType() specifying a vertical axis.
|
|
955
|
+
* @since GDAL 3.1
|
|
956
|
+
*/
|
|
957
|
+
#define GDAL_DIM_TYPE_VERTICAL "VERTICAL"
|
|
958
|
+
|
|
959
|
+
/** Value for GDALDimension::GetType() specifying a temporal axis.
|
|
960
|
+
* @since GDAL 3.1
|
|
961
|
+
*/
|
|
962
|
+
#define GDAL_DIM_TYPE_TEMPORAL "TEMPORAL"
|
|
963
|
+
|
|
964
|
+
/** Value for GDALDimension::GetType() specifying a parametric axis.
|
|
965
|
+
* @since GDAL 3.1
|
|
966
|
+
*/
|
|
967
|
+
#define GDAL_DIM_TYPE_PARAMETRIC "PARAMETRIC"
|
|
968
|
+
|
|
969
|
+
#define GDsCAddRelationship \
|
|
970
|
+
"AddRelationship" /**< Dataset capability for supporting AddRelationship() \
|
|
971
|
+
(at least partially) */
|
|
972
|
+
#define GDsCDeleteRelationship \
|
|
973
|
+
"DeleteRelationship" /**< Dataset capability for supporting \
|
|
974
|
+
DeleteRelationship()*/
|
|
975
|
+
#define GDsCUpdateRelationship \
|
|
976
|
+
"UpdateRelationship" /**< Dataset capability for supporting \
|
|
977
|
+
UpdateRelationship()*/
|
|
978
|
+
|
|
979
|
+
void CPL_DLL CPL_STDCALL GDALAllRegister(void);
|
|
980
|
+
void CPL_DLL GDALRegisterPlugins(void);
|
|
981
|
+
CPLErr CPL_DLL GDALRegisterPlugin(const char *name);
|
|
982
|
+
|
|
983
|
+
GDALDatasetH CPL_DLL CPL_STDCALL
|
|
984
|
+
GDALCreate(GDALDriverH hDriver, const char *, int, int, int, GDALDataType,
|
|
985
|
+
CSLConstList) CPL_WARN_UNUSED_RESULT;
|
|
986
|
+
GDALDatasetH CPL_DLL CPL_STDCALL GDALCreateCopy(GDALDriverH, const char *,
|
|
987
|
+
GDALDatasetH, int, CSLConstList,
|
|
988
|
+
GDALProgressFunc,
|
|
989
|
+
void *) CPL_WARN_UNUSED_RESULT;
|
|
990
|
+
|
|
991
|
+
GDALDriverH CPL_DLL CPL_STDCALL GDALIdentifyDriver(const char *pszFilename,
|
|
992
|
+
CSLConstList papszFileList);
|
|
993
|
+
|
|
994
|
+
GDALDriverH CPL_DLL CPL_STDCALL GDALIdentifyDriverEx(
|
|
995
|
+
const char *pszFilename, unsigned int nIdentifyFlags,
|
|
996
|
+
const char *const *papszAllowedDrivers, const char *const *papszFileList);
|
|
997
|
+
|
|
998
|
+
GDALDatasetH CPL_DLL CPL_STDCALL
|
|
999
|
+
GDALOpen(const char *pszFilename, GDALAccess eAccess) CPL_WARN_UNUSED_RESULT;
|
|
1000
|
+
GDALDatasetH CPL_DLL CPL_STDCALL GDALOpenShared(const char *, GDALAccess)
|
|
1001
|
+
CPL_WARN_UNUSED_RESULT;
|
|
1002
|
+
|
|
1003
|
+
/* Note: we define GDAL_OF_READONLY and GDAL_OF_UPDATE to be on purpose */
|
|
1004
|
+
/* equals to GA_ReadOnly and GA_Update */
|
|
1005
|
+
|
|
1006
|
+
/** Open in read-only mode.
|
|
1007
|
+
* Used by GDALOpenEx().
|
|
1008
|
+
* @since GDAL 2.0
|
|
1009
|
+
*/
|
|
1010
|
+
#define GDAL_OF_READONLY 0x00
|
|
1011
|
+
|
|
1012
|
+
/** Open in update mode.
|
|
1013
|
+
* Used by GDALOpenEx().
|
|
1014
|
+
* @since GDAL 2.0
|
|
1015
|
+
*/
|
|
1016
|
+
#define GDAL_OF_UPDATE 0x01
|
|
1017
|
+
|
|
1018
|
+
/** Allow raster and vector drivers to be used.
|
|
1019
|
+
* Used by GDALOpenEx().
|
|
1020
|
+
* @since GDAL 2.0
|
|
1021
|
+
*/
|
|
1022
|
+
#define GDAL_OF_ALL 0x00
|
|
1023
|
+
|
|
1024
|
+
/** Allow raster drivers to be used.
|
|
1025
|
+
* Used by GDALOpenEx().
|
|
1026
|
+
* @since GDAL 2.0
|
|
1027
|
+
*/
|
|
1028
|
+
#define GDAL_OF_RASTER 0x02
|
|
1029
|
+
|
|
1030
|
+
/** Allow vector drivers to be used.
|
|
1031
|
+
* Used by GDALOpenEx().
|
|
1032
|
+
* @since GDAL 2.0
|
|
1033
|
+
*/
|
|
1034
|
+
#define GDAL_OF_VECTOR 0x04
|
|
1035
|
+
|
|
1036
|
+
/** Allow gnm drivers to be used.
|
|
1037
|
+
* Used by GDALOpenEx().
|
|
1038
|
+
* @since GDAL 2.1
|
|
1039
|
+
*/
|
|
1040
|
+
#define GDAL_OF_GNM 0x08
|
|
1041
|
+
|
|
1042
|
+
/** Allow multidimensional raster drivers to be used.
|
|
1043
|
+
* Used by GDALOpenEx().
|
|
1044
|
+
* @since GDAL 3.1
|
|
1045
|
+
*/
|
|
1046
|
+
#define GDAL_OF_MULTIDIM_RASTER 0x10
|
|
1047
|
+
|
|
1048
|
+
#ifndef DOXYGEN_SKIP
|
|
1049
|
+
#define GDAL_OF_KIND_MASK 0x1E
|
|
1050
|
+
#endif
|
|
1051
|
+
|
|
1052
|
+
/** Open in shared mode.
|
|
1053
|
+
* Used by GDALOpenEx().
|
|
1054
|
+
* @since GDAL 2.0
|
|
1055
|
+
*/
|
|
1056
|
+
#define GDAL_OF_SHARED 0x20
|
|
1057
|
+
|
|
1058
|
+
/** Emit error message in case of failed open.
|
|
1059
|
+
* Used by GDALOpenEx().
|
|
1060
|
+
* @since GDAL 2.0
|
|
1061
|
+
*/
|
|
1062
|
+
#define GDAL_OF_VERBOSE_ERROR 0x40
|
|
1063
|
+
|
|
1064
|
+
/** Open as internal dataset. Such dataset isn't registered in the global list
|
|
1065
|
+
* of opened dataset. Cannot be used with GDAL_OF_SHARED.
|
|
1066
|
+
*
|
|
1067
|
+
* Used by GDALOpenEx().
|
|
1068
|
+
* @since GDAL 2.0
|
|
1069
|
+
*/
|
|
1070
|
+
#define GDAL_OF_INTERNAL 0x80
|
|
1071
|
+
|
|
1072
|
+
/** Let GDAL decide if a array-based or hashset-based storage strategy for
|
|
1073
|
+
* cached blocks must be used.
|
|
1074
|
+
*
|
|
1075
|
+
* GDAL_OF_DEFAULT_BLOCK_ACCESS, GDAL_OF_ARRAY_BLOCK_ACCESS and
|
|
1076
|
+
* GDAL_OF_HASHSET_BLOCK_ACCESS are mutually exclusive.
|
|
1077
|
+
*
|
|
1078
|
+
* Used by GDALOpenEx().
|
|
1079
|
+
* @since GDAL 2.1
|
|
1080
|
+
*/
|
|
1081
|
+
#define GDAL_OF_DEFAULT_BLOCK_ACCESS 0
|
|
1082
|
+
|
|
1083
|
+
/** Use a array-based storage strategy for cached blocks.
|
|
1084
|
+
*
|
|
1085
|
+
* GDAL_OF_DEFAULT_BLOCK_ACCESS, GDAL_OF_ARRAY_BLOCK_ACCESS and
|
|
1086
|
+
* GDAL_OF_HASHSET_BLOCK_ACCESS are mutually exclusive.
|
|
1087
|
+
*
|
|
1088
|
+
* Used by GDALOpenEx().
|
|
1089
|
+
* @since GDAL 2.1
|
|
1090
|
+
*/
|
|
1091
|
+
#define GDAL_OF_ARRAY_BLOCK_ACCESS 0x100
|
|
1092
|
+
|
|
1093
|
+
/** Use a hashset-based storage strategy for cached blocks.
|
|
1094
|
+
*
|
|
1095
|
+
* GDAL_OF_DEFAULT_BLOCK_ACCESS, GDAL_OF_ARRAY_BLOCK_ACCESS and
|
|
1096
|
+
* GDAL_OF_HASHSET_BLOCK_ACCESS are mutually exclusive.
|
|
1097
|
+
*
|
|
1098
|
+
* Used by GDALOpenEx().
|
|
1099
|
+
* @since GDAL 2.1
|
|
1100
|
+
*/
|
|
1101
|
+
#define GDAL_OF_HASHSET_BLOCK_ACCESS 0x200
|
|
1102
|
+
|
|
1103
|
+
#ifndef DOXYGEN_SKIP
|
|
1104
|
+
/* Reserved for a potential future alternative to GDAL_OF_ARRAY_BLOCK_ACCESS
|
|
1105
|
+
* and GDAL_OF_HASHSET_BLOCK_ACCESS */
|
|
1106
|
+
#define GDAL_OF_RESERVED_1 0x300
|
|
1107
|
+
|
|
1108
|
+
/** Mask to detect the block access method */
|
|
1109
|
+
#define GDAL_OF_BLOCK_ACCESS_MASK 0x300
|
|
1110
|
+
#endif
|
|
1111
|
+
|
|
1112
|
+
#ifndef DOXYGEN_SKIP
|
|
1113
|
+
/** Set by GDALOpenEx() to indicate to Identify() method that they are called
|
|
1114
|
+
* from it */
|
|
1115
|
+
#define GDAL_OF_FROM_GDALOPEN 0x400
|
|
1116
|
+
#endif
|
|
1117
|
+
|
|
1118
|
+
/** Open in thread-safe mode. Not compatible with
|
|
1119
|
+
* GDAL_OF_VECTOR, GDAL_OF_MULTIDIM_RASTER or GDAL_OF_UPDATE
|
|
1120
|
+
*
|
|
1121
|
+
* Used by GDALOpenEx().
|
|
1122
|
+
* @since GDAL 3.10
|
|
1123
|
+
*/
|
|
1124
|
+
#define GDAL_OF_THREAD_SAFE 0x800
|
|
1125
|
+
|
|
1126
|
+
GDALDatasetH CPL_DLL CPL_STDCALL GDALOpenEx(
|
|
1127
|
+
const char *pszFilename, unsigned int nOpenFlags,
|
|
1128
|
+
const char *const *papszAllowedDrivers, const char *const *papszOpenOptions,
|
|
1129
|
+
const char *const *papszSiblingFiles) CPL_WARN_UNUSED_RESULT;
|
|
1130
|
+
|
|
1131
|
+
int CPL_DLL CPL_STDCALL GDALDumpOpenDatasets(FILE *);
|
|
1132
|
+
|
|
1133
|
+
GDALDriverH CPL_DLL CPL_STDCALL GDALGetDriverByName(const char *);
|
|
1134
|
+
int CPL_DLL CPL_STDCALL GDALGetDriverCount(void);
|
|
1135
|
+
GDALDriverH CPL_DLL CPL_STDCALL GDALGetDriver(int);
|
|
1136
|
+
GDALDriverH CPL_DLL CPL_STDCALL GDALCreateDriver(void);
|
|
1137
|
+
void CPL_DLL CPL_STDCALL GDALDestroyDriver(GDALDriverH);
|
|
1138
|
+
int CPL_DLL CPL_STDCALL GDALRegisterDriver(GDALDriverH);
|
|
1139
|
+
void CPL_DLL CPL_STDCALL GDALDeregisterDriver(GDALDriverH);
|
|
1140
|
+
void CPL_DLL CPL_STDCALL GDALDestroyDriverManager(void);
|
|
1141
|
+
void CPL_DLL GDALDestroy(void);
|
|
1142
|
+
CPLErr CPL_DLL CPL_STDCALL GDALDeleteDataset(GDALDriverH, const char *);
|
|
1143
|
+
CPLErr CPL_DLL CPL_STDCALL GDALRenameDataset(GDALDriverH,
|
|
1144
|
+
const char *pszNewName,
|
|
1145
|
+
const char *pszOldName);
|
|
1146
|
+
CPLErr CPL_DLL CPL_STDCALL GDALCopyDatasetFiles(GDALDriverH,
|
|
1147
|
+
const char *pszNewName,
|
|
1148
|
+
const char *pszOldName);
|
|
1149
|
+
int CPL_DLL CPL_STDCALL
|
|
1150
|
+
GDALValidateCreationOptions(GDALDriverH, CSLConstList papszCreationOptions);
|
|
1151
|
+
char CPL_DLL **GDALGetOutputDriversForDatasetName(const char *pszDestFilename,
|
|
1152
|
+
int nFlagRasterVector,
|
|
1153
|
+
bool bSingleMatch,
|
|
1154
|
+
bool bEmitWarning);
|
|
1155
|
+
|
|
1156
|
+
/* The following are deprecated */
|
|
1157
|
+
const char CPL_DLL *CPL_STDCALL GDALGetDriverShortName(GDALDriverH);
|
|
1158
|
+
const char CPL_DLL *CPL_STDCALL GDALGetDriverLongName(GDALDriverH);
|
|
1159
|
+
const char CPL_DLL *CPL_STDCALL GDALGetDriverHelpTopic(GDALDriverH);
|
|
1160
|
+
const char CPL_DLL *CPL_STDCALL GDALGetDriverCreationOptionList(GDALDriverH);
|
|
1161
|
+
|
|
1162
|
+
/* ==================================================================== */
|
|
1163
|
+
/* GDAL_GCP */
|
|
1164
|
+
/* ==================================================================== */
|
|
1165
|
+
|
|
1166
|
+
/** Ground Control Point */
|
|
1167
|
+
typedef struct
|
|
1168
|
+
{
|
|
1169
|
+
/** Unique identifier, often numeric */
|
|
1170
|
+
char *pszId;
|
|
1171
|
+
|
|
1172
|
+
/** Informational message or "" */
|
|
1173
|
+
char *pszInfo;
|
|
1174
|
+
|
|
1175
|
+
/** Pixel (x) location of GCP on raster */
|
|
1176
|
+
double dfGCPPixel;
|
|
1177
|
+
/** Line (y) location of GCP on raster */
|
|
1178
|
+
double dfGCPLine;
|
|
1179
|
+
|
|
1180
|
+
/** X position of GCP in georeferenced space */
|
|
1181
|
+
double dfGCPX;
|
|
1182
|
+
|
|
1183
|
+
/** Y position of GCP in georeferenced space */
|
|
1184
|
+
double dfGCPY;
|
|
1185
|
+
|
|
1186
|
+
/** Elevation of GCP, or zero if not known */
|
|
1187
|
+
double dfGCPZ;
|
|
1188
|
+
} GDAL_GCP;
|
|
1189
|
+
|
|
1190
|
+
void CPL_DLL CPL_STDCALL GDALInitGCPs(int, GDAL_GCP *);
|
|
1191
|
+
void CPL_DLL CPL_STDCALL GDALDeinitGCPs(int, GDAL_GCP *);
|
|
1192
|
+
GDAL_GCP CPL_DLL *CPL_STDCALL GDALDuplicateGCPs(int, const GDAL_GCP *);
|
|
1193
|
+
|
|
1194
|
+
int CPL_DLL CPL_STDCALL GDALGCPsToGeoTransform(
|
|
1195
|
+
int nGCPCount, const GDAL_GCP *pasGCPs, double *padfGeoTransform,
|
|
1196
|
+
int bApproxOK) CPL_WARN_UNUSED_RESULT;
|
|
1197
|
+
int CPL_DLL CPL_STDCALL GDALInvGeoTransform(const double *padfGeoTransformIn,
|
|
1198
|
+
double *padfInvGeoTransformOut)
|
|
1199
|
+
CPL_WARN_UNUSED_RESULT;
|
|
1200
|
+
void CPL_DLL CPL_STDCALL GDALApplyGeoTransform(const double *, double, double,
|
|
1201
|
+
double *, double *);
|
|
1202
|
+
void CPL_DLL GDALComposeGeoTransforms(const double *padfGeoTransform1,
|
|
1203
|
+
const double *padfGeoTransform2,
|
|
1204
|
+
double *padfGeoTransformOut);
|
|
1205
|
+
|
|
1206
|
+
/* ==================================================================== */
|
|
1207
|
+
/* major objects (dataset, and, driver, drivermanager). */
|
|
1208
|
+
/* ==================================================================== */
|
|
1209
|
+
|
|
1210
|
+
char CPL_DLL **CPL_STDCALL GDALGetMetadataDomainList(GDALMajorObjectH hObject);
|
|
1211
|
+
char CPL_DLL **CPL_STDCALL GDALGetMetadata(GDALMajorObjectH, const char *);
|
|
1212
|
+
CPLErr CPL_DLL CPL_STDCALL GDALSetMetadata(GDALMajorObjectH, CSLConstList,
|
|
1213
|
+
const char *);
|
|
1214
|
+
const char CPL_DLL *CPL_STDCALL GDALGetMetadataItem(GDALMajorObjectH,
|
|
1215
|
+
const char *, const char *);
|
|
1216
|
+
CPLErr CPL_DLL CPL_STDCALL GDALSetMetadataItem(GDALMajorObjectH, const char *,
|
|
1217
|
+
const char *, const char *);
|
|
1218
|
+
const char CPL_DLL *CPL_STDCALL GDALGetDescription(GDALMajorObjectH);
|
|
1219
|
+
void CPL_DLL CPL_STDCALL GDALSetDescription(GDALMajorObjectH, const char *);
|
|
1220
|
+
|
|
1221
|
+
/* ==================================================================== */
|
|
1222
|
+
/* GDALDataset class ... normally this represents one file. */
|
|
1223
|
+
/* ==================================================================== */
|
|
1224
|
+
|
|
1225
|
+
/** Name of driver metadata item for layer creation option list */
|
|
1226
|
+
#define GDAL_DS_LAYER_CREATIONOPTIONLIST "DS_LAYER_CREATIONOPTIONLIST"
|
|
1227
|
+
|
|
1228
|
+
GDALDriverH CPL_DLL CPL_STDCALL GDALGetDatasetDriver(GDALDatasetH);
|
|
1229
|
+
char CPL_DLL **CPL_STDCALL GDALGetFileList(GDALDatasetH);
|
|
1230
|
+
CPLErr CPL_DLL CPL_STDCALL GDALClose(GDALDatasetH);
|
|
1231
|
+
int CPL_DLL CPL_STDCALL GDALGetRasterXSize(GDALDatasetH);
|
|
1232
|
+
int CPL_DLL CPL_STDCALL GDALGetRasterYSize(GDALDatasetH);
|
|
1233
|
+
int CPL_DLL CPL_STDCALL GDALGetRasterCount(GDALDatasetH);
|
|
1234
|
+
GDALRasterBandH CPL_DLL CPL_STDCALL GDALGetRasterBand(GDALDatasetH, int);
|
|
1235
|
+
|
|
1236
|
+
bool CPL_DLL GDALDatasetIsThreadSafe(GDALDatasetH, int nScopeFlags,
|
|
1237
|
+
CSLConstList papszOptions);
|
|
1238
|
+
GDALDatasetH CPL_DLL GDALGetThreadSafeDataset(GDALDatasetH, int nScopeFlags,
|
|
1239
|
+
CSLConstList papszOptions);
|
|
1240
|
+
|
|
1241
|
+
CPLErr CPL_DLL CPL_STDCALL GDALAddBand(GDALDatasetH hDS, GDALDataType eType,
|
|
1242
|
+
CSLConstList papszOptions);
|
|
1243
|
+
|
|
1244
|
+
GDALAsyncReaderH CPL_DLL CPL_STDCALL GDALBeginAsyncReader(
|
|
1245
|
+
GDALDatasetH hDS, int nXOff, int nYOff, int nXSize, int nYSize, void *pBuf,
|
|
1246
|
+
int nBufXSize, int nBufYSize, GDALDataType eBufType, int nBandCount,
|
|
1247
|
+
int *panBandMap, int nPixelSpace, int nLineSpace, int nBandSpace,
|
|
1248
|
+
CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT;
|
|
1249
|
+
|
|
1250
|
+
void CPL_DLL CPL_STDCALL GDALEndAsyncReader(GDALDatasetH hDS,
|
|
1251
|
+
GDALAsyncReaderH hAsynchReaderH);
|
|
1252
|
+
|
|
1253
|
+
CPLErr CPL_DLL CPL_STDCALL GDALDatasetRasterIO(
|
|
1254
|
+
GDALDatasetH hDS, GDALRWFlag eRWFlag, int nDSXOff, int nDSYOff,
|
|
1255
|
+
int nDSXSize, int nDSYSize, void *pBuffer, int nBXSize, int nBYSize,
|
|
1256
|
+
GDALDataType eBDataType, int nBandCount, const int *panBandCount,
|
|
1257
|
+
int nPixelSpace, int nLineSpace, int nBandSpace) CPL_WARN_UNUSED_RESULT;
|
|
1258
|
+
|
|
1259
|
+
CPLErr CPL_DLL CPL_STDCALL GDALDatasetRasterIOEx(
|
|
1260
|
+
GDALDatasetH hDS, GDALRWFlag eRWFlag, int nDSXOff, int nDSYOff,
|
|
1261
|
+
int nDSXSize, int nDSYSize, void *pBuffer, int nBXSize, int nBYSize,
|
|
1262
|
+
GDALDataType eBDataType, int nBandCount, const int *panBandCount,
|
|
1263
|
+
GSpacing nPixelSpace, GSpacing nLineSpace, GSpacing nBandSpace,
|
|
1264
|
+
GDALRasterIOExtraArg *psExtraArg) CPL_WARN_UNUSED_RESULT;
|
|
1265
|
+
|
|
1266
|
+
CPLErr CPL_DLL CPL_STDCALL GDALDatasetAdviseRead(
|
|
1267
|
+
GDALDatasetH hDS, int nDSXOff, int nDSYOff, int nDSXSize, int nDSYSize,
|
|
1268
|
+
int nBXSize, int nBYSize, GDALDataType eBDataType, int nBandCount,
|
|
1269
|
+
int *panBandCount, CSLConstList papszOptions);
|
|
1270
|
+
|
|
1271
|
+
char CPL_DLL **
|
|
1272
|
+
GDALDatasetGetCompressionFormats(GDALDatasetH hDS, int nXOff, int nYOff,
|
|
1273
|
+
int nXSize, int nYSize, int nBandCount,
|
|
1274
|
+
const int *panBandList) CPL_WARN_UNUSED_RESULT;
|
|
1275
|
+
CPLErr CPL_DLL GDALDatasetReadCompressedData(
|
|
1276
|
+
GDALDatasetH hDS, const char *pszFormat, int nXOff, int nYOff, int nXSize,
|
|
1277
|
+
int nYSize, int nBandCount, const int *panBandList, void **ppBuffer,
|
|
1278
|
+
size_t *pnBufferSize, char **ppszDetailedFormat);
|
|
1279
|
+
|
|
1280
|
+
const char CPL_DLL *CPL_STDCALL GDALGetProjectionRef(GDALDatasetH);
|
|
1281
|
+
OGRSpatialReferenceH CPL_DLL GDALGetSpatialRef(GDALDatasetH);
|
|
1282
|
+
CPLErr CPL_DLL CPL_STDCALL GDALSetProjection(GDALDatasetH, const char *);
|
|
1283
|
+
CPLErr CPL_DLL GDALSetSpatialRef(GDALDatasetH, OGRSpatialReferenceH);
|
|
1284
|
+
CPLErr CPL_DLL CPL_STDCALL GDALGetGeoTransform(GDALDatasetH, double *);
|
|
1285
|
+
CPLErr CPL_DLL CPL_STDCALL GDALSetGeoTransform(GDALDatasetH, double *);
|
|
1286
|
+
|
|
1287
|
+
int CPL_DLL CPL_STDCALL GDALGetGCPCount(GDALDatasetH);
|
|
1288
|
+
const char CPL_DLL *CPL_STDCALL GDALGetGCPProjection(GDALDatasetH);
|
|
1289
|
+
OGRSpatialReferenceH CPL_DLL GDALGetGCPSpatialRef(GDALDatasetH);
|
|
1290
|
+
const GDAL_GCP CPL_DLL *CPL_STDCALL GDALGetGCPs(GDALDatasetH);
|
|
1291
|
+
CPLErr CPL_DLL CPL_STDCALL GDALSetGCPs(GDALDatasetH, int, const GDAL_GCP *,
|
|
1292
|
+
const char *);
|
|
1293
|
+
CPLErr CPL_DLL GDALSetGCPs2(GDALDatasetH, int, const GDAL_GCP *,
|
|
1294
|
+
OGRSpatialReferenceH);
|
|
1295
|
+
|
|
1296
|
+
void CPL_DLL *CPL_STDCALL GDALGetInternalHandle(GDALDatasetH, const char *);
|
|
1297
|
+
int CPL_DLL CPL_STDCALL GDALReferenceDataset(GDALDatasetH);
|
|
1298
|
+
int CPL_DLL CPL_STDCALL GDALDereferenceDataset(GDALDatasetH);
|
|
1299
|
+
int CPL_DLL CPL_STDCALL GDALReleaseDataset(GDALDatasetH);
|
|
1300
|
+
|
|
1301
|
+
CPLErr CPL_DLL CPL_STDCALL GDALBuildOverviews(GDALDatasetH, const char *, int,
|
|
1302
|
+
const int *, int, const int *,
|
|
1303
|
+
GDALProgressFunc,
|
|
1304
|
+
void *) CPL_WARN_UNUSED_RESULT;
|
|
1305
|
+
CPLErr CPL_DLL CPL_STDCALL GDALBuildOverviewsEx(
|
|
1306
|
+
GDALDatasetH, const char *, int, const int *, int, const int *,
|
|
1307
|
+
GDALProgressFunc, void *, CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT;
|
|
1308
|
+
void CPL_DLL CPL_STDCALL GDALGetOpenDatasets(GDALDatasetH **hDS, int *pnCount);
|
|
1309
|
+
int CPL_DLL CPL_STDCALL GDALGetAccess(GDALDatasetH hDS);
|
|
1310
|
+
CPLErr CPL_DLL CPL_STDCALL GDALFlushCache(GDALDatasetH hDS);
|
|
1311
|
+
CPLErr CPL_DLL CPL_STDCALL GDALDropCache(GDALDatasetH hDS);
|
|
1312
|
+
|
|
1313
|
+
CPLErr CPL_DLL CPL_STDCALL GDALCreateDatasetMaskBand(GDALDatasetH hDS,
|
|
1314
|
+
int nFlags);
|
|
1315
|
+
|
|
1316
|
+
CPLErr CPL_DLL CPL_STDCALL GDALDatasetCopyWholeRaster(
|
|
1317
|
+
GDALDatasetH hSrcDS, GDALDatasetH hDstDS, CSLConstList papszOptions,
|
|
1318
|
+
GDALProgressFunc pfnProgress, void *pProgressData) CPL_WARN_UNUSED_RESULT;
|
|
1319
|
+
|
|
1320
|
+
CPLErr CPL_DLL CPL_STDCALL GDALRasterBandCopyWholeRaster(
|
|
1321
|
+
GDALRasterBandH hSrcBand, GDALRasterBandH hDstBand,
|
|
1322
|
+
const char *const *constpapszOptions, GDALProgressFunc pfnProgress,
|
|
1323
|
+
void *pProgressData) CPL_WARN_UNUSED_RESULT;
|
|
1324
|
+
|
|
1325
|
+
CPLErr CPL_DLL GDALRegenerateOverviews(GDALRasterBandH hSrcBand,
|
|
1326
|
+
int nOverviewCount,
|
|
1327
|
+
GDALRasterBandH *pahOverviewBands,
|
|
1328
|
+
const char *pszResampling,
|
|
1329
|
+
GDALProgressFunc pfnProgress,
|
|
1330
|
+
void *pProgressData);
|
|
1331
|
+
|
|
1332
|
+
CPLErr CPL_DLL GDALRegenerateOverviewsEx(GDALRasterBandH hSrcBand,
|
|
1333
|
+
int nOverviewCount,
|
|
1334
|
+
GDALRasterBandH *pahOverviewBands,
|
|
1335
|
+
const char *pszResampling,
|
|
1336
|
+
GDALProgressFunc pfnProgress,
|
|
1337
|
+
void *pProgressData,
|
|
1338
|
+
CSLConstList papszOptions);
|
|
1339
|
+
|
|
1340
|
+
int CPL_DLL GDALDatasetGetLayerCount(GDALDatasetH);
|
|
1341
|
+
OGRLayerH CPL_DLL GDALDatasetGetLayer(GDALDatasetH, int);
|
|
1342
|
+
|
|
1343
|
+
/* Defined here to avoid circular dependency with ogr_api.h */
|
|
1344
|
+
GDALDatasetH CPL_DLL OGR_L_GetDataset(OGRLayerH hLayer);
|
|
1345
|
+
|
|
1346
|
+
OGRLayerH CPL_DLL GDALDatasetGetLayerByName(GDALDatasetH, const char *);
|
|
1347
|
+
int CPL_DLL GDALDatasetIsLayerPrivate(GDALDatasetH, int);
|
|
1348
|
+
OGRErr CPL_DLL GDALDatasetDeleteLayer(GDALDatasetH, int);
|
|
1349
|
+
OGRLayerH CPL_DLL GDALDatasetCreateLayer(GDALDatasetH, const char *,
|
|
1350
|
+
OGRSpatialReferenceH,
|
|
1351
|
+
OGRwkbGeometryType, CSLConstList);
|
|
1352
|
+
OGRLayerH CPL_DLL GDALDatasetCreateLayerFromGeomFieldDefn(GDALDatasetH,
|
|
1353
|
+
const char *,
|
|
1354
|
+
OGRGeomFieldDefnH,
|
|
1355
|
+
CSLConstList);
|
|
1356
|
+
OGRLayerH CPL_DLL GDALDatasetCopyLayer(GDALDatasetH, OGRLayerH, const char *,
|
|
1357
|
+
CSLConstList);
|
|
1358
|
+
void CPL_DLL GDALDatasetResetReading(GDALDatasetH);
|
|
1359
|
+
OGRFeatureH CPL_DLL GDALDatasetGetNextFeature(GDALDatasetH hDS,
|
|
1360
|
+
OGRLayerH *phBelongingLayer,
|
|
1361
|
+
double *pdfProgressPct,
|
|
1362
|
+
GDALProgressFunc pfnProgress,
|
|
1363
|
+
void *pProgressData);
|
|
1364
|
+
int CPL_DLL GDALDatasetTestCapability(GDALDatasetH, const char *);
|
|
1365
|
+
OGRLayerH CPL_DLL GDALDatasetExecuteSQL(GDALDatasetH, const char *,
|
|
1366
|
+
OGRGeometryH, const char *);
|
|
1367
|
+
OGRErr CPL_DLL GDALDatasetAbortSQL(GDALDatasetH);
|
|
1368
|
+
void CPL_DLL GDALDatasetReleaseResultSet(GDALDatasetH, OGRLayerH);
|
|
1369
|
+
OGRStyleTableH CPL_DLL GDALDatasetGetStyleTable(GDALDatasetH);
|
|
1370
|
+
void CPL_DLL GDALDatasetSetStyleTableDirectly(GDALDatasetH, OGRStyleTableH);
|
|
1371
|
+
void CPL_DLL GDALDatasetSetStyleTable(GDALDatasetH, OGRStyleTableH);
|
|
1372
|
+
OGRErr CPL_DLL GDALDatasetStartTransaction(GDALDatasetH hDS, int bForce);
|
|
1373
|
+
OGRErr CPL_DLL GDALDatasetCommitTransaction(GDALDatasetH hDS);
|
|
1374
|
+
OGRErr CPL_DLL GDALDatasetRollbackTransaction(GDALDatasetH hDS);
|
|
1375
|
+
void CPL_DLL GDALDatasetClearStatistics(GDALDatasetH hDS);
|
|
1376
|
+
|
|
1377
|
+
char CPL_DLL **GDALDatasetGetFieldDomainNames(GDALDatasetH, CSLConstList)
|
|
1378
|
+
CPL_WARN_UNUSED_RESULT;
|
|
1379
|
+
OGRFieldDomainH CPL_DLL GDALDatasetGetFieldDomain(GDALDatasetH hDS,
|
|
1380
|
+
const char *pszName);
|
|
1381
|
+
bool CPL_DLL GDALDatasetAddFieldDomain(GDALDatasetH hDS,
|
|
1382
|
+
OGRFieldDomainH hFieldDomain,
|
|
1383
|
+
char **ppszFailureReason);
|
|
1384
|
+
bool CPL_DLL GDALDatasetDeleteFieldDomain(GDALDatasetH hDS, const char *pszName,
|
|
1385
|
+
char **ppszFailureReason);
|
|
1386
|
+
bool CPL_DLL GDALDatasetUpdateFieldDomain(GDALDatasetH hDS,
|
|
1387
|
+
OGRFieldDomainH hFieldDomain,
|
|
1388
|
+
char **ppszFailureReason);
|
|
1389
|
+
|
|
1390
|
+
char CPL_DLL **GDALDatasetGetRelationshipNames(GDALDatasetH, CSLConstList)
|
|
1391
|
+
CPL_WARN_UNUSED_RESULT;
|
|
1392
|
+
GDALRelationshipH CPL_DLL GDALDatasetGetRelationship(GDALDatasetH hDS,
|
|
1393
|
+
const char *pszName);
|
|
1394
|
+
|
|
1395
|
+
bool CPL_DLL GDALDatasetAddRelationship(GDALDatasetH hDS,
|
|
1396
|
+
GDALRelationshipH hRelationship,
|
|
1397
|
+
char **ppszFailureReason);
|
|
1398
|
+
bool CPL_DLL GDALDatasetDeleteRelationship(GDALDatasetH hDS,
|
|
1399
|
+
const char *pszName,
|
|
1400
|
+
char **ppszFailureReason);
|
|
1401
|
+
bool CPL_DLL GDALDatasetUpdateRelationship(GDALDatasetH hDS,
|
|
1402
|
+
GDALRelationshipH hRelationship,
|
|
1403
|
+
char **ppszFailureReason);
|
|
1404
|
+
|
|
1405
|
+
/** Type of functions to pass to GDALDatasetSetQueryLoggerFunc
|
|
1406
|
+
* @since GDAL 3.7 */
|
|
1407
|
+
typedef void (*GDALQueryLoggerFunc)(const char *pszSQL, const char *pszError,
|
|
1408
|
+
int64_t lNumRecords,
|
|
1409
|
+
int64_t lExecutionTimeMilliseconds,
|
|
1410
|
+
void *pQueryLoggerArg);
|
|
1411
|
+
|
|
1412
|
+
/**
|
|
1413
|
+
* Sets the SQL query logger callback.
|
|
1414
|
+
*
|
|
1415
|
+
* When supported by the driver, the callback will be called with
|
|
1416
|
+
* the executed SQL text, the error message, the execution time in milliseconds,
|
|
1417
|
+
* the number of records fetched/affected and the client status data.
|
|
1418
|
+
*
|
|
1419
|
+
* A value of -1 in the execution time or in the number of records indicates
|
|
1420
|
+
* that the values are unknown.
|
|
1421
|
+
*
|
|
1422
|
+
* @param hDS Dataset handle.
|
|
1423
|
+
* @param pfnQueryLoggerFunc Callback function
|
|
1424
|
+
* @param poQueryLoggerArg Opaque client status data
|
|
1425
|
+
* @return true in case of success.
|
|
1426
|
+
* @since GDAL 3.7
|
|
1427
|
+
*/
|
|
1428
|
+
bool CPL_DLL GDALDatasetSetQueryLoggerFunc(
|
|
1429
|
+
GDALDatasetH hDS, GDALQueryLoggerFunc pfnQueryLoggerFunc,
|
|
1430
|
+
void *poQueryLoggerArg);
|
|
1431
|
+
|
|
1432
|
+
/* ==================================================================== */
|
|
1433
|
+
/* Informational utilities about subdatasets in file names */
|
|
1434
|
+
/* ==================================================================== */
|
|
1435
|
+
|
|
1436
|
+
/**
|
|
1437
|
+
* Opaque type used for the C bindings of the C++ GDALSubdatasetInfo class
|
|
1438
|
+
* @since GDAL 3.8
|
|
1439
|
+
*/
|
|
1440
|
+
typedef struct GDALSubdatasetInfo *GDALSubdatasetInfoH;
|
|
1441
|
+
|
|
1442
|
+
/**
|
|
1443
|
+
* @brief Returns a new GDALSubdatasetInfo object with methods to extract
|
|
1444
|
+
* and manipulate subdataset information.
|
|
1445
|
+
* If the pszFileName argument is not recognized by any driver as
|
|
1446
|
+
* a subdataset descriptor, NULL is returned.
|
|
1447
|
+
* The returned object must be freed with GDALDestroySubdatasetInfo().
|
|
1448
|
+
* @param pszFileName File name with subdataset information
|
|
1449
|
+
* @note This method does not check if the subdataset actually exists.
|
|
1450
|
+
* @return Opaque pointer to a GDALSubdatasetInfo object or NULL if no drivers accepted the file name.
|
|
1451
|
+
* @since GDAL 3.8
|
|
1452
|
+
*/
|
|
1453
|
+
GDALSubdatasetInfoH CPL_DLL GDALGetSubdatasetInfo(const char *pszFileName);
|
|
1454
|
+
|
|
1455
|
+
/**
|
|
1456
|
+
* @brief Returns the file path component of a
|
|
1457
|
+
* subdataset descriptor effectively stripping the information about the subdataset
|
|
1458
|
+
* and returning the "parent" dataset descriptor.
|
|
1459
|
+
* The returned string must be freed with CPLFree().
|
|
1460
|
+
* @param hInfo Pointer to GDALSubdatasetInfo object
|
|
1461
|
+
* @note This method does not check if the subdataset actually exists.
|
|
1462
|
+
* @return The original string with the subdataset information removed.
|
|
1463
|
+
* @since GDAL 3.8
|
|
1464
|
+
*/
|
|
1465
|
+
char CPL_DLL *GDALSubdatasetInfoGetPathComponent(GDALSubdatasetInfoH hInfo);
|
|
1466
|
+
|
|
1467
|
+
/**
|
|
1468
|
+
* @brief Returns the subdataset component of a subdataset descriptor descriptor.
|
|
1469
|
+
* The returned string must be freed with CPLFree().
|
|
1470
|
+
* @param hInfo Pointer to GDALSubdatasetInfo object
|
|
1471
|
+
* @note This method does not check if the subdataset actually exists.
|
|
1472
|
+
* @return The subdataset name.
|
|
1473
|
+
* @since GDAL 3.8
|
|
1474
|
+
*/
|
|
1475
|
+
char CPL_DLL *
|
|
1476
|
+
GDALSubdatasetInfoGetSubdatasetComponent(GDALSubdatasetInfoH hInfo);
|
|
1477
|
+
|
|
1478
|
+
/**
|
|
1479
|
+
* @brief Replaces the path component of a subdataset descriptor.
|
|
1480
|
+
* The returned string must be freed with CPLFree().
|
|
1481
|
+
* @param hInfo Pointer to GDALSubdatasetInfo object
|
|
1482
|
+
* @param pszNewPath New path.
|
|
1483
|
+
* @note This method does not check if the subdataset actually exists.
|
|
1484
|
+
* @return The original subdataset descriptor with the old path component replaced by newPath.
|
|
1485
|
+
* @since GDAL 3.8
|
|
1486
|
+
*/
|
|
1487
|
+
char CPL_DLL *GDALSubdatasetInfoModifyPathComponent(GDALSubdatasetInfoH hInfo,
|
|
1488
|
+
const char *pszNewPath);
|
|
1489
|
+
|
|
1490
|
+
/**
|
|
1491
|
+
* @brief Destroys a GDALSubdatasetInfo object.
|
|
1492
|
+
* @param hInfo Pointer to GDALSubdatasetInfo object
|
|
1493
|
+
* @since GDAL 3.8
|
|
1494
|
+
*/
|
|
1495
|
+
void CPL_DLL GDALDestroySubdatasetInfo(GDALSubdatasetInfoH hInfo);
|
|
1496
|
+
|
|
1497
|
+
/* ==================================================================== */
|
|
1498
|
+
/* GDALRasterBand ... one band/channel in a dataset. */
|
|
1499
|
+
/* ==================================================================== */
|
|
1500
|
+
|
|
1501
|
+
/* Note: the only user of SRCVAL() was frmts/vrt/pixelfunctions.cpp and we no */
|
|
1502
|
+
/* longer use it. */
|
|
1503
|
+
|
|
1504
|
+
/**
|
|
1505
|
+
* SRCVAL - Macro which may be used by pixel functions to obtain
|
|
1506
|
+
* a pixel from a source buffer.
|
|
1507
|
+
*/
|
|
1508
|
+
#define SRCVAL(papoSource, eSrcType, ii) \
|
|
1509
|
+
(eSrcType == GDT_Byte \
|
|
1510
|
+
? CPL_REINTERPRET_CAST(const GByte *, papoSource)[ii] \
|
|
1511
|
+
: (eSrcType == GDT_Int8 \
|
|
1512
|
+
? CPL_REINTERPRET_CAST(const GInt8 *, papoSource)[ii] \
|
|
1513
|
+
: (eSrcType == GDT_Float32 \
|
|
1514
|
+
? CPL_REINTERPRET_CAST(const float *, papoSource)[ii] \
|
|
1515
|
+
: (eSrcType == GDT_Float64 \
|
|
1516
|
+
? CPL_REINTERPRET_CAST(const double *, \
|
|
1517
|
+
papoSource)[ii] \
|
|
1518
|
+
: (eSrcType == GDT_Int32 \
|
|
1519
|
+
? CPL_REINTERPRET_CAST(const GInt32 *, \
|
|
1520
|
+
papoSource)[ii] \
|
|
1521
|
+
: (eSrcType == GDT_UInt16 \
|
|
1522
|
+
? CPL_REINTERPRET_CAST( \
|
|
1523
|
+
const GUInt16 *, \
|
|
1524
|
+
papoSource)[ii] \
|
|
1525
|
+
: (eSrcType == GDT_Int16 \
|
|
1526
|
+
? CPL_REINTERPRET_CAST( \
|
|
1527
|
+
const GInt16 *, \
|
|
1528
|
+
papoSource)[ii] \
|
|
1529
|
+
: (eSrcType == GDT_UInt32 \
|
|
1530
|
+
? CPL_REINTERPRET_CAST( \
|
|
1531
|
+
const GUInt32 \
|
|
1532
|
+
*, \
|
|
1533
|
+
papoSource) \
|
|
1534
|
+
[ii] \
|
|
1535
|
+
: (eSrcType == \
|
|
1536
|
+
GDT_CInt16 \
|
|
1537
|
+
? CPL_REINTERPRET_CAST( \
|
|
1538
|
+
const GInt16 \
|
|
1539
|
+
*, \
|
|
1540
|
+
papoSource) \
|
|
1541
|
+
[(ii)*2] \
|
|
1542
|
+
: (eSrcType == \
|
|
1543
|
+
GDT_CInt32 \
|
|
1544
|
+
? CPL_REINTERPRET_CAST( \
|
|
1545
|
+
const GInt32 \
|
|
1546
|
+
*, \
|
|
1547
|
+
papoSource) \
|
|
1548
|
+
[(ii)*2] \
|
|
1549
|
+
: (eSrcType == \
|
|
1550
|
+
GDT_CFloat32 \
|
|
1551
|
+
? CPL_REINTERPRET_CAST( \
|
|
1552
|
+
const float \
|
|
1553
|
+
*, \
|
|
1554
|
+
papoSource) \
|
|
1555
|
+
[(ii)*2] \
|
|
1556
|
+
: (eSrcType == \
|
|
1557
|
+
GDT_CFloat64 \
|
|
1558
|
+
? CPL_REINTERPRET_CAST( \
|
|
1559
|
+
const double \
|
|
1560
|
+
*, \
|
|
1561
|
+
papoSource) \
|
|
1562
|
+
[(ii)*2] \
|
|
1563
|
+
: 0))))))))))))
|
|
1564
|
+
|
|
1565
|
+
/** Type of functions to pass to GDALAddDerivedBandPixelFunc.
|
|
1566
|
+
* @since GDAL 2.2 */
|
|
1567
|
+
typedef CPLErr (*GDALDerivedPixelFunc)(void **papoSources, int nSources,
|
|
1568
|
+
void *pData, int nBufXSize,
|
|
1569
|
+
int nBufYSize, GDALDataType eSrcType,
|
|
1570
|
+
GDALDataType eBufType, int nPixelSpace,
|
|
1571
|
+
int nLineSpace);
|
|
1572
|
+
|
|
1573
|
+
/** Type of functions to pass to GDALAddDerivedBandPixelFuncWithArgs.
|
|
1574
|
+
* @since GDAL 3.4 */
|
|
1575
|
+
typedef CPLErr (*GDALDerivedPixelFuncWithArgs)(
|
|
1576
|
+
void **papoSources, int nSources, void *pData, int nBufXSize, int nBufYSize,
|
|
1577
|
+
GDALDataType eSrcType, GDALDataType eBufType, int nPixelSpace,
|
|
1578
|
+
int nLineSpace, CSLConstList papszFunctionArgs);
|
|
1579
|
+
|
|
1580
|
+
GDALDataType CPL_DLL CPL_STDCALL GDALGetRasterDataType(GDALRasterBandH);
|
|
1581
|
+
void CPL_DLL CPL_STDCALL GDALGetBlockSize(GDALRasterBandH, int *pnXSize,
|
|
1582
|
+
int *pnYSize);
|
|
1583
|
+
|
|
1584
|
+
CPLErr CPL_DLL CPL_STDCALL GDALGetActualBlockSize(GDALRasterBandH,
|
|
1585
|
+
int nXBlockOff,
|
|
1586
|
+
int nYBlockOff, int *pnXValid,
|
|
1587
|
+
int *pnYValid);
|
|
1588
|
+
|
|
1589
|
+
CPLErr CPL_DLL CPL_STDCALL GDALRasterAdviseRead(GDALRasterBandH hRB,
|
|
1590
|
+
int nDSXOff, int nDSYOff,
|
|
1591
|
+
int nDSXSize, int nDSYSize,
|
|
1592
|
+
int nBXSize, int nBYSize,
|
|
1593
|
+
GDALDataType eBDataType,
|
|
1594
|
+
CSLConstList papszOptions);
|
|
1595
|
+
|
|
1596
|
+
CPLErr CPL_DLL CPL_STDCALL GDALRasterIO(GDALRasterBandH hRBand,
|
|
1597
|
+
GDALRWFlag eRWFlag, int nDSXOff,
|
|
1598
|
+
int nDSYOff, int nDSXSize, int nDSYSize,
|
|
1599
|
+
void *pBuffer, int nBXSize, int nBYSize,
|
|
1600
|
+
GDALDataType eBDataType,
|
|
1601
|
+
int nPixelSpace,
|
|
1602
|
+
int nLineSpace) CPL_WARN_UNUSED_RESULT;
|
|
1603
|
+
CPLErr CPL_DLL CPL_STDCALL GDALRasterIOEx(
|
|
1604
|
+
GDALRasterBandH hRBand, GDALRWFlag eRWFlag, int nDSXOff, int nDSYOff,
|
|
1605
|
+
int nDSXSize, int nDSYSize, void *pBuffer, int nBXSize, int nBYSize,
|
|
1606
|
+
GDALDataType eBDataType, GSpacing nPixelSpace, GSpacing nLineSpace,
|
|
1607
|
+
GDALRasterIOExtraArg *psExtraArg) CPL_WARN_UNUSED_RESULT;
|
|
1608
|
+
CPLErr CPL_DLL CPL_STDCALL GDALReadBlock(GDALRasterBandH, int, int,
|
|
1609
|
+
void *) CPL_WARN_UNUSED_RESULT;
|
|
1610
|
+
CPLErr CPL_DLL CPL_STDCALL GDALWriteBlock(GDALRasterBandH, int, int,
|
|
1611
|
+
void *) CPL_WARN_UNUSED_RESULT;
|
|
1612
|
+
int CPL_DLL CPL_STDCALL GDALGetRasterBandXSize(GDALRasterBandH);
|
|
1613
|
+
int CPL_DLL CPL_STDCALL GDALGetRasterBandYSize(GDALRasterBandH);
|
|
1614
|
+
GDALAccess CPL_DLL CPL_STDCALL GDALGetRasterAccess(GDALRasterBandH);
|
|
1615
|
+
int CPL_DLL CPL_STDCALL GDALGetBandNumber(GDALRasterBandH);
|
|
1616
|
+
GDALDatasetH CPL_DLL CPL_STDCALL GDALGetBandDataset(GDALRasterBandH);
|
|
1617
|
+
|
|
1618
|
+
GDALColorInterp
|
|
1619
|
+
CPL_DLL CPL_STDCALL GDALGetRasterColorInterpretation(GDALRasterBandH);
|
|
1620
|
+
CPLErr CPL_DLL CPL_STDCALL GDALSetRasterColorInterpretation(GDALRasterBandH,
|
|
1621
|
+
GDALColorInterp);
|
|
1622
|
+
GDALColorTableH CPL_DLL CPL_STDCALL GDALGetRasterColorTable(GDALRasterBandH);
|
|
1623
|
+
CPLErr CPL_DLL CPL_STDCALL GDALSetRasterColorTable(GDALRasterBandH,
|
|
1624
|
+
GDALColorTableH);
|
|
1625
|
+
int CPL_DLL CPL_STDCALL GDALHasArbitraryOverviews(GDALRasterBandH);
|
|
1626
|
+
int CPL_DLL CPL_STDCALL GDALGetOverviewCount(GDALRasterBandH);
|
|
1627
|
+
GDALRasterBandH CPL_DLL CPL_STDCALL GDALGetOverview(GDALRasterBandH, int);
|
|
1628
|
+
double CPL_DLL CPL_STDCALL GDALGetRasterNoDataValue(GDALRasterBandH, int *);
|
|
1629
|
+
int64_t CPL_DLL CPL_STDCALL GDALGetRasterNoDataValueAsInt64(GDALRasterBandH,
|
|
1630
|
+
int *);
|
|
1631
|
+
uint64_t CPL_DLL CPL_STDCALL GDALGetRasterNoDataValueAsUInt64(GDALRasterBandH,
|
|
1632
|
+
int *);
|
|
1633
|
+
CPLErr CPL_DLL CPL_STDCALL GDALSetRasterNoDataValue(GDALRasterBandH, double);
|
|
1634
|
+
CPLErr CPL_DLL CPL_STDCALL GDALSetRasterNoDataValueAsInt64(GDALRasterBandH,
|
|
1635
|
+
int64_t);
|
|
1636
|
+
CPLErr CPL_DLL CPL_STDCALL GDALSetRasterNoDataValueAsUInt64(GDALRasterBandH,
|
|
1637
|
+
uint64_t);
|
|
1638
|
+
CPLErr CPL_DLL CPL_STDCALL GDALDeleteRasterNoDataValue(GDALRasterBandH);
|
|
1639
|
+
char CPL_DLL **CPL_STDCALL GDALGetRasterCategoryNames(GDALRasterBandH);
|
|
1640
|
+
CPLErr CPL_DLL CPL_STDCALL GDALSetRasterCategoryNames(GDALRasterBandH,
|
|
1641
|
+
CSLConstList);
|
|
1642
|
+
double CPL_DLL CPL_STDCALL GDALGetRasterMinimum(GDALRasterBandH,
|
|
1643
|
+
int *pbSuccess);
|
|
1644
|
+
double CPL_DLL CPL_STDCALL GDALGetRasterMaximum(GDALRasterBandH,
|
|
1645
|
+
int *pbSuccess);
|
|
1646
|
+
CPLErr CPL_DLL CPL_STDCALL GDALGetRasterStatistics(
|
|
1647
|
+
GDALRasterBandH, int bApproxOK, int bForce, double *pdfMin, double *pdfMax,
|
|
1648
|
+
double *pdfMean, double *pdfStdDev);
|
|
1649
|
+
CPLErr CPL_DLL CPL_STDCALL
|
|
1650
|
+
GDALComputeRasterStatistics(GDALRasterBandH, int bApproxOK, double *pdfMin,
|
|
1651
|
+
double *pdfMax, double *pdfMean, double *pdfStdDev,
|
|
1652
|
+
GDALProgressFunc pfnProgress, void *pProgressData);
|
|
1653
|
+
CPLErr CPL_DLL CPL_STDCALL GDALSetRasterStatistics(GDALRasterBandH hBand,
|
|
1654
|
+
double dfMin, double dfMax,
|
|
1655
|
+
double dfMean,
|
|
1656
|
+
double dfStdDev);
|
|
1657
|
+
|
|
1658
|
+
GDALMDArrayH
|
|
1659
|
+
CPL_DLL GDALRasterBandAsMDArray(GDALRasterBandH) CPL_WARN_UNUSED_RESULT;
|
|
1660
|
+
|
|
1661
|
+
const char CPL_DLL *CPL_STDCALL GDALGetRasterUnitType(GDALRasterBandH);
|
|
1662
|
+
CPLErr CPL_DLL CPL_STDCALL GDALSetRasterUnitType(GDALRasterBandH hBand,
|
|
1663
|
+
const char *pszNewValue);
|
|
1664
|
+
double CPL_DLL CPL_STDCALL GDALGetRasterOffset(GDALRasterBandH, int *pbSuccess);
|
|
1665
|
+
CPLErr CPL_DLL CPL_STDCALL GDALSetRasterOffset(GDALRasterBandH hBand,
|
|
1666
|
+
double dfNewOffset);
|
|
1667
|
+
double CPL_DLL CPL_STDCALL GDALGetRasterScale(GDALRasterBandH, int *pbSuccess);
|
|
1668
|
+
CPLErr CPL_DLL CPL_STDCALL GDALSetRasterScale(GDALRasterBandH hBand,
|
|
1669
|
+
double dfNewOffset);
|
|
1670
|
+
CPLErr CPL_DLL CPL_STDCALL GDALComputeRasterMinMax(GDALRasterBandH hBand,
|
|
1671
|
+
int bApproxOK,
|
|
1672
|
+
double adfMinMax[2]);
|
|
1673
|
+
CPLErr CPL_DLL CPL_STDCALL GDALFlushRasterCache(GDALRasterBandH hBand);
|
|
1674
|
+
CPLErr CPL_DLL CPL_STDCALL GDALDropRasterCache(GDALRasterBandH hBand);
|
|
1675
|
+
CPLErr CPL_DLL CPL_STDCALL GDALGetRasterHistogram(
|
|
1676
|
+
GDALRasterBandH hBand, double dfMin, double dfMax, int nBuckets,
|
|
1677
|
+
int *panHistogram, int bIncludeOutOfRange, int bApproxOK,
|
|
1678
|
+
GDALProgressFunc pfnProgress, void *pProgressData)
|
|
1679
|
+
/*! @cond Doxygen_Suppress */
|
|
1680
|
+
CPL_WARN_DEPRECATED("Use GDALGetRasterHistogramEx() instead")
|
|
1681
|
+
/*! @endcond */
|
|
1682
|
+
;
|
|
1683
|
+
CPLErr CPL_DLL CPL_STDCALL GDALGetRasterHistogramEx(
|
|
1684
|
+
GDALRasterBandH hBand, double dfMin, double dfMax, int nBuckets,
|
|
1685
|
+
GUIntBig *panHistogram, int bIncludeOutOfRange, int bApproxOK,
|
|
1686
|
+
GDALProgressFunc pfnProgress, void *pProgressData);
|
|
1687
|
+
CPLErr CPL_DLL CPL_STDCALL
|
|
1688
|
+
GDALGetDefaultHistogram(GDALRasterBandH hBand, double *pdfMin, double *pdfMax,
|
|
1689
|
+
int *pnBuckets, int **ppanHistogram, int bForce,
|
|
1690
|
+
GDALProgressFunc pfnProgress, void *pProgressData)
|
|
1691
|
+
/*! @cond Doxygen_Suppress */
|
|
1692
|
+
CPL_WARN_DEPRECATED("Use GDALGetDefaultHistogramEx() instead")
|
|
1693
|
+
/*! @endcond */
|
|
1694
|
+
;
|
|
1695
|
+
CPLErr CPL_DLL CPL_STDCALL
|
|
1696
|
+
GDALGetDefaultHistogramEx(GDALRasterBandH hBand, double *pdfMin, double *pdfMax,
|
|
1697
|
+
int *pnBuckets, GUIntBig **ppanHistogram, int bForce,
|
|
1698
|
+
GDALProgressFunc pfnProgress, void *pProgressData);
|
|
1699
|
+
CPLErr CPL_DLL CPL_STDCALL GDALSetDefaultHistogram(GDALRasterBandH hBand,
|
|
1700
|
+
double dfMin, double dfMax,
|
|
1701
|
+
int nBuckets,
|
|
1702
|
+
int *panHistogram)
|
|
1703
|
+
/*! @cond Doxygen_Suppress */
|
|
1704
|
+
CPL_WARN_DEPRECATED("Use GDALSetDefaultHistogramEx() instead")
|
|
1705
|
+
/*! @endcond */
|
|
1706
|
+
;
|
|
1707
|
+
CPLErr CPL_DLL CPL_STDCALL GDALSetDefaultHistogramEx(GDALRasterBandH hBand,
|
|
1708
|
+
double dfMin, double dfMax,
|
|
1709
|
+
int nBuckets,
|
|
1710
|
+
GUIntBig *panHistogram);
|
|
1711
|
+
int CPL_DLL CPL_STDCALL GDALGetRandomRasterSample(GDALRasterBandH, int,
|
|
1712
|
+
float *);
|
|
1713
|
+
GDALRasterBandH CPL_DLL CPL_STDCALL GDALGetRasterSampleOverview(GDALRasterBandH,
|
|
1714
|
+
int);
|
|
1715
|
+
GDALRasterBandH CPL_DLL CPL_STDCALL
|
|
1716
|
+
GDALGetRasterSampleOverviewEx(GDALRasterBandH, GUIntBig);
|
|
1717
|
+
CPLErr CPL_DLL CPL_STDCALL GDALFillRaster(GDALRasterBandH hBand,
|
|
1718
|
+
double dfRealValue,
|
|
1719
|
+
double dfImaginaryValue);
|
|
1720
|
+
CPLErr CPL_DLL CPL_STDCALL GDALComputeBandStats(
|
|
1721
|
+
GDALRasterBandH hBand, int nSampleStep, double *pdfMean, double *pdfStdDev,
|
|
1722
|
+
GDALProgressFunc pfnProgress, void *pProgressData);
|
|
1723
|
+
CPLErr CPL_DLL GDALOverviewMagnitudeCorrection(GDALRasterBandH hBaseBand,
|
|
1724
|
+
int nOverviewCount,
|
|
1725
|
+
GDALRasterBandH *pahOverviews,
|
|
1726
|
+
GDALProgressFunc pfnProgress,
|
|
1727
|
+
void *pProgressData);
|
|
1728
|
+
|
|
1729
|
+
GDALRasterAttributeTableH CPL_DLL CPL_STDCALL
|
|
1730
|
+
GDALGetDefaultRAT(GDALRasterBandH hBand);
|
|
1731
|
+
CPLErr CPL_DLL CPL_STDCALL GDALSetDefaultRAT(GDALRasterBandH,
|
|
1732
|
+
GDALRasterAttributeTableH);
|
|
1733
|
+
CPLErr CPL_DLL CPL_STDCALL GDALAddDerivedBandPixelFunc(
|
|
1734
|
+
const char *pszName, GDALDerivedPixelFunc pfnPixelFunc);
|
|
1735
|
+
CPLErr CPL_DLL CPL_STDCALL GDALAddDerivedBandPixelFuncWithArgs(
|
|
1736
|
+
const char *pszName, GDALDerivedPixelFuncWithArgs pfnPixelFunc,
|
|
1737
|
+
const char *pszMetadata);
|
|
1738
|
+
|
|
1739
|
+
CPLErr CPL_DLL GDALRasterInterpolateAtPoint(GDALRasterBandH hBand,
|
|
1740
|
+
double dfPixel, double dfLine,
|
|
1741
|
+
GDALRIOResampleAlg eInterpolation,
|
|
1742
|
+
double *pdfRealValue,
|
|
1743
|
+
double *pdfImagValue);
|
|
1744
|
+
|
|
1745
|
+
/** Generic pointer for the working structure of VRTProcessedDataset
|
|
1746
|
+
* function. */
|
|
1747
|
+
typedef void *VRTPDWorkingDataPtr;
|
|
1748
|
+
|
|
1749
|
+
/** Initialization function to pass to GDALVRTRegisterProcessedDatasetFunc.
|
|
1750
|
+
*
|
|
1751
|
+
* This initialization function is called for each step of a VRTProcessedDataset
|
|
1752
|
+
* that uses the related algorithm.
|
|
1753
|
+
* The initialization function returns the output data type, output band count
|
|
1754
|
+
* and potentially initializes a working structure, typically parsing arguments.
|
|
1755
|
+
*
|
|
1756
|
+
* @param pszFuncName Function name. Must be unique and not null.
|
|
1757
|
+
* @param pUserData User data. May be nullptr. Must remain valid during the
|
|
1758
|
+
* lifetime of GDAL.
|
|
1759
|
+
* @param papszFunctionArgs Function arguments as a list of key=value pairs.
|
|
1760
|
+
* @param nInBands Number of input bands.
|
|
1761
|
+
* @param eInDT Input data type.
|
|
1762
|
+
* @param[in,out] padfInNoData Array of nInBands values for the input nodata
|
|
1763
|
+
* value. The init function may also override them.
|
|
1764
|
+
* @param[in,out] pnOutBands Pointer whose value must be set to the number of
|
|
1765
|
+
* output bands. This will be set to 0 by the caller
|
|
1766
|
+
* when calling the function, unless this is the
|
|
1767
|
+
* final step, in which case it will be initialized
|
|
1768
|
+
* with the number of expected output bands.
|
|
1769
|
+
* @param[out] peOutDT Pointer whose value must be set to the output
|
|
1770
|
+
* data type.
|
|
1771
|
+
* @param[in,out] ppadfOutNoData Pointer to an array of *pnOutBands values
|
|
1772
|
+
* for the output nodata value that the
|
|
1773
|
+
* function must set.
|
|
1774
|
+
* For non-final steps, *ppadfOutNoData
|
|
1775
|
+
* will be nullptr and it is the responsibility
|
|
1776
|
+
* of the function to CPLMalloc()'ate it.
|
|
1777
|
+
* If this is the final step, it will be
|
|
1778
|
+
* already allocated and initialized with the
|
|
1779
|
+
* expected nodata values from the output
|
|
1780
|
+
* dataset (if the init function need to
|
|
1781
|
+
* reallocate it, it must use CPLRealloc())
|
|
1782
|
+
* @param pszVRTPath Directory of the VRT
|
|
1783
|
+
* @param[out] ppWorkingData Pointer whose value must be set to a working
|
|
1784
|
+
* structure, or nullptr.
|
|
1785
|
+
* @return CE_None in case of success, error otherwise.
|
|
1786
|
+
* @since GDAL 3.9 */
|
|
1787
|
+
typedef CPLErr (*GDALVRTProcessedDatasetFuncInit)(
|
|
1788
|
+
const char *pszFuncName, void *pUserData, CSLConstList papszFunctionArgs,
|
|
1789
|
+
int nInBands, GDALDataType eInDT, double *padfInNoData, int *pnOutBands,
|
|
1790
|
+
GDALDataType *peOutDT, double **ppadfOutNoData, const char *pszVRTPath,
|
|
1791
|
+
VRTPDWorkingDataPtr *ppWorkingData);
|
|
1792
|
+
|
|
1793
|
+
/** Free function to pass to GDALVRTRegisterProcessedDatasetFunc.
|
|
1794
|
+
*
|
|
1795
|
+
* @param pszFuncName Function name. Must be unique and not null.
|
|
1796
|
+
* @param pUserData User data. May be nullptr. Must remain valid during the
|
|
1797
|
+
* lifetime of GDAL.
|
|
1798
|
+
* @param pWorkingData Value of the *ppWorkingData output parameter of
|
|
1799
|
+
* GDALVRTProcessedDatasetFuncInit.
|
|
1800
|
+
* @since GDAL 3.9
|
|
1801
|
+
*/
|
|
1802
|
+
typedef void (*GDALVRTProcessedDatasetFuncFree)(
|
|
1803
|
+
const char *pszFuncName, void *pUserData, VRTPDWorkingDataPtr pWorkingData);
|
|
1804
|
+
|
|
1805
|
+
/** Processing function to pass to GDALVRTRegisterProcessedDatasetFunc.
|
|
1806
|
+
* @param pszFuncName Function name. Must be unique and not null.
|
|
1807
|
+
* @param pUserData User data. May be nullptr. Must remain valid during the
|
|
1808
|
+
* lifetime of GDAL.
|
|
1809
|
+
* @param pWorkingData Value of the *ppWorkingData output parameter of
|
|
1810
|
+
* GDALVRTProcessedDatasetFuncInit.
|
|
1811
|
+
* @param papszFunctionArgs Function arguments as a list of key=value pairs.
|
|
1812
|
+
* @param nBufXSize Width in pixels of pInBuffer and pOutBuffer
|
|
1813
|
+
* @param nBufYSize Height in pixels of pInBuffer and pOutBuffer
|
|
1814
|
+
* @param pInBuffer Input buffer. It is pixel-interleaved
|
|
1815
|
+
* (i.e. R00,G00,B00,R01,G01,B01, etc.)
|
|
1816
|
+
* @param nInBufferSize Size in bytes of pInBuffer
|
|
1817
|
+
* @param eInDT Data type of pInBuffer
|
|
1818
|
+
* @param nInBands Number of bands in pInBuffer.
|
|
1819
|
+
* @param padfInNoData Input nodata values.
|
|
1820
|
+
* @param pOutBuffer Output buffer. It is pixel-interleaved
|
|
1821
|
+
* (i.e. R00,G00,B00,R01,G01,B01, etc.)
|
|
1822
|
+
* @param nOutBufferSize Size in bytes of pOutBuffer
|
|
1823
|
+
* @param eOutDT Data type of pOutBuffer
|
|
1824
|
+
* @param nOutBands Number of bands in pOutBuffer.
|
|
1825
|
+
* @param padfOutNoData Input nodata values.
|
|
1826
|
+
* @param dfSrcXOff Source X coordinate in pixel of the top-left of the region
|
|
1827
|
+
* @param dfSrcYOff Source Y coordinate in pixel of the top-left of the region
|
|
1828
|
+
* @param dfSrcXSize Width in pixels of the region
|
|
1829
|
+
* @param dfSrcYSize Height in pixels of the region
|
|
1830
|
+
* @param adfSrcGT Source geotransform
|
|
1831
|
+
* @param pszVRTPath Directory of the VRT
|
|
1832
|
+
* @param papszExtra Extra arguments (unused for now)
|
|
1833
|
+
* @since GDAL 3.9
|
|
1834
|
+
*/
|
|
1835
|
+
typedef CPLErr (*GDALVRTProcessedDatasetFuncProcess)(
|
|
1836
|
+
const char *pszFuncName, void *pUserData, VRTPDWorkingDataPtr pWorkingData,
|
|
1837
|
+
CSLConstList papszFunctionArgs, int nBufXSize, int nBufYSize,
|
|
1838
|
+
const void *pInBuffer, size_t nInBufferSize, GDALDataType eInDT,
|
|
1839
|
+
int nInBands, const double *padfInNoData, void *pOutBuffer,
|
|
1840
|
+
size_t nOutBufferSize, GDALDataType eOutDT, int nOutBands,
|
|
1841
|
+
const double *padfOutNoData, double dfSrcXOff, double dfSrcYOff,
|
|
1842
|
+
double dfSrcXSize, double dfSrcYSize, const double adfSrcGT[/*6*/],
|
|
1843
|
+
const char *pszVRTPath, CSLConstList papszExtra);
|
|
1844
|
+
|
|
1845
|
+
CPLErr CPL_DLL GDALVRTRegisterProcessedDatasetFunc(
|
|
1846
|
+
const char *pszFuncName, void *pUserData, const char *pszXMLMetadata,
|
|
1847
|
+
GDALDataType eRequestedInputDT, const GDALDataType *paeSupportedInputDT,
|
|
1848
|
+
size_t nSupportedInputDTSize, const int *panSupportedInputBandCount,
|
|
1849
|
+
size_t nSupportedInputBandCountSize,
|
|
1850
|
+
GDALVRTProcessedDatasetFuncInit pfnInit,
|
|
1851
|
+
GDALVRTProcessedDatasetFuncFree pfnFree,
|
|
1852
|
+
GDALVRTProcessedDatasetFuncProcess pfnProcess, CSLConstList papszOptions);
|
|
1853
|
+
|
|
1854
|
+
GDALRasterBandH CPL_DLL CPL_STDCALL GDALGetMaskBand(GDALRasterBandH hBand);
|
|
1855
|
+
int CPL_DLL CPL_STDCALL GDALGetMaskFlags(GDALRasterBandH hBand);
|
|
1856
|
+
CPLErr CPL_DLL CPL_STDCALL GDALCreateMaskBand(GDALRasterBandH hBand,
|
|
1857
|
+
int nFlags);
|
|
1858
|
+
bool CPL_DLL GDALIsMaskBand(GDALRasterBandH hBand);
|
|
1859
|
+
|
|
1860
|
+
/** Flag returned by GDALGetMaskFlags() to indicate that all pixels are valid */
|
|
1861
|
+
#define GMF_ALL_VALID 0x01
|
|
1862
|
+
/** Flag returned by GDALGetMaskFlags() to indicate that the mask band is
|
|
1863
|
+
* valid for all bands */
|
|
1864
|
+
#define GMF_PER_DATASET 0x02
|
|
1865
|
+
/** Flag returned by GDALGetMaskFlags() to indicate that the mask band is
|
|
1866
|
+
* an alpha band */
|
|
1867
|
+
#define GMF_ALPHA 0x04
|
|
1868
|
+
/** Flag returned by GDALGetMaskFlags() to indicate that the mask band is
|
|
1869
|
+
* computed from nodata values */
|
|
1870
|
+
#define GMF_NODATA 0x08
|
|
1871
|
+
|
|
1872
|
+
/** Flag returned by GDALGetDataCoverageStatus() when the driver does not
|
|
1873
|
+
* implement GetDataCoverageStatus(). This flag should be returned together
|
|
1874
|
+
* with GDAL_DATA_COVERAGE_STATUS_DATA */
|
|
1875
|
+
#define GDAL_DATA_COVERAGE_STATUS_UNIMPLEMENTED 0x01
|
|
1876
|
+
|
|
1877
|
+
/** Flag returned by GDALGetDataCoverageStatus() when there is (potentially)
|
|
1878
|
+
* data in the queried window. Can be combined with the binary or operator
|
|
1879
|
+
* with GDAL_DATA_COVERAGE_STATUS_UNIMPLEMENTED or
|
|
1880
|
+
* GDAL_DATA_COVERAGE_STATUS_EMPTY */
|
|
1881
|
+
#define GDAL_DATA_COVERAGE_STATUS_DATA 0x02
|
|
1882
|
+
|
|
1883
|
+
/** Flag returned by GDALGetDataCoverageStatus() when there is nodata in the
|
|
1884
|
+
* queried window. This is typically identified by the concept of missing block
|
|
1885
|
+
* in formats that supports it.
|
|
1886
|
+
* Can be combined with the binary or operator with
|
|
1887
|
+
* GDAL_DATA_COVERAGE_STATUS_DATA */
|
|
1888
|
+
#define GDAL_DATA_COVERAGE_STATUS_EMPTY 0x04
|
|
1889
|
+
|
|
1890
|
+
int CPL_DLL CPL_STDCALL GDALGetDataCoverageStatus(GDALRasterBandH hBand,
|
|
1891
|
+
int nXOff, int nYOff,
|
|
1892
|
+
int nXSize, int nYSize,
|
|
1893
|
+
int nMaskFlagStop,
|
|
1894
|
+
double *pdfDataPct);
|
|
1895
|
+
|
|
1896
|
+
/* ==================================================================== */
|
|
1897
|
+
/* GDALAsyncReader */
|
|
1898
|
+
/* ==================================================================== */
|
|
1899
|
+
|
|
1900
|
+
GDALAsyncStatusType CPL_DLL CPL_STDCALL GDALARGetNextUpdatedRegion(
|
|
1901
|
+
GDALAsyncReaderH hARIO, double dfTimeout, int *pnXBufOff, int *pnYBufOff,
|
|
1902
|
+
int *pnXBufSize, int *pnYBufSize);
|
|
1903
|
+
int CPL_DLL CPL_STDCALL GDALARLockBuffer(GDALAsyncReaderH hARIO,
|
|
1904
|
+
double dfTimeout);
|
|
1905
|
+
void CPL_DLL CPL_STDCALL GDALARUnlockBuffer(GDALAsyncReaderH hARIO);
|
|
1906
|
+
|
|
1907
|
+
/* -------------------------------------------------------------------- */
|
|
1908
|
+
/* Helper functions. */
|
|
1909
|
+
/* -------------------------------------------------------------------- */
|
|
1910
|
+
int CPL_DLL CPL_STDCALL GDALGeneralCmdLineProcessor(int nArgc,
|
|
1911
|
+
char ***ppapszArgv,
|
|
1912
|
+
int nOptions);
|
|
1913
|
+
void CPL_DLL CPL_STDCALL GDALSwapWords(void *pData, int nWordSize,
|
|
1914
|
+
int nWordCount, int nWordSkip);
|
|
1915
|
+
void CPL_DLL CPL_STDCALL GDALSwapWordsEx(void *pData, int nWordSize,
|
|
1916
|
+
size_t nWordCount, int nWordSkip);
|
|
1917
|
+
|
|
1918
|
+
void CPL_DLL CPL_STDCALL GDALCopyWords(const void *CPL_RESTRICT pSrcData,
|
|
1919
|
+
GDALDataType eSrcType,
|
|
1920
|
+
int nSrcPixelOffset,
|
|
1921
|
+
void *CPL_RESTRICT pDstData,
|
|
1922
|
+
GDALDataType eDstType,
|
|
1923
|
+
int nDstPixelOffset, int nWordCount);
|
|
1924
|
+
|
|
1925
|
+
void CPL_DLL CPL_STDCALL GDALCopyWords64(
|
|
1926
|
+
const void *CPL_RESTRICT pSrcData, GDALDataType eSrcType,
|
|
1927
|
+
int nSrcPixelOffset, void *CPL_RESTRICT pDstData, GDALDataType eDstType,
|
|
1928
|
+
int nDstPixelOffset, GPtrDiff_t nWordCount);
|
|
1929
|
+
|
|
1930
|
+
void CPL_DLL GDALCopyBits(const GByte *pabySrcData, int nSrcOffset,
|
|
1931
|
+
int nSrcStep, GByte *pabyDstData, int nDstOffset,
|
|
1932
|
+
int nDstStep, int nBitCount, int nStepCount);
|
|
1933
|
+
|
|
1934
|
+
void CPL_DLL GDALDeinterleave(const void *pSourceBuffer, GDALDataType eSourceDT,
|
|
1935
|
+
int nComponents, void **ppDestBuffer,
|
|
1936
|
+
GDALDataType eDestDT, size_t nIters);
|
|
1937
|
+
|
|
1938
|
+
double CPL_DLL GDALGetNoDataReplacementValue(GDALDataType, double);
|
|
1939
|
+
|
|
1940
|
+
int CPL_DLL CPL_STDCALL GDALLoadWorldFile(const char *, double *);
|
|
1941
|
+
int CPL_DLL CPL_STDCALL GDALReadWorldFile(const char *, const char *, double *);
|
|
1942
|
+
int CPL_DLL CPL_STDCALL GDALWriteWorldFile(const char *, const char *,
|
|
1943
|
+
double *);
|
|
1944
|
+
int CPL_DLL CPL_STDCALL GDALLoadTabFile(const char *, double *, char **, int *,
|
|
1945
|
+
GDAL_GCP **);
|
|
1946
|
+
int CPL_DLL CPL_STDCALL GDALReadTabFile(const char *, double *, char **, int *,
|
|
1947
|
+
GDAL_GCP **);
|
|
1948
|
+
int CPL_DLL CPL_STDCALL GDALLoadOziMapFile(const char *, double *, char **,
|
|
1949
|
+
int *, GDAL_GCP **);
|
|
1950
|
+
int CPL_DLL CPL_STDCALL GDALReadOziMapFile(const char *, double *, char **,
|
|
1951
|
+
int *, GDAL_GCP **);
|
|
1952
|
+
|
|
1953
|
+
const char CPL_DLL *CPL_STDCALL GDALDecToDMS(double, const char *, int);
|
|
1954
|
+
double CPL_DLL CPL_STDCALL GDALPackedDMSToDec(double);
|
|
1955
|
+
double CPL_DLL CPL_STDCALL GDALDecToPackedDMS(double);
|
|
1956
|
+
|
|
1957
|
+
/* Note to developers : please keep this section in sync with ogr_core.h */
|
|
1958
|
+
|
|
1959
|
+
#ifndef GDAL_VERSION_INFO_DEFINED
|
|
1960
|
+
#ifndef DOXYGEN_SKIP
|
|
1961
|
+
#define GDAL_VERSION_INFO_DEFINED
|
|
1962
|
+
#endif
|
|
1963
|
+
const char CPL_DLL *CPL_STDCALL GDALVersionInfo(const char *);
|
|
1964
|
+
#endif
|
|
1965
|
+
|
|
1966
|
+
#ifndef GDAL_CHECK_VERSION
|
|
1967
|
+
|
|
1968
|
+
int CPL_DLL CPL_STDCALL GDALCheckVersion(int nVersionMajor, int nVersionMinor,
|
|
1969
|
+
const char *pszCallingComponentName);
|
|
1970
|
+
|
|
1971
|
+
/** Helper macro for GDALCheckVersion()
|
|
1972
|
+
@see GDALCheckVersion()
|
|
1973
|
+
*/
|
|
1974
|
+
#define GDAL_CHECK_VERSION(pszCallingComponentName) \
|
|
1975
|
+
GDALCheckVersion(GDAL_VERSION_MAJOR, GDAL_VERSION_MINOR, \
|
|
1976
|
+
pszCallingComponentName)
|
|
1977
|
+
|
|
1978
|
+
#endif
|
|
1979
|
+
|
|
1980
|
+
/*! @cond Doxygen_Suppress */
|
|
1981
|
+
#ifdef GDAL_COMPILATION
|
|
1982
|
+
#define GDALExtractRPCInfoV1 GDALExtractRPCInfo
|
|
1983
|
+
#else
|
|
1984
|
+
#define GDALRPCInfo GDALRPCInfoV2
|
|
1985
|
+
#define GDALExtractRPCInfo GDALExtractRPCInfoV2
|
|
1986
|
+
#endif
|
|
1987
|
+
|
|
1988
|
+
/* Deprecated: use GDALRPCInfoV2 */
|
|
1989
|
+
typedef struct
|
|
1990
|
+
{
|
|
1991
|
+
double dfLINE_OFF; /*!< Line offset */
|
|
1992
|
+
double dfSAMP_OFF; /*!< Sample/Pixel offset */
|
|
1993
|
+
double dfLAT_OFF; /*!< Latitude offset */
|
|
1994
|
+
double dfLONG_OFF; /*!< Longitude offset */
|
|
1995
|
+
double dfHEIGHT_OFF; /*!< Height offset */
|
|
1996
|
+
|
|
1997
|
+
double dfLINE_SCALE; /*!< Line scale */
|
|
1998
|
+
double dfSAMP_SCALE; /*!< Sample/Pixel scale */
|
|
1999
|
+
double dfLAT_SCALE; /*!< Latitude scale */
|
|
2000
|
+
double dfLONG_SCALE; /*!< Longitude scale */
|
|
2001
|
+
double dfHEIGHT_SCALE; /*!< Height scale */
|
|
2002
|
+
|
|
2003
|
+
double adfLINE_NUM_COEFF[20]; /*!< Line Numerator Coefficients */
|
|
2004
|
+
double adfLINE_DEN_COEFF[20]; /*!< Line Denominator Coefficients */
|
|
2005
|
+
double adfSAMP_NUM_COEFF[20]; /*!< Sample/Pixel Numerator Coefficients */
|
|
2006
|
+
double adfSAMP_DEN_COEFF[20]; /*!< Sample/Pixel Denominator Coefficients */
|
|
2007
|
+
|
|
2008
|
+
double dfMIN_LONG; /*!< Minimum longitude */
|
|
2009
|
+
double dfMIN_LAT; /*!< Minimum latitude */
|
|
2010
|
+
double dfMAX_LONG; /*!< Maximum longitude */
|
|
2011
|
+
double dfMAX_LAT; /*!< Maximum latitude */
|
|
2012
|
+
} GDALRPCInfoV1;
|
|
2013
|
+
|
|
2014
|
+
/*! @endcond */
|
|
2015
|
+
|
|
2016
|
+
/** Structure to store Rational Polynomial Coefficients / Rigorous Projection
|
|
2017
|
+
* Model. See http://geotiff.maptools.org/rpc_prop.html */
|
|
2018
|
+
typedef struct
|
|
2019
|
+
{
|
|
2020
|
+
double dfLINE_OFF; /*!< Line offset */
|
|
2021
|
+
double dfSAMP_OFF; /*!< Sample/Pixel offset */
|
|
2022
|
+
double dfLAT_OFF; /*!< Latitude offset */
|
|
2023
|
+
double dfLONG_OFF; /*!< Longitude offset */
|
|
2024
|
+
double dfHEIGHT_OFF; /*!< Height offset */
|
|
2025
|
+
|
|
2026
|
+
double dfLINE_SCALE; /*!< Line scale */
|
|
2027
|
+
double dfSAMP_SCALE; /*!< Sample/Pixel scale */
|
|
2028
|
+
double dfLAT_SCALE; /*!< Latitude scale */
|
|
2029
|
+
double dfLONG_SCALE; /*!< Longitude scale */
|
|
2030
|
+
double dfHEIGHT_SCALE; /*!< Height scale */
|
|
2031
|
+
|
|
2032
|
+
double adfLINE_NUM_COEFF[20]; /*!< Line Numerator Coefficients */
|
|
2033
|
+
double adfLINE_DEN_COEFF[20]; /*!< Line Denominator Coefficients */
|
|
2034
|
+
double adfSAMP_NUM_COEFF[20]; /*!< Sample/Pixel Numerator Coefficients */
|
|
2035
|
+
double adfSAMP_DEN_COEFF[20]; /*!< Sample/Pixel Denominator Coefficients */
|
|
2036
|
+
|
|
2037
|
+
double dfMIN_LONG; /*!< Minimum longitude */
|
|
2038
|
+
double dfMIN_LAT; /*!< Minimum latitude */
|
|
2039
|
+
double dfMAX_LONG; /*!< Maximum longitude */
|
|
2040
|
+
double dfMAX_LAT; /*!< Maximum latitude */
|
|
2041
|
+
|
|
2042
|
+
/* Those fields should be at the end. And all above fields should be the
|
|
2043
|
+
* same as in GDALRPCInfoV1 */
|
|
2044
|
+
double dfERR_BIAS; /*!< Bias error */
|
|
2045
|
+
double dfERR_RAND; /*!< Random error */
|
|
2046
|
+
} GDALRPCInfoV2;
|
|
2047
|
+
|
|
2048
|
+
/*! @cond Doxygen_Suppress */
|
|
2049
|
+
int CPL_DLL CPL_STDCALL GDALExtractRPCInfoV1(CSLConstList, GDALRPCInfoV1 *);
|
|
2050
|
+
/*! @endcond */
|
|
2051
|
+
int CPL_DLL CPL_STDCALL GDALExtractRPCInfoV2(CSLConstList, GDALRPCInfoV2 *);
|
|
2052
|
+
|
|
2053
|
+
/* ==================================================================== */
|
|
2054
|
+
/* Color tables. */
|
|
2055
|
+
/* ==================================================================== */
|
|
2056
|
+
|
|
2057
|
+
/** Color tuple */
|
|
2058
|
+
typedef struct
|
|
2059
|
+
{
|
|
2060
|
+
/*! gray, red, cyan or hue */
|
|
2061
|
+
short c1;
|
|
2062
|
+
|
|
2063
|
+
/*! green, magenta, or lightness */
|
|
2064
|
+
short c2;
|
|
2065
|
+
|
|
2066
|
+
/*! blue, yellow, or saturation */
|
|
2067
|
+
short c3;
|
|
2068
|
+
|
|
2069
|
+
/*! alpha or blackband */
|
|
2070
|
+
short c4;
|
|
2071
|
+
} GDALColorEntry;
|
|
2072
|
+
|
|
2073
|
+
GDALColorTableH CPL_DLL CPL_STDCALL GDALCreateColorTable(GDALPaletteInterp)
|
|
2074
|
+
CPL_WARN_UNUSED_RESULT;
|
|
2075
|
+
void CPL_DLL CPL_STDCALL GDALDestroyColorTable(GDALColorTableH);
|
|
2076
|
+
GDALColorTableH CPL_DLL CPL_STDCALL GDALCloneColorTable(GDALColorTableH);
|
|
2077
|
+
GDALPaletteInterp
|
|
2078
|
+
CPL_DLL CPL_STDCALL GDALGetPaletteInterpretation(GDALColorTableH);
|
|
2079
|
+
int CPL_DLL CPL_STDCALL GDALGetColorEntryCount(GDALColorTableH);
|
|
2080
|
+
const GDALColorEntry CPL_DLL *CPL_STDCALL GDALGetColorEntry(GDALColorTableH,
|
|
2081
|
+
int);
|
|
2082
|
+
int CPL_DLL CPL_STDCALL GDALGetColorEntryAsRGB(GDALColorTableH, int,
|
|
2083
|
+
GDALColorEntry *);
|
|
2084
|
+
void CPL_DLL CPL_STDCALL GDALSetColorEntry(GDALColorTableH, int,
|
|
2085
|
+
const GDALColorEntry *);
|
|
2086
|
+
void CPL_DLL CPL_STDCALL GDALCreateColorRamp(GDALColorTableH hTable,
|
|
2087
|
+
int nStartIndex,
|
|
2088
|
+
const GDALColorEntry *psStartColor,
|
|
2089
|
+
int nEndIndex,
|
|
2090
|
+
const GDALColorEntry *psEndColor);
|
|
2091
|
+
|
|
2092
|
+
/* ==================================================================== */
|
|
2093
|
+
/* Raster Attribute Table */
|
|
2094
|
+
/* ==================================================================== */
|
|
2095
|
+
|
|
2096
|
+
/** Field type of raster attribute table */
|
|
2097
|
+
typedef enum
|
|
2098
|
+
{
|
|
2099
|
+
/*! Integer field */ GFT_Integer,
|
|
2100
|
+
/*! Floating point (double) field */ GFT_Real,
|
|
2101
|
+
/*! String field */ GFT_String
|
|
2102
|
+
} GDALRATFieldType;
|
|
2103
|
+
|
|
2104
|
+
/** Field usage of raster attribute table */
|
|
2105
|
+
typedef enum
|
|
2106
|
+
{
|
|
2107
|
+
/*! General purpose field. */ GFU_Generic = 0,
|
|
2108
|
+
/*! Histogram pixel count */ GFU_PixelCount = 1,
|
|
2109
|
+
/*! Class name */ GFU_Name = 2,
|
|
2110
|
+
/*! Class range minimum */ GFU_Min = 3,
|
|
2111
|
+
/*! Class range maximum */ GFU_Max = 4,
|
|
2112
|
+
/*! Class value (min=max) */ GFU_MinMax = 5,
|
|
2113
|
+
/*! Red class color (0-255) */ GFU_Red = 6,
|
|
2114
|
+
/*! Green class color (0-255) */ GFU_Green = 7,
|
|
2115
|
+
/*! Blue class color (0-255) */ GFU_Blue = 8,
|
|
2116
|
+
/*! Alpha (0=transparent,255=opaque)*/ GFU_Alpha = 9,
|
|
2117
|
+
/*! Color Range Red Minimum */ GFU_RedMin = 10,
|
|
2118
|
+
/*! Color Range Green Minimum */ GFU_GreenMin = 11,
|
|
2119
|
+
/*! Color Range Blue Minimum */ GFU_BlueMin = 12,
|
|
2120
|
+
/*! Color Range Alpha Minimum */ GFU_AlphaMin = 13,
|
|
2121
|
+
/*! Color Range Red Maximum */ GFU_RedMax = 14,
|
|
2122
|
+
/*! Color Range Green Maximum */ GFU_GreenMax = 15,
|
|
2123
|
+
/*! Color Range Blue Maximum */ GFU_BlueMax = 16,
|
|
2124
|
+
/*! Color Range Alpha Maximum */ GFU_AlphaMax = 17,
|
|
2125
|
+
/*! Maximum GFU value (equals to GFU_AlphaMax+1 currently) */ GFU_MaxCount
|
|
2126
|
+
} GDALRATFieldUsage;
|
|
2127
|
+
|
|
2128
|
+
/** RAT table type (thematic or athematic)
|
|
2129
|
+
* @since GDAL 2.4
|
|
2130
|
+
*/
|
|
2131
|
+
typedef enum
|
|
2132
|
+
{
|
|
2133
|
+
/*! Thematic table type */ GRTT_THEMATIC,
|
|
2134
|
+
/*! Athematic table type */ GRTT_ATHEMATIC
|
|
2135
|
+
} GDALRATTableType;
|
|
2136
|
+
|
|
2137
|
+
GDALRasterAttributeTableH CPL_DLL CPL_STDCALL
|
|
2138
|
+
GDALCreateRasterAttributeTable(void) CPL_WARN_UNUSED_RESULT;
|
|
2139
|
+
|
|
2140
|
+
void CPL_DLL CPL_STDCALL
|
|
2141
|
+
GDALDestroyRasterAttributeTable(GDALRasterAttributeTableH);
|
|
2142
|
+
|
|
2143
|
+
int CPL_DLL CPL_STDCALL GDALRATGetColumnCount(GDALRasterAttributeTableH);
|
|
2144
|
+
|
|
2145
|
+
const char CPL_DLL *CPL_STDCALL GDALRATGetNameOfCol(GDALRasterAttributeTableH,
|
|
2146
|
+
int);
|
|
2147
|
+
GDALRATFieldUsage CPL_DLL CPL_STDCALL
|
|
2148
|
+
GDALRATGetUsageOfCol(GDALRasterAttributeTableH, int);
|
|
2149
|
+
GDALRATFieldType CPL_DLL CPL_STDCALL
|
|
2150
|
+
GDALRATGetTypeOfCol(GDALRasterAttributeTableH, int);
|
|
2151
|
+
|
|
2152
|
+
int CPL_DLL CPL_STDCALL GDALRATGetColOfUsage(GDALRasterAttributeTableH,
|
|
2153
|
+
GDALRATFieldUsage);
|
|
2154
|
+
int CPL_DLL CPL_STDCALL GDALRATGetRowCount(GDALRasterAttributeTableH);
|
|
2155
|
+
|
|
2156
|
+
const char CPL_DLL *CPL_STDCALL
|
|
2157
|
+
GDALRATGetValueAsString(GDALRasterAttributeTableH, int, int);
|
|
2158
|
+
int CPL_DLL CPL_STDCALL GDALRATGetValueAsInt(GDALRasterAttributeTableH, int,
|
|
2159
|
+
int);
|
|
2160
|
+
double CPL_DLL CPL_STDCALL GDALRATGetValueAsDouble(GDALRasterAttributeTableH,
|
|
2161
|
+
int, int);
|
|
2162
|
+
|
|
2163
|
+
void CPL_DLL CPL_STDCALL GDALRATSetValueAsString(GDALRasterAttributeTableH, int,
|
|
2164
|
+
int, const char *);
|
|
2165
|
+
void CPL_DLL CPL_STDCALL GDALRATSetValueAsInt(GDALRasterAttributeTableH, int,
|
|
2166
|
+
int, int);
|
|
2167
|
+
void CPL_DLL CPL_STDCALL GDALRATSetValueAsDouble(GDALRasterAttributeTableH, int,
|
|
2168
|
+
int, double);
|
|
2169
|
+
|
|
2170
|
+
int CPL_DLL CPL_STDCALL
|
|
2171
|
+
GDALRATChangesAreWrittenToFile(GDALRasterAttributeTableH hRAT);
|
|
2172
|
+
|
|
2173
|
+
CPLErr CPL_DLL CPL_STDCALL GDALRATValuesIOAsDouble(
|
|
2174
|
+
GDALRasterAttributeTableH hRAT, GDALRWFlag eRWFlag, int iField,
|
|
2175
|
+
int iStartRow, int iLength, double *pdfData);
|
|
2176
|
+
CPLErr CPL_DLL CPL_STDCALL
|
|
2177
|
+
GDALRATValuesIOAsInteger(GDALRasterAttributeTableH hRAT, GDALRWFlag eRWFlag,
|
|
2178
|
+
int iField, int iStartRow, int iLength, int *pnData);
|
|
2179
|
+
CPLErr CPL_DLL CPL_STDCALL GDALRATValuesIOAsString(
|
|
2180
|
+
GDALRasterAttributeTableH hRAT, GDALRWFlag eRWFlag, int iField,
|
|
2181
|
+
int iStartRow, int iLength, char **papszStrList);
|
|
2182
|
+
|
|
2183
|
+
void CPL_DLL CPL_STDCALL GDALRATSetRowCount(GDALRasterAttributeTableH, int);
|
|
2184
|
+
CPLErr CPL_DLL CPL_STDCALL GDALRATCreateColumn(GDALRasterAttributeTableH,
|
|
2185
|
+
const char *, GDALRATFieldType,
|
|
2186
|
+
GDALRATFieldUsage);
|
|
2187
|
+
CPLErr CPL_DLL CPL_STDCALL GDALRATSetLinearBinning(GDALRasterAttributeTableH,
|
|
2188
|
+
double, double);
|
|
2189
|
+
int CPL_DLL CPL_STDCALL GDALRATGetLinearBinning(GDALRasterAttributeTableH,
|
|
2190
|
+
double *, double *);
|
|
2191
|
+
CPLErr CPL_DLL CPL_STDCALL GDALRATSetTableType(
|
|
2192
|
+
GDALRasterAttributeTableH hRAT, const GDALRATTableType eInTableType);
|
|
2193
|
+
GDALRATTableType CPL_DLL CPL_STDCALL
|
|
2194
|
+
GDALRATGetTableType(GDALRasterAttributeTableH hRAT);
|
|
2195
|
+
CPLErr CPL_DLL CPL_STDCALL
|
|
2196
|
+
GDALRATInitializeFromColorTable(GDALRasterAttributeTableH, GDALColorTableH);
|
|
2197
|
+
GDALColorTableH CPL_DLL CPL_STDCALL
|
|
2198
|
+
GDALRATTranslateToColorTable(GDALRasterAttributeTableH, int nEntryCount);
|
|
2199
|
+
void CPL_DLL CPL_STDCALL GDALRATDumpReadable(GDALRasterAttributeTableH, FILE *);
|
|
2200
|
+
GDALRasterAttributeTableH CPL_DLL CPL_STDCALL
|
|
2201
|
+
GDALRATClone(const GDALRasterAttributeTableH);
|
|
2202
|
+
|
|
2203
|
+
void CPL_DLL *CPL_STDCALL GDALRATSerializeJSON(GDALRasterAttributeTableH)
|
|
2204
|
+
CPL_WARN_UNUSED_RESULT;
|
|
2205
|
+
|
|
2206
|
+
int CPL_DLL CPL_STDCALL GDALRATGetRowOfValue(GDALRasterAttributeTableH, double);
|
|
2207
|
+
void CPL_DLL CPL_STDCALL GDALRATRemoveStatistics(GDALRasterAttributeTableH);
|
|
2208
|
+
|
|
2209
|
+
/* -------------------------------------------------------------------- */
|
|
2210
|
+
/* Relationships */
|
|
2211
|
+
/* -------------------------------------------------------------------- */
|
|
2212
|
+
|
|
2213
|
+
/** Cardinality of relationship.
|
|
2214
|
+
*
|
|
2215
|
+
* @since GDAL 3.6
|
|
2216
|
+
*/
|
|
2217
|
+
typedef enum
|
|
2218
|
+
{
|
|
2219
|
+
/** One-to-one */
|
|
2220
|
+
GRC_ONE_TO_ONE,
|
|
2221
|
+
/** One-to-many */
|
|
2222
|
+
GRC_ONE_TO_MANY,
|
|
2223
|
+
/** Many-to-one */
|
|
2224
|
+
GRC_MANY_TO_ONE,
|
|
2225
|
+
/** Many-to-many */
|
|
2226
|
+
GRC_MANY_TO_MANY,
|
|
2227
|
+
} GDALRelationshipCardinality;
|
|
2228
|
+
|
|
2229
|
+
/** Type of relationship.
|
|
2230
|
+
*
|
|
2231
|
+
* @since GDAL 3.6
|
|
2232
|
+
*/
|
|
2233
|
+
typedef enum
|
|
2234
|
+
{
|
|
2235
|
+
/** Composite relationship */
|
|
2236
|
+
GRT_COMPOSITE,
|
|
2237
|
+
/** Association relationship */
|
|
2238
|
+
GRT_ASSOCIATION,
|
|
2239
|
+
/** Aggregation relationship */
|
|
2240
|
+
GRT_AGGREGATION,
|
|
2241
|
+
} GDALRelationshipType;
|
|
2242
|
+
|
|
2243
|
+
GDALRelationshipH CPL_DLL GDALRelationshipCreate(const char *, const char *,
|
|
2244
|
+
const char *,
|
|
2245
|
+
GDALRelationshipCardinality);
|
|
2246
|
+
void CPL_DLL CPL_STDCALL GDALDestroyRelationship(GDALRelationshipH);
|
|
2247
|
+
const char CPL_DLL *GDALRelationshipGetName(GDALRelationshipH);
|
|
2248
|
+
GDALRelationshipCardinality
|
|
2249
|
+
CPL_DLL GDALRelationshipGetCardinality(GDALRelationshipH);
|
|
2250
|
+
const char CPL_DLL *GDALRelationshipGetLeftTableName(GDALRelationshipH);
|
|
2251
|
+
const char CPL_DLL *GDALRelationshipGetRightTableName(GDALRelationshipH);
|
|
2252
|
+
const char CPL_DLL *GDALRelationshipGetMappingTableName(GDALRelationshipH);
|
|
2253
|
+
void CPL_DLL GDALRelationshipSetMappingTableName(GDALRelationshipH,
|
|
2254
|
+
const char *);
|
|
2255
|
+
char CPL_DLL **GDALRelationshipGetLeftTableFields(GDALRelationshipH);
|
|
2256
|
+
char CPL_DLL **GDALRelationshipGetRightTableFields(GDALRelationshipH);
|
|
2257
|
+
void CPL_DLL GDALRelationshipSetLeftTableFields(GDALRelationshipH,
|
|
2258
|
+
CSLConstList);
|
|
2259
|
+
void CPL_DLL GDALRelationshipSetRightTableFields(GDALRelationshipH,
|
|
2260
|
+
CSLConstList);
|
|
2261
|
+
char CPL_DLL **GDALRelationshipGetLeftMappingTableFields(GDALRelationshipH);
|
|
2262
|
+
char CPL_DLL **GDALRelationshipGetRightMappingTableFields(GDALRelationshipH);
|
|
2263
|
+
void CPL_DLL GDALRelationshipSetLeftMappingTableFields(GDALRelationshipH,
|
|
2264
|
+
CSLConstList);
|
|
2265
|
+
void CPL_DLL GDALRelationshipSetRightMappingTableFields(GDALRelationshipH,
|
|
2266
|
+
CSLConstList);
|
|
2267
|
+
GDALRelationshipType CPL_DLL GDALRelationshipGetType(GDALRelationshipH);
|
|
2268
|
+
void CPL_DLL GDALRelationshipSetType(GDALRelationshipH, GDALRelationshipType);
|
|
2269
|
+
const char CPL_DLL *GDALRelationshipGetForwardPathLabel(GDALRelationshipH);
|
|
2270
|
+
void CPL_DLL GDALRelationshipSetForwardPathLabel(GDALRelationshipH,
|
|
2271
|
+
const char *);
|
|
2272
|
+
const char CPL_DLL *GDALRelationshipGetBackwardPathLabel(GDALRelationshipH);
|
|
2273
|
+
void CPL_DLL GDALRelationshipSetBackwardPathLabel(GDALRelationshipH,
|
|
2274
|
+
const char *);
|
|
2275
|
+
const char CPL_DLL *GDALRelationshipGetRelatedTableType(GDALRelationshipH);
|
|
2276
|
+
void CPL_DLL GDALRelationshipSetRelatedTableType(GDALRelationshipH,
|
|
2277
|
+
const char *);
|
|
2278
|
+
|
|
2279
|
+
/* ==================================================================== */
|
|
2280
|
+
/* GDAL Cache Management */
|
|
2281
|
+
/* ==================================================================== */
|
|
2282
|
+
|
|
2283
|
+
void CPL_DLL CPL_STDCALL GDALSetCacheMax(int nBytes);
|
|
2284
|
+
int CPL_DLL CPL_STDCALL GDALGetCacheMax(void);
|
|
2285
|
+
int CPL_DLL CPL_STDCALL GDALGetCacheUsed(void);
|
|
2286
|
+
void CPL_DLL CPL_STDCALL GDALSetCacheMax64(GIntBig nBytes);
|
|
2287
|
+
GIntBig CPL_DLL CPL_STDCALL GDALGetCacheMax64(void);
|
|
2288
|
+
GIntBig CPL_DLL CPL_STDCALL GDALGetCacheUsed64(void);
|
|
2289
|
+
|
|
2290
|
+
int CPL_DLL CPL_STDCALL GDALFlushCacheBlock(void);
|
|
2291
|
+
|
|
2292
|
+
/* ==================================================================== */
|
|
2293
|
+
/* GDAL virtual memory */
|
|
2294
|
+
/* ==================================================================== */
|
|
2295
|
+
|
|
2296
|
+
CPLVirtualMem CPL_DLL *GDALDatasetGetVirtualMem(
|
|
2297
|
+
GDALDatasetH hDS, GDALRWFlag eRWFlag, int nXOff, int nYOff, int nXSize,
|
|
2298
|
+
int nYSize, int nBufXSize, int nBufYSize, GDALDataType eBufType,
|
|
2299
|
+
int nBandCount, int *panBandMap, int nPixelSpace, GIntBig nLineSpace,
|
|
2300
|
+
GIntBig nBandSpace, size_t nCacheSize, size_t nPageSizeHint,
|
|
2301
|
+
int bSingleThreadUsage, CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT;
|
|
2302
|
+
|
|
2303
|
+
CPLVirtualMem CPL_DLL *GDALRasterBandGetVirtualMem(
|
|
2304
|
+
GDALRasterBandH hBand, GDALRWFlag eRWFlag, int nXOff, int nYOff, int nXSize,
|
|
2305
|
+
int nYSize, int nBufXSize, int nBufYSize, GDALDataType eBufType,
|
|
2306
|
+
int nPixelSpace, GIntBig nLineSpace, size_t nCacheSize,
|
|
2307
|
+
size_t nPageSizeHint, int bSingleThreadUsage,
|
|
2308
|
+
CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT;
|
|
2309
|
+
|
|
2310
|
+
CPLVirtualMem CPL_DLL *
|
|
2311
|
+
GDALGetVirtualMemAuto(GDALRasterBandH hBand, GDALRWFlag eRWFlag,
|
|
2312
|
+
int *pnPixelSpace, GIntBig *pnLineSpace,
|
|
2313
|
+
CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT;
|
|
2314
|
+
|
|
2315
|
+
/**! Enumeration to describe the tile organization */
|
|
2316
|
+
typedef enum
|
|
2317
|
+
{
|
|
2318
|
+
/*! Tile Interleaved by Pixel: tile (0,0) with internal band interleaved by
|
|
2319
|
+
pixel organization, tile (1, 0), ... */
|
|
2320
|
+
GTO_TIP,
|
|
2321
|
+
/*! Band Interleaved by Tile : tile (0,0) of first band, tile (0,0) of
|
|
2322
|
+
second band, ... tile (1,0) of first band, tile (1,0) of second band, ...
|
|
2323
|
+
*/
|
|
2324
|
+
GTO_BIT,
|
|
2325
|
+
/*! Band SeQuential : all the tiles of first band, all the tiles of
|
|
2326
|
+
following band... */
|
|
2327
|
+
GTO_BSQ
|
|
2328
|
+
} GDALTileOrganization;
|
|
2329
|
+
|
|
2330
|
+
CPLVirtualMem CPL_DLL *GDALDatasetGetTiledVirtualMem(
|
|
2331
|
+
GDALDatasetH hDS, GDALRWFlag eRWFlag, int nXOff, int nYOff, int nXSize,
|
|
2332
|
+
int nYSize, int nTileXSize, int nTileYSize, GDALDataType eBufType,
|
|
2333
|
+
int nBandCount, int *panBandMap, GDALTileOrganization eTileOrganization,
|
|
2334
|
+
size_t nCacheSize, int bSingleThreadUsage,
|
|
2335
|
+
CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT;
|
|
2336
|
+
|
|
2337
|
+
CPLVirtualMem CPL_DLL *GDALRasterBandGetTiledVirtualMem(
|
|
2338
|
+
GDALRasterBandH hBand, GDALRWFlag eRWFlag, int nXOff, int nYOff, int nXSize,
|
|
2339
|
+
int nYSize, int nTileXSize, int nTileYSize, GDALDataType eBufType,
|
|
2340
|
+
size_t nCacheSize, int bSingleThreadUsage,
|
|
2341
|
+
CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT;
|
|
2342
|
+
|
|
2343
|
+
/* ==================================================================== */
|
|
2344
|
+
/* VRTPansharpenedDataset class. */
|
|
2345
|
+
/* ==================================================================== */
|
|
2346
|
+
|
|
2347
|
+
GDALDatasetH CPL_DLL GDALCreatePansharpenedVRT(
|
|
2348
|
+
const char *pszXML, GDALRasterBandH hPanchroBand, int nInputSpectralBands,
|
|
2349
|
+
GDALRasterBandH *pahInputSpectralBands) CPL_WARN_UNUSED_RESULT;
|
|
2350
|
+
|
|
2351
|
+
/* =================================================================== */
|
|
2352
|
+
/* Misc API */
|
|
2353
|
+
/* ==================================================================== */
|
|
2354
|
+
|
|
2355
|
+
CPLXMLNode CPL_DLL *
|
|
2356
|
+
GDALGetJPEG2000Structure(const char *pszFilename,
|
|
2357
|
+
CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT;
|
|
2358
|
+
|
|
2359
|
+
/* ==================================================================== */
|
|
2360
|
+
/* Multidimensional API_api */
|
|
2361
|
+
/* ==================================================================== */
|
|
2362
|
+
|
|
2363
|
+
GDALDatasetH CPL_DLL
|
|
2364
|
+
GDALCreateMultiDimensional(GDALDriverH hDriver, const char *pszName,
|
|
2365
|
+
CSLConstList papszRootGroupOptions,
|
|
2366
|
+
CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT;
|
|
2367
|
+
|
|
2368
|
+
GDALExtendedDataTypeH CPL_DLL GDALExtendedDataTypeCreate(GDALDataType eType)
|
|
2369
|
+
CPL_WARN_UNUSED_RESULT;
|
|
2370
|
+
GDALExtendedDataTypeH CPL_DLL GDALExtendedDataTypeCreateString(
|
|
2371
|
+
size_t nMaxStringLength) CPL_WARN_UNUSED_RESULT;
|
|
2372
|
+
GDALExtendedDataTypeH CPL_DLL GDALExtendedDataTypeCreateStringEx(
|
|
2373
|
+
size_t nMaxStringLength,
|
|
2374
|
+
GDALExtendedDataTypeSubType eSubType) CPL_WARN_UNUSED_RESULT;
|
|
2375
|
+
GDALExtendedDataTypeH CPL_DLL GDALExtendedDataTypeCreateCompound(
|
|
2376
|
+
const char *pszName, size_t nTotalSize, size_t nComponents,
|
|
2377
|
+
const GDALEDTComponentH *comps) CPL_WARN_UNUSED_RESULT;
|
|
2378
|
+
void CPL_DLL GDALExtendedDataTypeRelease(GDALExtendedDataTypeH hEDT);
|
|
2379
|
+
const char CPL_DLL *GDALExtendedDataTypeGetName(GDALExtendedDataTypeH hEDT);
|
|
2380
|
+
GDALExtendedDataTypeClass CPL_DLL
|
|
2381
|
+
GDALExtendedDataTypeGetClass(GDALExtendedDataTypeH hEDT);
|
|
2382
|
+
GDALDataType CPL_DLL
|
|
2383
|
+
GDALExtendedDataTypeGetNumericDataType(GDALExtendedDataTypeH hEDT);
|
|
2384
|
+
size_t CPL_DLL GDALExtendedDataTypeGetSize(GDALExtendedDataTypeH hEDT);
|
|
2385
|
+
size_t CPL_DLL
|
|
2386
|
+
GDALExtendedDataTypeGetMaxStringLength(GDALExtendedDataTypeH hEDT);
|
|
2387
|
+
GDALEDTComponentH CPL_DLL *
|
|
2388
|
+
GDALExtendedDataTypeGetComponents(GDALExtendedDataTypeH hEDT,
|
|
2389
|
+
size_t *pnCount) CPL_WARN_UNUSED_RESULT;
|
|
2390
|
+
void CPL_DLL GDALExtendedDataTypeFreeComponents(GDALEDTComponentH *components,
|
|
2391
|
+
size_t nCount);
|
|
2392
|
+
int CPL_DLL GDALExtendedDataTypeCanConvertTo(GDALExtendedDataTypeH hSourceEDT,
|
|
2393
|
+
GDALExtendedDataTypeH hTargetEDT);
|
|
2394
|
+
int CPL_DLL GDALExtendedDataTypeEquals(GDALExtendedDataTypeH hFirstEDT,
|
|
2395
|
+
GDALExtendedDataTypeH hSecondEDT);
|
|
2396
|
+
GDALExtendedDataTypeSubType CPL_DLL
|
|
2397
|
+
GDALExtendedDataTypeGetSubType(GDALExtendedDataTypeH hEDT);
|
|
2398
|
+
|
|
2399
|
+
GDALEDTComponentH CPL_DLL
|
|
2400
|
+
GDALEDTComponentCreate(const char *pszName, size_t nOffset,
|
|
2401
|
+
GDALExtendedDataTypeH hType) CPL_WARN_UNUSED_RESULT;
|
|
2402
|
+
void CPL_DLL GDALEDTComponentRelease(GDALEDTComponentH hComp);
|
|
2403
|
+
const char CPL_DLL *GDALEDTComponentGetName(GDALEDTComponentH hComp);
|
|
2404
|
+
size_t CPL_DLL GDALEDTComponentGetOffset(GDALEDTComponentH hComp);
|
|
2405
|
+
GDALExtendedDataTypeH CPL_DLL GDALEDTComponentGetType(GDALEDTComponentH hComp)
|
|
2406
|
+
CPL_WARN_UNUSED_RESULT;
|
|
2407
|
+
|
|
2408
|
+
GDALGroupH CPL_DLL GDALDatasetGetRootGroup(GDALDatasetH hDS)
|
|
2409
|
+
CPL_WARN_UNUSED_RESULT;
|
|
2410
|
+
void CPL_DLL GDALGroupRelease(GDALGroupH hGroup);
|
|
2411
|
+
const char CPL_DLL *GDALGroupGetName(GDALGroupH hGroup);
|
|
2412
|
+
const char CPL_DLL *GDALGroupGetFullName(GDALGroupH hGroup);
|
|
2413
|
+
char CPL_DLL **
|
|
2414
|
+
GDALGroupGetMDArrayNames(GDALGroupH hGroup,
|
|
2415
|
+
CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT;
|
|
2416
|
+
GDALMDArrayH CPL_DLL
|
|
2417
|
+
GDALGroupOpenMDArray(GDALGroupH hGroup, const char *pszMDArrayName,
|
|
2418
|
+
CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT;
|
|
2419
|
+
GDALMDArrayH CPL_DLL GDALGroupOpenMDArrayFromFullname(
|
|
2420
|
+
GDALGroupH hGroup, const char *pszMDArrayName,
|
|
2421
|
+
CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT;
|
|
2422
|
+
GDALMDArrayH CPL_DLL GDALGroupResolveMDArray(
|
|
2423
|
+
GDALGroupH hGroup, const char *pszName, const char *pszStartingPoint,
|
|
2424
|
+
CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT;
|
|
2425
|
+
char CPL_DLL **
|
|
2426
|
+
GDALGroupGetGroupNames(GDALGroupH hGroup,
|
|
2427
|
+
CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT;
|
|
2428
|
+
GDALGroupH CPL_DLL
|
|
2429
|
+
GDALGroupOpenGroup(GDALGroupH hGroup, const char *pszSubGroupName,
|
|
2430
|
+
CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT;
|
|
2431
|
+
GDALGroupH CPL_DLL GDALGroupOpenGroupFromFullname(
|
|
2432
|
+
GDALGroupH hGroup, const char *pszMDArrayName,
|
|
2433
|
+
CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT;
|
|
2434
|
+
char CPL_DLL **
|
|
2435
|
+
GDALGroupGetVectorLayerNames(GDALGroupH hGroup,
|
|
2436
|
+
CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT;
|
|
2437
|
+
OGRLayerH CPL_DLL
|
|
2438
|
+
GDALGroupOpenVectorLayer(GDALGroupH hGroup, const char *pszVectorLayerName,
|
|
2439
|
+
CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT;
|
|
2440
|
+
GDALDimensionH CPL_DLL *
|
|
2441
|
+
GDALGroupGetDimensions(GDALGroupH hGroup, size_t *pnCount,
|
|
2442
|
+
CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT;
|
|
2443
|
+
GDALAttributeH CPL_DLL GDALGroupGetAttribute(
|
|
2444
|
+
GDALGroupH hGroup, const char *pszName) CPL_WARN_UNUSED_RESULT;
|
|
2445
|
+
GDALAttributeH CPL_DLL *
|
|
2446
|
+
GDALGroupGetAttributes(GDALGroupH hGroup, size_t *pnCount,
|
|
2447
|
+
CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT;
|
|
2448
|
+
CSLConstList CPL_DLL GDALGroupGetStructuralInfo(GDALGroupH hGroup);
|
|
2449
|
+
GDALGroupH CPL_DLL
|
|
2450
|
+
GDALGroupCreateGroup(GDALGroupH hGroup, const char *pszSubGroupName,
|
|
2451
|
+
CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT;
|
|
2452
|
+
bool CPL_DLL GDALGroupDeleteGroup(GDALGroupH hGroup, const char *pszName,
|
|
2453
|
+
CSLConstList papszOptions);
|
|
2454
|
+
GDALDimensionH CPL_DLL GDALGroupCreateDimension(
|
|
2455
|
+
GDALGroupH hGroup, const char *pszName, const char *pszType,
|
|
2456
|
+
const char *pszDirection, GUInt64 nSize,
|
|
2457
|
+
CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT;
|
|
2458
|
+
GDALMDArrayH CPL_DLL GDALGroupCreateMDArray(
|
|
2459
|
+
GDALGroupH hGroup, const char *pszName, size_t nDimensions,
|
|
2460
|
+
GDALDimensionH *pahDimensions, GDALExtendedDataTypeH hEDT,
|
|
2461
|
+
CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT;
|
|
2462
|
+
bool CPL_DLL GDALGroupDeleteMDArray(GDALGroupH hGroup, const char *pszName,
|
|
2463
|
+
CSLConstList papszOptions);
|
|
2464
|
+
GDALAttributeH CPL_DLL GDALGroupCreateAttribute(
|
|
2465
|
+
GDALGroupH hGroup, const char *pszName, size_t nDimensions,
|
|
2466
|
+
const GUInt64 *panDimensions, GDALExtendedDataTypeH hEDT,
|
|
2467
|
+
CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT;
|
|
2468
|
+
bool CPL_DLL GDALGroupDeleteAttribute(GDALGroupH hGroup, const char *pszName,
|
|
2469
|
+
CSLConstList papszOptions);
|
|
2470
|
+
bool CPL_DLL GDALGroupRename(GDALGroupH hGroup, const char *pszNewName);
|
|
2471
|
+
GDALGroupH CPL_DLL GDALGroupSubsetDimensionFromSelection(
|
|
2472
|
+
GDALGroupH hGroup, const char *pszSelection, CSLConstList papszOptions);
|
|
2473
|
+
|
|
2474
|
+
void CPL_DLL GDALMDArrayRelease(GDALMDArrayH hMDArray);
|
|
2475
|
+
const char CPL_DLL *GDALMDArrayGetName(GDALMDArrayH hArray);
|
|
2476
|
+
const char CPL_DLL *GDALMDArrayGetFullName(GDALMDArrayH hArray);
|
|
2477
|
+
GUInt64 CPL_DLL GDALMDArrayGetTotalElementsCount(GDALMDArrayH hArray);
|
|
2478
|
+
size_t CPL_DLL GDALMDArrayGetDimensionCount(GDALMDArrayH hArray);
|
|
2479
|
+
GDALDimensionH CPL_DLL *
|
|
2480
|
+
GDALMDArrayGetDimensions(GDALMDArrayH hArray,
|
|
2481
|
+
size_t *pnCount) CPL_WARN_UNUSED_RESULT;
|
|
2482
|
+
GDALExtendedDataTypeH CPL_DLL GDALMDArrayGetDataType(GDALMDArrayH hArray)
|
|
2483
|
+
CPL_WARN_UNUSED_RESULT;
|
|
2484
|
+
int CPL_DLL GDALMDArrayRead(GDALMDArrayH hArray, const GUInt64 *arrayStartIdx,
|
|
2485
|
+
const size_t *count, const GInt64 *arrayStep,
|
|
2486
|
+
const GPtrDiff_t *bufferStride,
|
|
2487
|
+
GDALExtendedDataTypeH bufferDatatype,
|
|
2488
|
+
void *pDstBuffer, const void *pDstBufferAllocStart,
|
|
2489
|
+
size_t nDstBufferllocSize);
|
|
2490
|
+
int CPL_DLL GDALMDArrayWrite(GDALMDArrayH hArray, const GUInt64 *arrayStartIdx,
|
|
2491
|
+
const size_t *count, const GInt64 *arrayStep,
|
|
2492
|
+
const GPtrDiff_t *bufferStride,
|
|
2493
|
+
GDALExtendedDataTypeH bufferDatatype,
|
|
2494
|
+
const void *pSrcBuffer,
|
|
2495
|
+
const void *psrcBufferAllocStart,
|
|
2496
|
+
size_t nSrcBufferllocSize);
|
|
2497
|
+
int CPL_DLL GDALMDArrayAdviseRead(GDALMDArrayH hArray,
|
|
2498
|
+
const GUInt64 *arrayStartIdx,
|
|
2499
|
+
const size_t *count);
|
|
2500
|
+
int CPL_DLL GDALMDArrayAdviseReadEx(GDALMDArrayH hArray,
|
|
2501
|
+
const GUInt64 *arrayStartIdx,
|
|
2502
|
+
const size_t *count,
|
|
2503
|
+
CSLConstList papszOptions);
|
|
2504
|
+
GDALAttributeH CPL_DLL GDALMDArrayGetAttribute(
|
|
2505
|
+
GDALMDArrayH hArray, const char *pszName) CPL_WARN_UNUSED_RESULT;
|
|
2506
|
+
GDALAttributeH CPL_DLL *
|
|
2507
|
+
GDALMDArrayGetAttributes(GDALMDArrayH hArray, size_t *pnCount,
|
|
2508
|
+
CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT;
|
|
2509
|
+
GDALAttributeH CPL_DLL GDALMDArrayCreateAttribute(
|
|
2510
|
+
GDALMDArrayH hArray, const char *pszName, size_t nDimensions,
|
|
2511
|
+
const GUInt64 *panDimensions, GDALExtendedDataTypeH hEDT,
|
|
2512
|
+
CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT;
|
|
2513
|
+
bool CPL_DLL GDALMDArrayDeleteAttribute(GDALMDArrayH hArray,
|
|
2514
|
+
const char *pszName,
|
|
2515
|
+
CSLConstList papszOptions);
|
|
2516
|
+
bool CPL_DLL GDALMDArrayResize(GDALMDArrayH hArray,
|
|
2517
|
+
const GUInt64 *panNewDimSizes,
|
|
2518
|
+
CSLConstList papszOptions);
|
|
2519
|
+
const void CPL_DLL *GDALMDArrayGetRawNoDataValue(GDALMDArrayH hArray);
|
|
2520
|
+
double CPL_DLL GDALMDArrayGetNoDataValueAsDouble(GDALMDArrayH hArray,
|
|
2521
|
+
int *pbHasNoDataValue);
|
|
2522
|
+
int64_t CPL_DLL GDALMDArrayGetNoDataValueAsInt64(GDALMDArrayH hArray,
|
|
2523
|
+
int *pbHasNoDataValue);
|
|
2524
|
+
uint64_t CPL_DLL GDALMDArrayGetNoDataValueAsUInt64(GDALMDArrayH hArray,
|
|
2525
|
+
int *pbHasNoDataValue);
|
|
2526
|
+
int CPL_DLL GDALMDArraySetRawNoDataValue(GDALMDArrayH hArray, const void *);
|
|
2527
|
+
int CPL_DLL GDALMDArraySetNoDataValueAsDouble(GDALMDArrayH hArray,
|
|
2528
|
+
double dfNoDataValue);
|
|
2529
|
+
int CPL_DLL GDALMDArraySetNoDataValueAsInt64(GDALMDArrayH hArray,
|
|
2530
|
+
int64_t nNoDataValue);
|
|
2531
|
+
int CPL_DLL GDALMDArraySetNoDataValueAsUInt64(GDALMDArrayH hArray,
|
|
2532
|
+
uint64_t nNoDataValue);
|
|
2533
|
+
int CPL_DLL GDALMDArraySetScale(GDALMDArrayH hArray, double dfScale);
|
|
2534
|
+
int CPL_DLL GDALMDArraySetScaleEx(GDALMDArrayH hArray, double dfScale,
|
|
2535
|
+
GDALDataType eStorageType);
|
|
2536
|
+
double CPL_DLL GDALMDArrayGetScale(GDALMDArrayH hArray, int *pbHasValue);
|
|
2537
|
+
double CPL_DLL GDALMDArrayGetScaleEx(GDALMDArrayH hArray, int *pbHasValue,
|
|
2538
|
+
GDALDataType *peStorageType);
|
|
2539
|
+
int CPL_DLL GDALMDArraySetOffset(GDALMDArrayH hArray, double dfOffset);
|
|
2540
|
+
int CPL_DLL GDALMDArraySetOffsetEx(GDALMDArrayH hArray, double dfOffset,
|
|
2541
|
+
GDALDataType eStorageType);
|
|
2542
|
+
double CPL_DLL GDALMDArrayGetOffset(GDALMDArrayH hArray, int *pbHasValue);
|
|
2543
|
+
double CPL_DLL GDALMDArrayGetOffsetEx(GDALMDArrayH hArray, int *pbHasValue,
|
|
2544
|
+
GDALDataType *peStorageType);
|
|
2545
|
+
GUInt64 CPL_DLL *GDALMDArrayGetBlockSize(GDALMDArrayH hArray, size_t *pnCount);
|
|
2546
|
+
int CPL_DLL GDALMDArraySetUnit(GDALMDArrayH hArray, const char *);
|
|
2547
|
+
const char CPL_DLL *GDALMDArrayGetUnit(GDALMDArrayH hArray);
|
|
2548
|
+
int CPL_DLL GDALMDArraySetSpatialRef(GDALMDArrayH, OGRSpatialReferenceH);
|
|
2549
|
+
OGRSpatialReferenceH CPL_DLL GDALMDArrayGetSpatialRef(GDALMDArrayH hArray);
|
|
2550
|
+
size_t CPL_DLL *GDALMDArrayGetProcessingChunkSize(GDALMDArrayH hArray,
|
|
2551
|
+
size_t *pnCount,
|
|
2552
|
+
size_t nMaxChunkMemory);
|
|
2553
|
+
CSLConstList CPL_DLL GDALMDArrayGetStructuralInfo(GDALMDArrayH hArray);
|
|
2554
|
+
GDALMDArrayH CPL_DLL GDALMDArrayGetView(GDALMDArrayH hArray,
|
|
2555
|
+
const char *pszViewExpr);
|
|
2556
|
+
GDALMDArrayH CPL_DLL GDALMDArrayTranspose(GDALMDArrayH hArray,
|
|
2557
|
+
size_t nNewAxisCount,
|
|
2558
|
+
const int *panMapNewAxisToOldAxis);
|
|
2559
|
+
GDALMDArrayH CPL_DLL GDALMDArrayGetUnscaled(GDALMDArrayH hArray);
|
|
2560
|
+
GDALMDArrayH CPL_DLL GDALMDArrayGetMask(GDALMDArrayH hArray,
|
|
2561
|
+
CSLConstList papszOptions);
|
|
2562
|
+
GDALDatasetH CPL_DLL GDALMDArrayAsClassicDataset(GDALMDArrayH hArray,
|
|
2563
|
+
size_t iXDim, size_t iYDim);
|
|
2564
|
+
GDALDatasetH CPL_DLL GDALMDArrayAsClassicDatasetEx(GDALMDArrayH hArray,
|
|
2565
|
+
size_t iXDim, size_t iYDim,
|
|
2566
|
+
GDALGroupH hRootGroup,
|
|
2567
|
+
CSLConstList papszOptions);
|
|
2568
|
+
CPLErr CPL_DLL GDALMDArrayGetStatistics(
|
|
2569
|
+
GDALMDArrayH hArray, GDALDatasetH, int bApproxOK, int bForce,
|
|
2570
|
+
double *pdfMin, double *pdfMax, double *pdfMean, double *pdfStdDev,
|
|
2571
|
+
GUInt64 *pnValidCount, GDALProgressFunc pfnProgress, void *pProgressData);
|
|
2572
|
+
int CPL_DLL GDALMDArrayComputeStatistics(GDALMDArrayH hArray, GDALDatasetH,
|
|
2573
|
+
int bApproxOK, double *pdfMin,
|
|
2574
|
+
double *pdfMax, double *pdfMean,
|
|
2575
|
+
double *pdfStdDev,
|
|
2576
|
+
GUInt64 *pnValidCount,
|
|
2577
|
+
GDALProgressFunc, void *pProgressData);
|
|
2578
|
+
int CPL_DLL GDALMDArrayComputeStatisticsEx(
|
|
2579
|
+
GDALMDArrayH hArray, GDALDatasetH, int bApproxOK, double *pdfMin,
|
|
2580
|
+
double *pdfMax, double *pdfMean, double *pdfStdDev, GUInt64 *pnValidCount,
|
|
2581
|
+
GDALProgressFunc, void *pProgressData, CSLConstList papszOptions);
|
|
2582
|
+
GDALMDArrayH CPL_DLL GDALMDArrayGetResampled(GDALMDArrayH hArray,
|
|
2583
|
+
size_t nNewDimCount,
|
|
2584
|
+
const GDALDimensionH *pahNewDims,
|
|
2585
|
+
GDALRIOResampleAlg resampleAlg,
|
|
2586
|
+
OGRSpatialReferenceH hTargetSRS,
|
|
2587
|
+
CSLConstList papszOptions);
|
|
2588
|
+
GDALMDArrayH CPL_DLL GDALMDArrayGetGridded(
|
|
2589
|
+
GDALMDArrayH hArray, const char *pszGridOptions, GDALMDArrayH hXArray,
|
|
2590
|
+
GDALMDArrayH hYArray, CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT;
|
|
2591
|
+
|
|
2592
|
+
GDALMDArrayH CPL_DLL *
|
|
2593
|
+
GDALMDArrayGetCoordinateVariables(GDALMDArrayH hArray,
|
|
2594
|
+
size_t *pnCount) CPL_WARN_UNUSED_RESULT;
|
|
2595
|
+
|
|
2596
|
+
GDALMDArrayH CPL_DLL *
|
|
2597
|
+
GDALMDArrayGetMeshGrid(const GDALMDArrayH *pahInputArrays,
|
|
2598
|
+
size_t nCountInputArrays, size_t *pnCountOutputArrays,
|
|
2599
|
+
CSLConstList papszOptions) CPL_WARN_UNUSED_RESULT;
|
|
2600
|
+
|
|
2601
|
+
void CPL_DLL GDALReleaseArrays(GDALMDArrayH *arrays, size_t nCount);
|
|
2602
|
+
int CPL_DLL GDALMDArrayCache(GDALMDArrayH hArray, CSLConstList papszOptions);
|
|
2603
|
+
bool CPL_DLL GDALMDArrayRename(GDALMDArrayH hArray, const char *pszNewName);
|
|
2604
|
+
|
|
2605
|
+
GDALRasterAttributeTableH CPL_DLL GDALCreateRasterAttributeTableFromMDArrays(
|
|
2606
|
+
GDALRATTableType eTableType, int nArrays, const GDALMDArrayH *ahArrays,
|
|
2607
|
+
const GDALRATFieldUsage *paeUsages);
|
|
2608
|
+
|
|
2609
|
+
void CPL_DLL GDALAttributeRelease(GDALAttributeH hAttr);
|
|
2610
|
+
void CPL_DLL GDALReleaseAttributes(GDALAttributeH *attributes, size_t nCount);
|
|
2611
|
+
const char CPL_DLL *GDALAttributeGetName(GDALAttributeH hAttr);
|
|
2612
|
+
const char CPL_DLL *GDALAttributeGetFullName(GDALAttributeH hAttr);
|
|
2613
|
+
GUInt64 CPL_DLL GDALAttributeGetTotalElementsCount(GDALAttributeH hAttr);
|
|
2614
|
+
size_t CPL_DLL GDALAttributeGetDimensionCount(GDALAttributeH hAttr);
|
|
2615
|
+
GUInt64 CPL_DLL *
|
|
2616
|
+
GDALAttributeGetDimensionsSize(GDALAttributeH hAttr,
|
|
2617
|
+
size_t *pnCount) CPL_WARN_UNUSED_RESULT;
|
|
2618
|
+
GDALExtendedDataTypeH CPL_DLL GDALAttributeGetDataType(GDALAttributeH hAttr)
|
|
2619
|
+
CPL_WARN_UNUSED_RESULT;
|
|
2620
|
+
GByte CPL_DLL *GDALAttributeReadAsRaw(GDALAttributeH hAttr,
|
|
2621
|
+
size_t *pnSize) CPL_WARN_UNUSED_RESULT;
|
|
2622
|
+
void CPL_DLL GDALAttributeFreeRawResult(GDALAttributeH hAttr, GByte *raw,
|
|
2623
|
+
size_t nSize);
|
|
2624
|
+
const char CPL_DLL *GDALAttributeReadAsString(GDALAttributeH hAttr);
|
|
2625
|
+
int CPL_DLL GDALAttributeReadAsInt(GDALAttributeH hAttr);
|
|
2626
|
+
int64_t CPL_DLL GDALAttributeReadAsInt64(GDALAttributeH hAttr);
|
|
2627
|
+
double CPL_DLL GDALAttributeReadAsDouble(GDALAttributeH hAttr);
|
|
2628
|
+
char CPL_DLL **
|
|
2629
|
+
GDALAttributeReadAsStringArray(GDALAttributeH hAttr) CPL_WARN_UNUSED_RESULT;
|
|
2630
|
+
int CPL_DLL *GDALAttributeReadAsIntArray(GDALAttributeH hAttr, size_t *pnCount)
|
|
2631
|
+
CPL_WARN_UNUSED_RESULT;
|
|
2632
|
+
int64_t CPL_DLL *
|
|
2633
|
+
GDALAttributeReadAsInt64Array(GDALAttributeH hAttr,
|
|
2634
|
+
size_t *pnCount) CPL_WARN_UNUSED_RESULT;
|
|
2635
|
+
double CPL_DLL *
|
|
2636
|
+
GDALAttributeReadAsDoubleArray(GDALAttributeH hAttr,
|
|
2637
|
+
size_t *pnCount) CPL_WARN_UNUSED_RESULT;
|
|
2638
|
+
int CPL_DLL GDALAttributeWriteRaw(GDALAttributeH hAttr, const void *, size_t);
|
|
2639
|
+
int CPL_DLL GDALAttributeWriteString(GDALAttributeH hAttr, const char *);
|
|
2640
|
+
int CPL_DLL GDALAttributeWriteStringArray(GDALAttributeH hAttr, CSLConstList);
|
|
2641
|
+
int CPL_DLL GDALAttributeWriteInt(GDALAttributeH hAttr, int);
|
|
2642
|
+
int CPL_DLL GDALAttributeWriteIntArray(GDALAttributeH hAttr, const int *,
|
|
2643
|
+
size_t);
|
|
2644
|
+
int CPL_DLL GDALAttributeWriteInt64(GDALAttributeH hAttr, int64_t);
|
|
2645
|
+
int CPL_DLL GDALAttributeWriteInt64Array(GDALAttributeH hAttr, const int64_t *,
|
|
2646
|
+
size_t);
|
|
2647
|
+
int CPL_DLL GDALAttributeWriteDouble(GDALAttributeH hAttr, double);
|
|
2648
|
+
int CPL_DLL GDALAttributeWriteDoubleArray(GDALAttributeH hAttr, const double *,
|
|
2649
|
+
size_t);
|
|
2650
|
+
bool CPL_DLL GDALAttributeRename(GDALAttributeH hAttr, const char *pszNewName);
|
|
2651
|
+
|
|
2652
|
+
void CPL_DLL GDALDimensionRelease(GDALDimensionH hDim);
|
|
2653
|
+
void CPL_DLL GDALReleaseDimensions(GDALDimensionH *dims, size_t nCount);
|
|
2654
|
+
const char CPL_DLL *GDALDimensionGetName(GDALDimensionH hDim);
|
|
2655
|
+
const char CPL_DLL *GDALDimensionGetFullName(GDALDimensionH hDim);
|
|
2656
|
+
const char CPL_DLL *GDALDimensionGetType(GDALDimensionH hDim);
|
|
2657
|
+
const char CPL_DLL *GDALDimensionGetDirection(GDALDimensionH hDim);
|
|
2658
|
+
GUInt64 CPL_DLL GDALDimensionGetSize(GDALDimensionH hDim);
|
|
2659
|
+
GDALMDArrayH CPL_DLL GDALDimensionGetIndexingVariable(GDALDimensionH hDim)
|
|
2660
|
+
CPL_WARN_UNUSED_RESULT;
|
|
2661
|
+
int CPL_DLL GDALDimensionSetIndexingVariable(GDALDimensionH hDim,
|
|
2662
|
+
GDALMDArrayH hArray);
|
|
2663
|
+
bool CPL_DLL GDALDimensionRename(GDALDimensionH hDim, const char *pszNewName);
|
|
2664
|
+
|
|
2665
|
+
CPL_C_END
|
|
2666
|
+
|
|
2667
|
+
#endif /* ndef GDAL_H_INCLUDED */
|