@cpp.js/package-gdal 1.0.0-beta.21 → 1.0.0-beta.23
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 +18 -0
- package/cppjs-package-gdal.podspec +1 -1
- package/cppjs.build.js +1 -0
- 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 +881 -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/gdal.xcframework/ios-arm64_arm64e/libgdal.a +0 -0
- package/gdal.xcframework/ios-arm64_arm64e_x86_64-simulator/libgdal.a +0 -0
- package/package.json +12 -12
|
@@ -0,0 +1,1088 @@
|
|
|
1
|
+
/******************************************************************************
|
|
2
|
+
* $Id$
|
|
3
|
+
*
|
|
4
|
+
* Project: OpenGIS Simple Features Reference Implementation
|
|
5
|
+
* Purpose: C API and constant declarations for OGR Spatial References.
|
|
6
|
+
* Author: Frank Warmerdam, warmerdam@pobox.com
|
|
7
|
+
*
|
|
8
|
+
******************************************************************************
|
|
9
|
+
* Copyright (c) 2000, Frank Warmerdam
|
|
10
|
+
* Copyright (c) 2008-2013, Even Rouault <even dot rouault at spatialys.com>
|
|
11
|
+
*
|
|
12
|
+
* SPDX-License-Identifier: MIT
|
|
13
|
+
****************************************************************************/
|
|
14
|
+
|
|
15
|
+
#ifndef OGR_SRS_API_H_INCLUDED
|
|
16
|
+
#define OGR_SRS_API_H_INCLUDED
|
|
17
|
+
|
|
18
|
+
#include <stdbool.h>
|
|
19
|
+
|
|
20
|
+
#ifndef SWIG
|
|
21
|
+
#include "ogr_core.h"
|
|
22
|
+
|
|
23
|
+
CPL_C_START
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* \file ogr_srs_api.h
|
|
27
|
+
*
|
|
28
|
+
* C spatial reference system services and defines.
|
|
29
|
+
*
|
|
30
|
+
* See also: ogr_spatialref.h
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
/** Axis orientations (corresponds to CS_AxisOrientationEnum). */
|
|
34
|
+
typedef enum
|
|
35
|
+
{
|
|
36
|
+
OAO_Other = 0, /**< Other */
|
|
37
|
+
OAO_North = 1, /**< North */
|
|
38
|
+
OAO_South = 2, /**< South */
|
|
39
|
+
OAO_East = 3, /**< East */
|
|
40
|
+
OAO_West = 4, /**< West */
|
|
41
|
+
OAO_Up = 5, /**< Up (to space) */
|
|
42
|
+
OAO_Down = 6 /**< Down (to Earth center) */
|
|
43
|
+
} OGRAxisOrientation;
|
|
44
|
+
|
|
45
|
+
const char CPL_DLL *OSRAxisEnumToName(OGRAxisOrientation eOrientation);
|
|
46
|
+
|
|
47
|
+
#endif // ndef SWIG
|
|
48
|
+
|
|
49
|
+
/* ==================================================================== */
|
|
50
|
+
/* Some standard WKT geographic coordinate systems. */
|
|
51
|
+
/* ==================================================================== */
|
|
52
|
+
|
|
53
|
+
#ifdef USE_DEPRECATED_SRS_WKT_WGS84
|
|
54
|
+
#define SRS_WKT_WGS84 \
|
|
55
|
+
"GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS " \
|
|
56
|
+
"84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[" \
|
|
57
|
+
"\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]]" \
|
|
58
|
+
",UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]]," \
|
|
59
|
+
"AUTHORITY[\"EPSG\",\"4326\"]]"
|
|
60
|
+
#endif
|
|
61
|
+
|
|
62
|
+
/** WGS 84 geodetic (lat/long) WKT / EPSG:4326 with lat,long ordering */
|
|
63
|
+
#define SRS_WKT_WGS84_LAT_LONG \
|
|
64
|
+
"GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS " \
|
|
65
|
+
"84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[" \
|
|
66
|
+
"\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]]" \
|
|
67
|
+
",UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]],AXIS[" \
|
|
68
|
+
"\"Latitude\",NORTH],AXIS[\"Longitude\",EAST],AUTHORITY[\"EPSG\"," \
|
|
69
|
+
"\"4326\"]]"
|
|
70
|
+
|
|
71
|
+
/* ==================================================================== */
|
|
72
|
+
/* Some "standard" strings. */
|
|
73
|
+
/* ==================================================================== */
|
|
74
|
+
|
|
75
|
+
/** Albers_Conic_Equal_Area projection */
|
|
76
|
+
#define SRS_PT_ALBERS_CONIC_EQUAL_AREA "Albers_Conic_Equal_Area"
|
|
77
|
+
/** Azimuthal_Equidistant projection */
|
|
78
|
+
#define SRS_PT_AZIMUTHAL_EQUIDISTANT "Azimuthal_Equidistant"
|
|
79
|
+
/** Cassini_Soldner projection */
|
|
80
|
+
#define SRS_PT_CASSINI_SOLDNER "Cassini_Soldner"
|
|
81
|
+
/** Cylindrical_Equal_Area projection */
|
|
82
|
+
#define SRS_PT_CYLINDRICAL_EQUAL_AREA "Cylindrical_Equal_Area"
|
|
83
|
+
/** Cylindrical_Equal_Area projection */
|
|
84
|
+
#define SRS_PT_BONNE "Bonne"
|
|
85
|
+
/** Eckert_I projection */
|
|
86
|
+
#define SRS_PT_ECKERT_I "Eckert_I"
|
|
87
|
+
/** Eckert_II projection */
|
|
88
|
+
#define SRS_PT_ECKERT_II "Eckert_II"
|
|
89
|
+
/** Eckert_III projection */
|
|
90
|
+
#define SRS_PT_ECKERT_III "Eckert_III"
|
|
91
|
+
/** Eckert_IV projection */
|
|
92
|
+
#define SRS_PT_ECKERT_IV "Eckert_IV"
|
|
93
|
+
/** Eckert_V projection */
|
|
94
|
+
#define SRS_PT_ECKERT_V "Eckert_V"
|
|
95
|
+
/** Eckert_VI projection */
|
|
96
|
+
#define SRS_PT_ECKERT_VI "Eckert_VI"
|
|
97
|
+
/** Equidistant_Conic projection */
|
|
98
|
+
#define SRS_PT_EQUIDISTANT_CONIC "Equidistant_Conic"
|
|
99
|
+
/** Equirectangular projection */
|
|
100
|
+
#define SRS_PT_EQUIRECTANGULAR "Equirectangular"
|
|
101
|
+
/** Gall_Stereographic projection */
|
|
102
|
+
#define SRS_PT_GALL_STEREOGRAPHIC "Gall_Stereographic"
|
|
103
|
+
/** Gauss_Schreiber_Transverse_Mercator projection */
|
|
104
|
+
#define SRS_PT_GAUSSSCHREIBERTMERCATOR "Gauss_Schreiber_Transverse_Mercator"
|
|
105
|
+
/** Geostationary_Satellite projection */
|
|
106
|
+
#define SRS_PT_GEOSTATIONARY_SATELLITE "Geostationary_Satellite"
|
|
107
|
+
/** Goode_Homolosine projection */
|
|
108
|
+
#define SRS_PT_GOODE_HOMOLOSINE "Goode_Homolosine"
|
|
109
|
+
/** Interrupted_Goode_Homolosine projection */
|
|
110
|
+
#define SRS_PT_IGH "Interrupted_Goode_Homolosine"
|
|
111
|
+
/** Gnomonic projection */
|
|
112
|
+
#define SRS_PT_GNOMONIC "Gnomonic"
|
|
113
|
+
/** Hotine_Oblique_Mercator_Azimuth_Center projection */
|
|
114
|
+
#define SRS_PT_HOTINE_OBLIQUE_MERCATOR_AZIMUTH_CENTER \
|
|
115
|
+
"Hotine_Oblique_Mercator_Azimuth_Center"
|
|
116
|
+
/** Hotine_Oblique_Mercator projection */
|
|
117
|
+
#define SRS_PT_HOTINE_OBLIQUE_MERCATOR "Hotine_Oblique_Mercator"
|
|
118
|
+
/** Hotine_Oblique_Mercator_Two_Point_Natural_Origin projection */
|
|
119
|
+
#define SRS_PT_HOTINE_OBLIQUE_MERCATOR_TWO_POINT_NATURAL_ORIGIN \
|
|
120
|
+
"Hotine_Oblique_Mercator_Two_Point_Natural_Origin"
|
|
121
|
+
/** Laborde_Oblique_Mercator projection */
|
|
122
|
+
#define SRS_PT_LABORDE_OBLIQUE_MERCATOR "Laborde_Oblique_Mercator"
|
|
123
|
+
/** Lambert_Conformal_Conic_1SP projection */
|
|
124
|
+
#define SRS_PT_LAMBERT_CONFORMAL_CONIC_1SP "Lambert_Conformal_Conic_1SP"
|
|
125
|
+
/** Lambert_Conformal_Conic_2SP projection */
|
|
126
|
+
#define SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP "Lambert_Conformal_Conic_2SP"
|
|
127
|
+
/** Lambert_Conformal_Conic_2SP_Belgium projection */
|
|
128
|
+
#define SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP_BELGIUM \
|
|
129
|
+
"Lambert_Conformal_Conic_2SP_Belgium"
|
|
130
|
+
/** Lambert_Azimuthal_Equal_Area projection */
|
|
131
|
+
#define SRS_PT_LAMBERT_AZIMUTHAL_EQUAL_AREA "Lambert_Azimuthal_Equal_Area"
|
|
132
|
+
/** Mercator_1SP projection */
|
|
133
|
+
#define SRS_PT_MERCATOR_1SP "Mercator_1SP"
|
|
134
|
+
/** Mercator_2SP projection */
|
|
135
|
+
#define SRS_PT_MERCATOR_2SP "Mercator_2SP"
|
|
136
|
+
/** Mercator_Auxiliary_Sphere is used used by ESRI to mean EPSG:3875 */
|
|
137
|
+
#define SRS_PT_MERCATOR_AUXILIARY_SPHERE "Mercator_Auxiliary_Sphere"
|
|
138
|
+
/** Miller_Cylindrical projection */
|
|
139
|
+
#define SRS_PT_MILLER_CYLINDRICAL "Miller_Cylindrical"
|
|
140
|
+
/** Mollweide projection */
|
|
141
|
+
#define SRS_PT_MOLLWEIDE "Mollweide"
|
|
142
|
+
/** New_Zealand_Map_Grid projection */
|
|
143
|
+
#define SRS_PT_NEW_ZEALAND_MAP_GRID "New_Zealand_Map_Grid"
|
|
144
|
+
/** Oblique_Stereographic projection */
|
|
145
|
+
#define SRS_PT_OBLIQUE_STEREOGRAPHIC "Oblique_Stereographic"
|
|
146
|
+
/** Orthographic projection */
|
|
147
|
+
#define SRS_PT_ORTHOGRAPHIC "Orthographic"
|
|
148
|
+
/** Polar_Stereographic projection */
|
|
149
|
+
#define SRS_PT_POLAR_STEREOGRAPHIC "Polar_Stereographic"
|
|
150
|
+
/** Polyconic projection */
|
|
151
|
+
#define SRS_PT_POLYCONIC "Polyconic"
|
|
152
|
+
/** Robinson projection */
|
|
153
|
+
#define SRS_PT_ROBINSON "Robinson"
|
|
154
|
+
/** Sinusoidal projection */
|
|
155
|
+
#define SRS_PT_SINUSOIDAL "Sinusoidal"
|
|
156
|
+
/** Stereographic projection */
|
|
157
|
+
#define SRS_PT_STEREOGRAPHIC "Stereographic"
|
|
158
|
+
/** Swiss_Oblique_Cylindrical projection */
|
|
159
|
+
#define SRS_PT_SWISS_OBLIQUE_CYLINDRICAL "Swiss_Oblique_Cylindrical"
|
|
160
|
+
/** Transverse_Mercator projection */
|
|
161
|
+
#define SRS_PT_TRANSVERSE_MERCATOR "Transverse_Mercator"
|
|
162
|
+
/** Transverse_Mercator_South_Orientated projection */
|
|
163
|
+
#define SRS_PT_TRANSVERSE_MERCATOR_SOUTH_ORIENTED \
|
|
164
|
+
"Transverse_Mercator_South_Orientated"
|
|
165
|
+
|
|
166
|
+
/* special mapinfo variants on Transverse Mercator */
|
|
167
|
+
/** Transverse_Mercator_MapInfo_21 projection */
|
|
168
|
+
#define SRS_PT_TRANSVERSE_MERCATOR_MI_21 "Transverse_Mercator_MapInfo_21"
|
|
169
|
+
/** Transverse_Mercator_MapInfo_22 projection */
|
|
170
|
+
#define SRS_PT_TRANSVERSE_MERCATOR_MI_22 "Transverse_Mercator_MapInfo_22"
|
|
171
|
+
/** Transverse_Mercator_MapInfo_23 projection */
|
|
172
|
+
#define SRS_PT_TRANSVERSE_MERCATOR_MI_23 "Transverse_Mercator_MapInfo_23"
|
|
173
|
+
/** Transverse_Mercator_MapInfo_24 projection */
|
|
174
|
+
#define SRS_PT_TRANSVERSE_MERCATOR_MI_24 "Transverse_Mercator_MapInfo_24"
|
|
175
|
+
/** Transverse_Mercator_MapInfo_25 projection */
|
|
176
|
+
#define SRS_PT_TRANSVERSE_MERCATOR_MI_25 "Transverse_Mercator_MapInfo_25"
|
|
177
|
+
|
|
178
|
+
/** Tunisia_Mining_Grid projection */
|
|
179
|
+
#define SRS_PT_TUNISIA_MINING_GRID "Tunisia_Mining_Grid"
|
|
180
|
+
/** Two_Point_Equidistant projection */
|
|
181
|
+
#define SRS_PT_TWO_POINT_EQUIDISTANT "Two_Point_Equidistant"
|
|
182
|
+
/** VanDerGrinten projection */
|
|
183
|
+
#define SRS_PT_VANDERGRINTEN "VanDerGrinten"
|
|
184
|
+
/** Krovak projection */
|
|
185
|
+
#define SRS_PT_KROVAK "Krovak"
|
|
186
|
+
/** International_Map_of_the_World_Polyconic projection */
|
|
187
|
+
#define SRS_PT_IMW_POLYCONIC "International_Map_of_the_World_Polyconic"
|
|
188
|
+
/** Wagner_I projection */
|
|
189
|
+
#define SRS_PT_WAGNER_I "Wagner_I"
|
|
190
|
+
/** Wagner_II projection */
|
|
191
|
+
#define SRS_PT_WAGNER_II "Wagner_II"
|
|
192
|
+
/** Wagner_III projection */
|
|
193
|
+
#define SRS_PT_WAGNER_III "Wagner_III"
|
|
194
|
+
/** Wagner_IV projection */
|
|
195
|
+
#define SRS_PT_WAGNER_IV "Wagner_IV"
|
|
196
|
+
/** Wagner_V projection */
|
|
197
|
+
#define SRS_PT_WAGNER_V "Wagner_V"
|
|
198
|
+
/** Wagner_VI projection */
|
|
199
|
+
#define SRS_PT_WAGNER_VI "Wagner_VI"
|
|
200
|
+
/** Wagner_VII projection */
|
|
201
|
+
#define SRS_PT_WAGNER_VII "Wagner_VII"
|
|
202
|
+
/** Quadrilateralized_Spherical_Cube projection */
|
|
203
|
+
#define SRS_PT_QSC "Quadrilateralized_Spherical_Cube"
|
|
204
|
+
/** Aitoff projection */
|
|
205
|
+
#define SRS_PT_AITOFF "Aitoff"
|
|
206
|
+
/** Winkel_I projection */
|
|
207
|
+
#define SRS_PT_WINKEL_I "Winkel_I"
|
|
208
|
+
/** Winkel_II projection */
|
|
209
|
+
#define SRS_PT_WINKEL_II "Winkel_II"
|
|
210
|
+
/** Winkel_Tripel projection */
|
|
211
|
+
#define SRS_PT_WINKEL_TRIPEL "Winkel_Tripel"
|
|
212
|
+
/** Craster_Parabolic projection */
|
|
213
|
+
#define SRS_PT_CRASTER_PARABOLIC "Craster_Parabolic"
|
|
214
|
+
/** Loximuthal projection */
|
|
215
|
+
#define SRS_PT_LOXIMUTHAL "Loximuthal"
|
|
216
|
+
/** Quartic_Authalic projection */
|
|
217
|
+
#define SRS_PT_QUARTIC_AUTHALIC "Quartic_Authalic"
|
|
218
|
+
/** Spherical_Cross_Track_Height projection */
|
|
219
|
+
#define SRS_PT_SCH "Spherical_Cross_Track_Height"
|
|
220
|
+
|
|
221
|
+
/** central_meridian projection parameter */
|
|
222
|
+
#define SRS_PP_CENTRAL_MERIDIAN "central_meridian"
|
|
223
|
+
/** scale_factor projection parameter */
|
|
224
|
+
#define SRS_PP_SCALE_FACTOR "scale_factor"
|
|
225
|
+
/** standard_parallel_1 projection parameter */
|
|
226
|
+
#define SRS_PP_STANDARD_PARALLEL_1 "standard_parallel_1"
|
|
227
|
+
/** standard_parallel_2 projection parameter */
|
|
228
|
+
#define SRS_PP_STANDARD_PARALLEL_2 "standard_parallel_2"
|
|
229
|
+
/** pseudo_standard_parallel_1 projection parameter */
|
|
230
|
+
#define SRS_PP_PSEUDO_STD_PARALLEL_1 "pseudo_standard_parallel_1"
|
|
231
|
+
/** longitude_of_center projection parameter */
|
|
232
|
+
#define SRS_PP_LONGITUDE_OF_CENTER "longitude_of_center"
|
|
233
|
+
/** latitude_of_center projection parameter */
|
|
234
|
+
#define SRS_PP_LATITUDE_OF_CENTER "latitude_of_center"
|
|
235
|
+
/** longitude_of_origin projection parameter */
|
|
236
|
+
#define SRS_PP_LONGITUDE_OF_ORIGIN "longitude_of_origin"
|
|
237
|
+
/** latitude_of_origin projection parameter */
|
|
238
|
+
#define SRS_PP_LATITUDE_OF_ORIGIN "latitude_of_origin"
|
|
239
|
+
/** false_easting projection parameter */
|
|
240
|
+
#define SRS_PP_FALSE_EASTING "false_easting"
|
|
241
|
+
/** false_northing projection parameter */
|
|
242
|
+
#define SRS_PP_FALSE_NORTHING "false_northing"
|
|
243
|
+
/** azimuth projection parameter */
|
|
244
|
+
#define SRS_PP_AZIMUTH "azimuth"
|
|
245
|
+
/** longitude_of_point_1 projection parameter */
|
|
246
|
+
#define SRS_PP_LONGITUDE_OF_POINT_1 "longitude_of_point_1"
|
|
247
|
+
/** latitude_of_point_1 projection parameter */
|
|
248
|
+
#define SRS_PP_LATITUDE_OF_POINT_1 "latitude_of_point_1"
|
|
249
|
+
/** longitude_of_point_2 projection parameter */
|
|
250
|
+
#define SRS_PP_LONGITUDE_OF_POINT_2 "longitude_of_point_2"
|
|
251
|
+
/** latitude_of_point_2 projection parameter */
|
|
252
|
+
#define SRS_PP_LATITUDE_OF_POINT_2 "latitude_of_point_2"
|
|
253
|
+
/** longitude_of_point_3 projection parameter */
|
|
254
|
+
#define SRS_PP_LONGITUDE_OF_POINT_3 "longitude_of_point_3"
|
|
255
|
+
/** latitude_of_point_3 projection parameter */
|
|
256
|
+
#define SRS_PP_LATITUDE_OF_POINT_3 "latitude_of_point_3"
|
|
257
|
+
/** rectified_grid_angle projection parameter */
|
|
258
|
+
#define SRS_PP_RECTIFIED_GRID_ANGLE "rectified_grid_angle"
|
|
259
|
+
/** landsat_number projection parameter */
|
|
260
|
+
#define SRS_PP_LANDSAT_NUMBER "landsat_number"
|
|
261
|
+
/** path_number projection parameter */
|
|
262
|
+
#define SRS_PP_PATH_NUMBER "path_number"
|
|
263
|
+
/** perspective_point_height projection parameter */
|
|
264
|
+
#define SRS_PP_PERSPECTIVE_POINT_HEIGHT "perspective_point_height"
|
|
265
|
+
/** satellite_height projection parameter */
|
|
266
|
+
#define SRS_PP_SATELLITE_HEIGHT "satellite_height"
|
|
267
|
+
/** fipszone projection parameter */
|
|
268
|
+
#define SRS_PP_FIPSZONE "fipszone"
|
|
269
|
+
/** zone projection parameter */
|
|
270
|
+
#define SRS_PP_ZONE "zone"
|
|
271
|
+
/** Latitude_Of_1st_Point projection parameter */
|
|
272
|
+
#define SRS_PP_LATITUDE_OF_1ST_POINT "Latitude_Of_1st_Point"
|
|
273
|
+
/** Longitude_Of_1st_Point projection parameter */
|
|
274
|
+
#define SRS_PP_LONGITUDE_OF_1ST_POINT "Longitude_Of_1st_Point"
|
|
275
|
+
/** Latitude_Of_2nd_Point projection parameter */
|
|
276
|
+
#define SRS_PP_LATITUDE_OF_2ND_POINT "Latitude_Of_2nd_Point"
|
|
277
|
+
/** Longitude_Of_2nd_Point projection parameter */
|
|
278
|
+
#define SRS_PP_LONGITUDE_OF_2ND_POINT "Longitude_Of_2nd_Point"
|
|
279
|
+
/** peg_point_latitude projection parameter */
|
|
280
|
+
#define SRS_PP_PEG_POINT_LATITUDE "peg_point_latitude"
|
|
281
|
+
/** peg_point_longitude projection parameter */
|
|
282
|
+
#define SRS_PP_PEG_POINT_LONGITUDE "peg_point_longitude"
|
|
283
|
+
/** peg_point_heading projection parameter */
|
|
284
|
+
#define SRS_PP_PEG_POINT_HEADING "peg_point_heading"
|
|
285
|
+
/** peg_point_height projection parameter */
|
|
286
|
+
#define SRS_PP_PEG_POINT_HEIGHT "peg_point_height"
|
|
287
|
+
|
|
288
|
+
/** Linear unit Meter */
|
|
289
|
+
#define SRS_UL_METER "Meter"
|
|
290
|
+
/** Linear unit Foot (International) */
|
|
291
|
+
#define SRS_UL_FOOT "Foot (International)" /* or just "FOOT"? */
|
|
292
|
+
/** Linear unit Foot (International) conversion factor to meter*/
|
|
293
|
+
#define SRS_UL_FOOT_CONV "0.3048"
|
|
294
|
+
/** Linear unit Foot */
|
|
295
|
+
#define SRS_UL_US_FOOT "Foot_US" /* or "US survey foot" from EPSG */
|
|
296
|
+
/** Linear unit Foot conversion factor to meter */
|
|
297
|
+
#define SRS_UL_US_FOOT_CONV "0.3048006096012192"
|
|
298
|
+
/** Linear unit Nautical Mile */
|
|
299
|
+
#define SRS_UL_NAUTICAL_MILE "Nautical Mile"
|
|
300
|
+
/** Linear unit Nautical Mile conversion factor to meter */
|
|
301
|
+
#define SRS_UL_NAUTICAL_MILE_CONV "1852.0"
|
|
302
|
+
/** Linear unit Link */
|
|
303
|
+
#define SRS_UL_LINK "Link" /* Based on US Foot */
|
|
304
|
+
/** Linear unit Link conversion factor to meter */
|
|
305
|
+
#define SRS_UL_LINK_CONV "0.20116684023368047"
|
|
306
|
+
/** Linear unit Chain */
|
|
307
|
+
#define SRS_UL_CHAIN "Chain" /* based on US Foot */
|
|
308
|
+
/** Linear unit Chain conversion factor to meter */
|
|
309
|
+
#define SRS_UL_CHAIN_CONV "20.116684023368047"
|
|
310
|
+
/** Linear unit Rod */
|
|
311
|
+
#define SRS_UL_ROD "Rod" /* based on US Foot */
|
|
312
|
+
/** Linear unit Rod conversion factor to meter */
|
|
313
|
+
#define SRS_UL_ROD_CONV "5.02921005842012"
|
|
314
|
+
/** Linear unit Link_Clarke */
|
|
315
|
+
#define SRS_UL_LINK_Clarke "Link_Clarke"
|
|
316
|
+
/** Linear unit Link_Clarke conversion factor to meter */
|
|
317
|
+
#define SRS_UL_LINK_Clarke_CONV "0.2011661949"
|
|
318
|
+
|
|
319
|
+
/** Linear unit Kilometer */
|
|
320
|
+
#define SRS_UL_KILOMETER "Kilometer"
|
|
321
|
+
/** Linear unit Kilometer conversion factor to meter */
|
|
322
|
+
#define SRS_UL_KILOMETER_CONV "1000."
|
|
323
|
+
/** Linear unit Decimeter */
|
|
324
|
+
#define SRS_UL_DECIMETER "Decimeter"
|
|
325
|
+
/** Linear unit Decimeter conversion factor to meter */
|
|
326
|
+
#define SRS_UL_DECIMETER_CONV "0.1"
|
|
327
|
+
/** Linear unit Decimeter */
|
|
328
|
+
#define SRS_UL_CENTIMETER "Centimeter"
|
|
329
|
+
/** Linear unit Decimeter conversion factor to meter */
|
|
330
|
+
#define SRS_UL_CENTIMETER_CONV "0.01"
|
|
331
|
+
/** Linear unit Millimeter */
|
|
332
|
+
#define SRS_UL_MILLIMETER "Millimeter"
|
|
333
|
+
/** Linear unit Millimeter conversion factor to meter */
|
|
334
|
+
#define SRS_UL_MILLIMETER_CONV "0.001"
|
|
335
|
+
/** Linear unit Nautical_Mile_International */
|
|
336
|
+
#define SRS_UL_INTL_NAUT_MILE "Nautical_Mile_International"
|
|
337
|
+
/** Linear unit Nautical_Mile_International conversion factor to meter */
|
|
338
|
+
#define SRS_UL_INTL_NAUT_MILE_CONV "1852.0"
|
|
339
|
+
/** Linear unit Inch_International */
|
|
340
|
+
#define SRS_UL_INTL_INCH "Inch_International"
|
|
341
|
+
/** Linear unit Inch_International conversion factor to meter */
|
|
342
|
+
#define SRS_UL_INTL_INCH_CONV "0.0254"
|
|
343
|
+
/** Linear unit Foot_International */
|
|
344
|
+
#define SRS_UL_INTL_FOOT "Foot_International"
|
|
345
|
+
/** Linear unit Foot_International conversion factor to meter */
|
|
346
|
+
#define SRS_UL_INTL_FOOT_CONV "0.3048"
|
|
347
|
+
/** Linear unit Yard_International */
|
|
348
|
+
#define SRS_UL_INTL_YARD "Yard_International"
|
|
349
|
+
/** Linear unit Yard_International conversion factor to meter */
|
|
350
|
+
#define SRS_UL_INTL_YARD_CONV "0.9144"
|
|
351
|
+
/** Linear unit Statute_Mile_International */
|
|
352
|
+
#define SRS_UL_INTL_STAT_MILE "Statute_Mile_International"
|
|
353
|
+
/** Linear unit Statute_Mile_Internationalconversion factor to meter */
|
|
354
|
+
#define SRS_UL_INTL_STAT_MILE_CONV "1609.344"
|
|
355
|
+
/** Linear unit Fathom_International */
|
|
356
|
+
#define SRS_UL_INTL_FATHOM "Fathom_International"
|
|
357
|
+
/** Linear unit Fathom_International conversion factor to meter */
|
|
358
|
+
#define SRS_UL_INTL_FATHOM_CONV "1.8288"
|
|
359
|
+
/** Linear unit Chain_International */
|
|
360
|
+
#define SRS_UL_INTL_CHAIN "Chain_International"
|
|
361
|
+
/** Linear unit Chain_International conversion factor to meter */
|
|
362
|
+
#define SRS_UL_INTL_CHAIN_CONV "20.1168"
|
|
363
|
+
/** Linear unit Link_International */
|
|
364
|
+
#define SRS_UL_INTL_LINK "Link_International"
|
|
365
|
+
/** Linear unit Link_International conversion factor to meter */
|
|
366
|
+
#define SRS_UL_INTL_LINK_CONV "0.201168"
|
|
367
|
+
/** Linear unit Inch_US_Surveyor */
|
|
368
|
+
#define SRS_UL_US_INCH "Inch_US_Surveyor"
|
|
369
|
+
/** Linear unit Inch_US_Surveyor conversion factor to meter */
|
|
370
|
+
#define SRS_UL_US_INCH_CONV "0.025400050800101603"
|
|
371
|
+
/** Linear unit Yard_US_Surveyor */
|
|
372
|
+
#define SRS_UL_US_YARD "Yard_US_Surveyor"
|
|
373
|
+
/** Linear unit Yard_US_Surveyor conversion factor to meter */
|
|
374
|
+
#define SRS_UL_US_YARD_CONV "0.914401828803658"
|
|
375
|
+
/** Linear unit Chain_US_Surveyor */
|
|
376
|
+
#define SRS_UL_US_CHAIN "Chain_US_Surveyor"
|
|
377
|
+
/** Linear unit Chain_US_Surveyor conversion factor to meter */
|
|
378
|
+
#define SRS_UL_US_CHAIN_CONV "20.11684023368047"
|
|
379
|
+
/** Linear unit Statute_Mile_US_Surveyor */
|
|
380
|
+
#define SRS_UL_US_STAT_MILE "Statute_Mile_US_Surveyor"
|
|
381
|
+
/** Linear unit Statute_Mile_US_Surveyor conversion factor to meter */
|
|
382
|
+
#define SRS_UL_US_STAT_MILE_CONV "1609.347218694437"
|
|
383
|
+
/** Linear unit Yard_Indian */
|
|
384
|
+
#define SRS_UL_INDIAN_YARD "Yard_Indian"
|
|
385
|
+
/** Linear unit Yard_Indian conversion factor to meter */
|
|
386
|
+
#define SRS_UL_INDIAN_YARD_CONV "0.91439523"
|
|
387
|
+
/** Linear unit Foot_Indian */
|
|
388
|
+
#define SRS_UL_INDIAN_FOOT "Foot_Indian"
|
|
389
|
+
/** Linear unit Foot_Indian conversion factor to meter */
|
|
390
|
+
#define SRS_UL_INDIAN_FOOT_CONV "0.30479841"
|
|
391
|
+
/** Linear unit Chain_Indian */
|
|
392
|
+
#define SRS_UL_INDIAN_CHAIN "Chain_Indian"
|
|
393
|
+
/** Linear unit Chain_Indian conversion factor to meter */
|
|
394
|
+
#define SRS_UL_INDIAN_CHAIN_CONV "20.11669506"
|
|
395
|
+
|
|
396
|
+
/** Angular unit degree */
|
|
397
|
+
#define SRS_UA_DEGREE "degree"
|
|
398
|
+
/** Angular unit degree conversion factor to radians */
|
|
399
|
+
#define SRS_UA_DEGREE_CONV "0.0174532925199433"
|
|
400
|
+
/** Angular unit radian */
|
|
401
|
+
#define SRS_UA_RADIAN "radian"
|
|
402
|
+
|
|
403
|
+
/** Prime meridian Greenwich */
|
|
404
|
+
#define SRS_PM_GREENWICH "Greenwich"
|
|
405
|
+
|
|
406
|
+
/** North_American_Datum_1927 datum name */
|
|
407
|
+
#define SRS_DN_NAD27 "North_American_Datum_1927"
|
|
408
|
+
/** North_American_Datum_1983 datum name */
|
|
409
|
+
#define SRS_DN_NAD83 "North_American_Datum_1983"
|
|
410
|
+
/** WGS_1972 datum name */
|
|
411
|
+
#define SRS_DN_WGS72 "WGS_1972"
|
|
412
|
+
/** WGS_1984 datum name */
|
|
413
|
+
#define SRS_DN_WGS84 "WGS_1984"
|
|
414
|
+
|
|
415
|
+
/** Semi-major axis of the WGS84 ellipsoid */
|
|
416
|
+
#define SRS_WGS84_SEMIMAJOR 6378137.0
|
|
417
|
+
/** Inverse flattening of the WGS84 ellipsoid */
|
|
418
|
+
#define SRS_WGS84_INVFLATTENING 298.257223563
|
|
419
|
+
|
|
420
|
+
#ifndef SWIG
|
|
421
|
+
/* -------------------------------------------------------------------- */
|
|
422
|
+
/* C Wrappers for C++ objects and methods. */
|
|
423
|
+
/* -------------------------------------------------------------------- */
|
|
424
|
+
#ifndef DEFINED_OGRSpatialReferenceH
|
|
425
|
+
/*! @cond Doxygen_Suppress */
|
|
426
|
+
#define DEFINED_OGRSpatialReferenceH
|
|
427
|
+
/*! @endcond */
|
|
428
|
+
|
|
429
|
+
#ifdef DEBUG
|
|
430
|
+
typedef struct OGRSpatialReferenceHS *OGRSpatialReferenceH;
|
|
431
|
+
typedef struct OGRCoordinateTransformationHS *OGRCoordinateTransformationH;
|
|
432
|
+
#else
|
|
433
|
+
/** Opaque type for a Spatial Reference object */
|
|
434
|
+
typedef void *OGRSpatialReferenceH;
|
|
435
|
+
/** Opaque type for a coordinate transformation object */
|
|
436
|
+
typedef void *OGRCoordinateTransformationH;
|
|
437
|
+
#endif
|
|
438
|
+
|
|
439
|
+
#endif
|
|
440
|
+
|
|
441
|
+
void CPL_DLL OSRSetPROJSearchPaths(const char *const *papszPaths);
|
|
442
|
+
char CPL_DLL **OSRGetPROJSearchPaths(void);
|
|
443
|
+
void CPL_DLL OSRSetPROJAuxDbPaths(const char *const *papszPaths);
|
|
444
|
+
char CPL_DLL **OSRGetPROJAuxDbPaths(void);
|
|
445
|
+
void CPL_DLL OSRSetPROJEnableNetwork(int enabled);
|
|
446
|
+
int CPL_DLL OSRGetPROJEnableNetwork(void);
|
|
447
|
+
void CPL_DLL OSRGetPROJVersion(int *pnMajor, int *pnMinor, int *pnPatch);
|
|
448
|
+
|
|
449
|
+
OGRSpatialReferenceH CPL_DLL CPL_STDCALL
|
|
450
|
+
OSRNewSpatialReference(const char * /* = NULL */);
|
|
451
|
+
OGRSpatialReferenceH CPL_DLL CPL_STDCALL OSRCloneGeogCS(OGRSpatialReferenceH);
|
|
452
|
+
OGRSpatialReferenceH CPL_DLL CPL_STDCALL OSRClone(OGRSpatialReferenceH);
|
|
453
|
+
void CPL_DLL CPL_STDCALL OSRDestroySpatialReference(OGRSpatialReferenceH);
|
|
454
|
+
|
|
455
|
+
int CPL_DLL OSRReference(OGRSpatialReferenceH);
|
|
456
|
+
int CPL_DLL OSRDereference(OGRSpatialReferenceH);
|
|
457
|
+
void CPL_DLL OSRRelease(OGRSpatialReferenceH);
|
|
458
|
+
|
|
459
|
+
OGRErr CPL_DLL OSRValidate(OGRSpatialReferenceH);
|
|
460
|
+
|
|
461
|
+
OGRErr CPL_DLL CPL_STDCALL OSRImportFromEPSG(OGRSpatialReferenceH, int);
|
|
462
|
+
OGRErr CPL_DLL CPL_STDCALL OSRImportFromEPSGA(OGRSpatialReferenceH, int);
|
|
463
|
+
OGRErr CPL_DLL OSRImportFromWkt(OGRSpatialReferenceH, char **);
|
|
464
|
+
OGRErr CPL_DLL OSRImportFromProj4(OGRSpatialReferenceH, const char *);
|
|
465
|
+
OGRErr CPL_DLL OSRImportFromESRI(OGRSpatialReferenceH, char **);
|
|
466
|
+
OGRErr CPL_DLL OSRImportFromPCI(OGRSpatialReferenceH hSRS, const char *,
|
|
467
|
+
const char *, double *);
|
|
468
|
+
OGRErr CPL_DLL OSRImportFromUSGS(OGRSpatialReferenceH, long, long, double *,
|
|
469
|
+
long);
|
|
470
|
+
OGRErr CPL_DLL OSRImportFromXML(OGRSpatialReferenceH, const char *);
|
|
471
|
+
OGRErr CPL_DLL OSRImportFromDict(OGRSpatialReferenceH, const char *,
|
|
472
|
+
const char *);
|
|
473
|
+
OGRErr CPL_DLL OSRImportFromPanorama(OGRSpatialReferenceH, long, long, long,
|
|
474
|
+
double *);
|
|
475
|
+
OGRErr CPL_DLL OSRImportFromOzi(OGRSpatialReferenceH, const char *const *);
|
|
476
|
+
OGRErr CPL_DLL OSRImportFromMICoordSys(OGRSpatialReferenceH, const char *);
|
|
477
|
+
OGRErr CPL_DLL OSRImportFromERM(OGRSpatialReferenceH, const char *,
|
|
478
|
+
const char *, const char *);
|
|
479
|
+
OGRErr CPL_DLL OSRImportFromUrl(OGRSpatialReferenceH, const char *);
|
|
480
|
+
OGRErr CPL_DLL OSRImportFromCF1(OGRSpatialReferenceH,
|
|
481
|
+
CSLConstList papszKeyValues,
|
|
482
|
+
const char *pszUnits);
|
|
483
|
+
|
|
484
|
+
OGRErr CPL_DLL CPL_STDCALL OSRExportToWkt(OGRSpatialReferenceH, char **);
|
|
485
|
+
OGRErr CPL_DLL OSRExportToWktEx(OGRSpatialReferenceH, char **ppszResult,
|
|
486
|
+
const char *const *papszOptions);
|
|
487
|
+
OGRErr CPL_DLL CPL_STDCALL OSRExportToPrettyWkt(OGRSpatialReferenceH, char **,
|
|
488
|
+
int);
|
|
489
|
+
OGRErr CPL_DLL OSRExportToPROJJSON(OGRSpatialReferenceH hSRS, char **ppszReturn,
|
|
490
|
+
const char *const *papszOptions);
|
|
491
|
+
OGRErr CPL_DLL CPL_STDCALL OSRExportToProj4(OGRSpatialReferenceH, char **);
|
|
492
|
+
OGRErr CPL_DLL OSRExportToPCI(OGRSpatialReferenceH, char **, char **,
|
|
493
|
+
double **);
|
|
494
|
+
OGRErr CPL_DLL OSRExportToUSGS(OGRSpatialReferenceH, long *, long *, double **,
|
|
495
|
+
long *);
|
|
496
|
+
OGRErr CPL_DLL OSRExportToXML(OGRSpatialReferenceH, char **, const char *);
|
|
497
|
+
OGRErr CPL_DLL OSRExportToPanorama(OGRSpatialReferenceH, long *, long *, long *,
|
|
498
|
+
long *, double *);
|
|
499
|
+
OGRErr CPL_DLL OSRExportToMICoordSys(OGRSpatialReferenceH, char **);
|
|
500
|
+
OGRErr CPL_DLL OSRExportToERM(OGRSpatialReferenceH, char *, char *, char *);
|
|
501
|
+
OGRErr CPL_DLL OSRExportToCF1(OGRSpatialReferenceH, char **ppszGridMappingName,
|
|
502
|
+
char ***ppapszKeyValues, char **ppszUnits,
|
|
503
|
+
CSLConstList papszOptions);
|
|
504
|
+
|
|
505
|
+
OGRErr CPL_DLL OSRMorphToESRI(OGRSpatialReferenceH);
|
|
506
|
+
OGRErr CPL_DLL OSRMorphFromESRI(OGRSpatialReferenceH);
|
|
507
|
+
|
|
508
|
+
OGRErr CPL_DLL OSRStripVertical(OGRSpatialReferenceH);
|
|
509
|
+
|
|
510
|
+
OGRSpatialReferenceH CPL_DLL OSRConvertToOtherProjection(
|
|
511
|
+
OGRSpatialReferenceH hSRS, const char *pszTargetProjection,
|
|
512
|
+
const char *const *papszOptions);
|
|
513
|
+
|
|
514
|
+
const char CPL_DLL *OSRGetName(OGRSpatialReferenceH hSRS);
|
|
515
|
+
|
|
516
|
+
OGRErr CPL_DLL CPL_STDCALL OSRSetAttrValue(OGRSpatialReferenceH hSRS,
|
|
517
|
+
const char *pszNodePath,
|
|
518
|
+
const char *pszNewNodeValue);
|
|
519
|
+
const char CPL_DLL *CPL_STDCALL OSRGetAttrValue(OGRSpatialReferenceH hSRS,
|
|
520
|
+
const char *pszName,
|
|
521
|
+
int iChild /* = 0 */);
|
|
522
|
+
|
|
523
|
+
OGRErr CPL_DLL OSRSetAngularUnits(OGRSpatialReferenceH, const char *, double);
|
|
524
|
+
double CPL_DLL OSRGetAngularUnits(OGRSpatialReferenceH, char **);
|
|
525
|
+
OGRErr CPL_DLL OSRSetLinearUnits(OGRSpatialReferenceH, const char *, double);
|
|
526
|
+
OGRErr CPL_DLL OSRSetTargetLinearUnits(OGRSpatialReferenceH, const char *,
|
|
527
|
+
const char *, double);
|
|
528
|
+
OGRErr CPL_DLL OSRSetLinearUnitsAndUpdateParameters(OGRSpatialReferenceH,
|
|
529
|
+
const char *, double);
|
|
530
|
+
double CPL_DLL OSRGetLinearUnits(OGRSpatialReferenceH, char **);
|
|
531
|
+
double CPL_DLL OSRGetTargetLinearUnits(OGRSpatialReferenceH, const char *,
|
|
532
|
+
char **);
|
|
533
|
+
|
|
534
|
+
double CPL_DLL OSRGetPrimeMeridian(OGRSpatialReferenceH, char **);
|
|
535
|
+
|
|
536
|
+
int CPL_DLL OSRIsGeographic(OGRSpatialReferenceH);
|
|
537
|
+
int CPL_DLL OSRIsDerivedGeographic(OGRSpatialReferenceH);
|
|
538
|
+
int CPL_DLL OSRIsLocal(OGRSpatialReferenceH);
|
|
539
|
+
int CPL_DLL OSRIsProjected(OGRSpatialReferenceH);
|
|
540
|
+
int CPL_DLL OSRIsDerivedProjected(OGRSpatialReferenceH);
|
|
541
|
+
int CPL_DLL OSRIsCompound(OGRSpatialReferenceH);
|
|
542
|
+
int CPL_DLL OSRIsGeocentric(OGRSpatialReferenceH);
|
|
543
|
+
int CPL_DLL OSRIsVertical(OGRSpatialReferenceH);
|
|
544
|
+
int CPL_DLL OSRIsDynamic(OGRSpatialReferenceH);
|
|
545
|
+
int CPL_DLL OSRHasPointMotionOperation(OGRSpatialReferenceH);
|
|
546
|
+
int CPL_DLL OSRIsSameGeogCS(OGRSpatialReferenceH, OGRSpatialReferenceH);
|
|
547
|
+
int CPL_DLL OSRIsSameVertCS(OGRSpatialReferenceH, OGRSpatialReferenceH);
|
|
548
|
+
int CPL_DLL OSRIsSame(OGRSpatialReferenceH, OGRSpatialReferenceH);
|
|
549
|
+
int CPL_DLL OSRIsSameEx(OGRSpatialReferenceH, OGRSpatialReferenceH,
|
|
550
|
+
const char *const *papszOptions);
|
|
551
|
+
|
|
552
|
+
void CPL_DLL OSRSetCoordinateEpoch(OGRSpatialReferenceH hSRS,
|
|
553
|
+
double dfCoordinateEpoch);
|
|
554
|
+
double CPL_DLL OSRGetCoordinateEpoch(OGRSpatialReferenceH hSRS);
|
|
555
|
+
|
|
556
|
+
OGRErr CPL_DLL OSRSetLocalCS(OGRSpatialReferenceH hSRS, const char *pszName);
|
|
557
|
+
OGRErr CPL_DLL OSRSetProjCS(OGRSpatialReferenceH hSRS, const char *pszName);
|
|
558
|
+
OGRErr CPL_DLL OSRSetGeocCS(OGRSpatialReferenceH hSRS, const char *pszName);
|
|
559
|
+
OGRErr CPL_DLL OSRSetWellKnownGeogCS(OGRSpatialReferenceH hSRS,
|
|
560
|
+
const char *pszName);
|
|
561
|
+
OGRErr CPL_DLL CPL_STDCALL OSRSetFromUserInput(OGRSpatialReferenceH hSRS,
|
|
562
|
+
const char *);
|
|
563
|
+
OGRErr CPL_DLL OSRSetFromUserInputEx(OGRSpatialReferenceH hSRS, const char *,
|
|
564
|
+
CSLConstList papszOptions);
|
|
565
|
+
OGRErr CPL_DLL OSRCopyGeogCSFrom(OGRSpatialReferenceH hSRS,
|
|
566
|
+
const OGRSpatialReferenceH hSrcSRS);
|
|
567
|
+
OGRErr CPL_DLL OSRSetTOWGS84(OGRSpatialReferenceH hSRS, double, double, double,
|
|
568
|
+
double, double, double, double);
|
|
569
|
+
OGRErr CPL_DLL OSRGetTOWGS84(OGRSpatialReferenceH hSRS, double *, int);
|
|
570
|
+
OGRErr CPL_DLL OSRAddGuessedTOWGS84(OGRSpatialReferenceH hSRS);
|
|
571
|
+
|
|
572
|
+
OGRErr CPL_DLL OSRSetCompoundCS(OGRSpatialReferenceH hSRS, const char *pszName,
|
|
573
|
+
OGRSpatialReferenceH hHorizSRS,
|
|
574
|
+
OGRSpatialReferenceH hVertSRS);
|
|
575
|
+
OGRErr CPL_DLL OSRPromoteTo3D(OGRSpatialReferenceH hSRS, const char *pszName);
|
|
576
|
+
OGRErr CPL_DLL OSRDemoteTo2D(OGRSpatialReferenceH hSRS, const char *pszName);
|
|
577
|
+
|
|
578
|
+
OGRErr CPL_DLL OSRSetGeogCS(OGRSpatialReferenceH hSRS, const char *pszGeogName,
|
|
579
|
+
const char *pszDatumName,
|
|
580
|
+
const char *pszEllipsoidName, double dfSemiMajor,
|
|
581
|
+
double dfInvFlattening,
|
|
582
|
+
const char *pszPMName /* = NULL */,
|
|
583
|
+
double dfPMOffset /* = 0.0 */,
|
|
584
|
+
const char *pszUnits /* = NULL */,
|
|
585
|
+
double dfConvertToRadians /* = 0.0 */);
|
|
586
|
+
|
|
587
|
+
OGRErr CPL_DLL OSRSetVertCS(OGRSpatialReferenceH hSRS,
|
|
588
|
+
const char *pszVertCSName,
|
|
589
|
+
const char *pszVertDatumName, int nVertDatumType);
|
|
590
|
+
|
|
591
|
+
double CPL_DLL OSRGetSemiMajor(OGRSpatialReferenceH, OGRErr * /* = NULL */);
|
|
592
|
+
double CPL_DLL OSRGetSemiMinor(OGRSpatialReferenceH, OGRErr * /* = NULL */);
|
|
593
|
+
double CPL_DLL OSRGetInvFlattening(OGRSpatialReferenceH, OGRErr * /*=NULL*/);
|
|
594
|
+
|
|
595
|
+
OGRErr CPL_DLL OSRSetAuthority(OGRSpatialReferenceH hSRS,
|
|
596
|
+
const char *pszTargetKey,
|
|
597
|
+
const char *pszAuthority, int nCode);
|
|
598
|
+
const char CPL_DLL *OSRGetAuthorityCode(OGRSpatialReferenceH hSRS,
|
|
599
|
+
const char *pszTargetKey);
|
|
600
|
+
const char CPL_DLL *OSRGetAuthorityName(OGRSpatialReferenceH hSRS,
|
|
601
|
+
const char *pszTargetKey);
|
|
602
|
+
|
|
603
|
+
int CPL_DLL OSRGetAreaOfUse(OGRSpatialReferenceH hSRS,
|
|
604
|
+
double *pdfWestLongitudeDeg,
|
|
605
|
+
double *pdfSouthLatitudeDeg,
|
|
606
|
+
double *pdfEastLongitudeDeg,
|
|
607
|
+
double *pdfNorthLatitudeDeg,
|
|
608
|
+
const char **ppszAreaName);
|
|
609
|
+
|
|
610
|
+
OGRErr CPL_DLL OSRSetProjection(OGRSpatialReferenceH, const char *);
|
|
611
|
+
OGRErr CPL_DLL OSRSetProjParm(OGRSpatialReferenceH, const char *, double);
|
|
612
|
+
double CPL_DLL OSRGetProjParm(OGRSpatialReferenceH hSRS,
|
|
613
|
+
const char *pszParamName,
|
|
614
|
+
double dfDefault /* = 0.0 */,
|
|
615
|
+
OGRErr * /* = NULL */);
|
|
616
|
+
OGRErr CPL_DLL OSRSetNormProjParm(OGRSpatialReferenceH, const char *, double);
|
|
617
|
+
double CPL_DLL OSRGetNormProjParm(OGRSpatialReferenceH hSRS,
|
|
618
|
+
const char *pszParamName,
|
|
619
|
+
double dfDefault /* = 0.0 */,
|
|
620
|
+
OGRErr * /* = NULL */);
|
|
621
|
+
|
|
622
|
+
OGRErr CPL_DLL OSRSetUTM(OGRSpatialReferenceH hSRS, int nZone, int bNorth);
|
|
623
|
+
int CPL_DLL OSRGetUTMZone(OGRSpatialReferenceH hSRS, int *pbNorth);
|
|
624
|
+
OGRErr CPL_DLL OSRSetStatePlane(OGRSpatialReferenceH hSRS, int nZone,
|
|
625
|
+
int bNAD83);
|
|
626
|
+
OGRErr CPL_DLL OSRSetStatePlaneWithUnits(OGRSpatialReferenceH hSRS, int nZone,
|
|
627
|
+
int bNAD83,
|
|
628
|
+
const char *pszOverrideUnitName,
|
|
629
|
+
double dfOverrideUnit);
|
|
630
|
+
OGRErr CPL_DLL OSRAutoIdentifyEPSG(OGRSpatialReferenceH hSRS);
|
|
631
|
+
|
|
632
|
+
OGRSpatialReferenceH CPL_DLL *OSRFindMatches(OGRSpatialReferenceH hSRS,
|
|
633
|
+
char **papszOptions,
|
|
634
|
+
int *pnEntries,
|
|
635
|
+
int **ppanMatchConfidence);
|
|
636
|
+
void CPL_DLL OSRFreeSRSArray(OGRSpatialReferenceH *pahSRS);
|
|
637
|
+
|
|
638
|
+
int CPL_DLL OSREPSGTreatsAsLatLong(OGRSpatialReferenceH hSRS);
|
|
639
|
+
int CPL_DLL OSREPSGTreatsAsNorthingEasting(OGRSpatialReferenceH hSRS);
|
|
640
|
+
const char CPL_DLL *OSRGetAxis(OGRSpatialReferenceH hSRS,
|
|
641
|
+
const char *pszTargetKey, int iAxis,
|
|
642
|
+
OGRAxisOrientation *peOrientation);
|
|
643
|
+
int CPL_DLL OSRGetAxesCount(OGRSpatialReferenceH hSRS);
|
|
644
|
+
OGRErr CPL_DLL OSRSetAxes(OGRSpatialReferenceH hSRS, const char *pszTargetKey,
|
|
645
|
+
const char *pszXAxisName,
|
|
646
|
+
OGRAxisOrientation eXAxisOrientation,
|
|
647
|
+
const char *pszYAxisName,
|
|
648
|
+
OGRAxisOrientation eYAxisOrientation);
|
|
649
|
+
|
|
650
|
+
/** Data axis to CRS axis mapping strategy. */
|
|
651
|
+
typedef enum
|
|
652
|
+
{
|
|
653
|
+
OAMS_TRADITIONAL_GIS_ORDER, /**< Traditional GIS order */
|
|
654
|
+
OAMS_AUTHORITY_COMPLIANT, /**< Compliant with the order mandated by the CRS
|
|
655
|
+
authority */
|
|
656
|
+
OAMS_CUSTOM /**< Custom */
|
|
657
|
+
} OSRAxisMappingStrategy;
|
|
658
|
+
|
|
659
|
+
OSRAxisMappingStrategy CPL_DLL
|
|
660
|
+
OSRGetAxisMappingStrategy(OGRSpatialReferenceH hSRS);
|
|
661
|
+
|
|
662
|
+
void CPL_DLL OSRSetAxisMappingStrategy(OGRSpatialReferenceH hSRS,
|
|
663
|
+
OSRAxisMappingStrategy strategy);
|
|
664
|
+
|
|
665
|
+
const int CPL_DLL *OSRGetDataAxisToSRSAxisMapping(OGRSpatialReferenceH hSRS,
|
|
666
|
+
int *pnCount);
|
|
667
|
+
|
|
668
|
+
OGRErr CPL_DLL OSRSetDataAxisToSRSAxisMapping(OGRSpatialReferenceH hSRS,
|
|
669
|
+
int nMappingSize,
|
|
670
|
+
const int *panMapping);
|
|
671
|
+
|
|
672
|
+
/** Albers Conic Equal Area */
|
|
673
|
+
OGRErr CPL_DLL OSRSetACEA(OGRSpatialReferenceH hSRS, double dfStdP1,
|
|
674
|
+
double dfStdP2, double dfCenterLat,
|
|
675
|
+
double dfCenterLong, double dfFalseEasting,
|
|
676
|
+
double dfFalseNorthing);
|
|
677
|
+
|
|
678
|
+
/** Azimuthal Equidistant */
|
|
679
|
+
OGRErr CPL_DLL OSRSetAE(OGRSpatialReferenceH hSRS, double dfCenterLat,
|
|
680
|
+
double dfCenterLong, double dfFalseEasting,
|
|
681
|
+
double dfFalseNorthing);
|
|
682
|
+
|
|
683
|
+
/** Bonne */
|
|
684
|
+
OGRErr CPL_DLL OSRSetBonne(OGRSpatialReferenceH hSRS, double dfStandardParallel,
|
|
685
|
+
double dfCentralMeridian, double dfFalseEasting,
|
|
686
|
+
double dfFalseNorthing);
|
|
687
|
+
|
|
688
|
+
/** Cylindrical Equal Area */
|
|
689
|
+
OGRErr CPL_DLL OSRSetCEA(OGRSpatialReferenceH hSRS, double dfStdP1,
|
|
690
|
+
double dfCentralMeridian, double dfFalseEasting,
|
|
691
|
+
double dfFalseNorthing);
|
|
692
|
+
|
|
693
|
+
/** Cassini-Soldner */
|
|
694
|
+
OGRErr CPL_DLL OSRSetCS(OGRSpatialReferenceH hSRS, double dfCenterLat,
|
|
695
|
+
double dfCenterLong, double dfFalseEasting,
|
|
696
|
+
double dfFalseNorthing);
|
|
697
|
+
|
|
698
|
+
/** Equidistant Conic */
|
|
699
|
+
OGRErr CPL_DLL OSRSetEC(OGRSpatialReferenceH hSRS, double dfStdP1,
|
|
700
|
+
double dfStdP2, double dfCenterLat, double dfCenterLong,
|
|
701
|
+
double dfFalseEasting, double dfFalseNorthing);
|
|
702
|
+
|
|
703
|
+
/** Eckert I-VI */
|
|
704
|
+
OGRErr CPL_DLL OSRSetEckert(OGRSpatialReferenceH hSRS, int nVariation,
|
|
705
|
+
double dfCentralMeridian, double dfFalseEasting,
|
|
706
|
+
double dfFalseNorthing);
|
|
707
|
+
|
|
708
|
+
/** Eckert IV */
|
|
709
|
+
OGRErr CPL_DLL OSRSetEckertIV(OGRSpatialReferenceH hSRS,
|
|
710
|
+
double dfCentralMeridian, double dfFalseEasting,
|
|
711
|
+
double dfFalseNorthing);
|
|
712
|
+
|
|
713
|
+
/** Eckert VI */
|
|
714
|
+
OGRErr CPL_DLL OSRSetEckertVI(OGRSpatialReferenceH hSRS,
|
|
715
|
+
double dfCentralMeridian, double dfFalseEasting,
|
|
716
|
+
double dfFalseNorthing);
|
|
717
|
+
|
|
718
|
+
/** Equirectangular */
|
|
719
|
+
OGRErr CPL_DLL OSRSetEquirectangular(OGRSpatialReferenceH hSRS,
|
|
720
|
+
double dfCenterLat, double dfCenterLong,
|
|
721
|
+
double dfFalseEasting,
|
|
722
|
+
double dfFalseNorthing);
|
|
723
|
+
|
|
724
|
+
/** Equirectangular generalized form */
|
|
725
|
+
OGRErr CPL_DLL OSRSetEquirectangular2(OGRSpatialReferenceH hSRS,
|
|
726
|
+
double dfCenterLat, double dfCenterLong,
|
|
727
|
+
double dfPseudoStdParallel1,
|
|
728
|
+
double dfFalseEasting,
|
|
729
|
+
double dfFalseNorthing);
|
|
730
|
+
|
|
731
|
+
/** Gall Stereograpic */
|
|
732
|
+
OGRErr CPL_DLL OSRSetGS(OGRSpatialReferenceH hSRS, double dfCentralMeridian,
|
|
733
|
+
double dfFalseEasting, double dfFalseNorthing);
|
|
734
|
+
|
|
735
|
+
/** Goode Homolosine */
|
|
736
|
+
OGRErr CPL_DLL OSRSetGH(OGRSpatialReferenceH hSRS, double dfCentralMeridian,
|
|
737
|
+
double dfFalseEasting, double dfFalseNorthing);
|
|
738
|
+
|
|
739
|
+
/** Interrupted Goode Homolosine */
|
|
740
|
+
OGRErr CPL_DLL OSRSetIGH(OGRSpatialReferenceH hSRS);
|
|
741
|
+
|
|
742
|
+
/** GEOS - Geostationary Satellite View */
|
|
743
|
+
OGRErr CPL_DLL OSRSetGEOS(OGRSpatialReferenceH hSRS, double dfCentralMeridian,
|
|
744
|
+
double dfSatelliteHeight, double dfFalseEasting,
|
|
745
|
+
double dfFalseNorthing);
|
|
746
|
+
|
|
747
|
+
/** Gauss Schreiber Transverse Mercator */
|
|
748
|
+
OGRErr CPL_DLL OSRSetGaussSchreiberTMercator(
|
|
749
|
+
OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
|
|
750
|
+
double dfScale, double dfFalseEasting, double dfFalseNorthing);
|
|
751
|
+
/** Gnomonic */
|
|
752
|
+
OGRErr CPL_DLL OSRSetGnomonic(OGRSpatialReferenceH hSRS, double dfCenterLat,
|
|
753
|
+
double dfCenterLong, double dfFalseEasting,
|
|
754
|
+
double dfFalseNorthing);
|
|
755
|
+
|
|
756
|
+
#ifdef undef
|
|
757
|
+
/** Oblique Mercator (aka HOM (variant B) */
|
|
758
|
+
OGRErr CPL_DLL OSRSetOM(OGRSpatialReferenceH hSRS, double dfCenterLat,
|
|
759
|
+
double dfCenterLong, double dfAzimuth,
|
|
760
|
+
double dfRectToSkew, double dfScale,
|
|
761
|
+
double dfFalseEasting, double dfFalseNorthing);
|
|
762
|
+
#endif
|
|
763
|
+
|
|
764
|
+
/** Hotine Oblique Mercator using azimuth angle */
|
|
765
|
+
OGRErr CPL_DLL OSRSetHOM(OGRSpatialReferenceH hSRS, double dfCenterLat,
|
|
766
|
+
double dfCenterLong, double dfAzimuth,
|
|
767
|
+
double dfRectToSkew, double dfScale,
|
|
768
|
+
double dfFalseEasting, double dfFalseNorthing);
|
|
769
|
+
|
|
770
|
+
OGRErr CPL_DLL OSRSetHOMAC(OGRSpatialReferenceH hSRS, double dfCenterLat,
|
|
771
|
+
double dfCenterLong, double dfAzimuth,
|
|
772
|
+
double dfRectToSkew, double dfScale,
|
|
773
|
+
double dfFalseEasting, double dfFalseNorthing);
|
|
774
|
+
|
|
775
|
+
/** Hotine Oblique Mercator using two points on centerline */
|
|
776
|
+
OGRErr CPL_DLL OSRSetHOM2PNO(OGRSpatialReferenceH hSRS, double dfCenterLat,
|
|
777
|
+
double dfLat1, double dfLong1, double dfLat2,
|
|
778
|
+
double dfLong2, double dfScale,
|
|
779
|
+
double dfFalseEasting, double dfFalseNorthing);
|
|
780
|
+
|
|
781
|
+
/** International Map of the World Polyconic */
|
|
782
|
+
OGRErr CPL_DLL OSRSetIWMPolyconic(OGRSpatialReferenceH hSRS, double dfLat1,
|
|
783
|
+
double dfLat2, double dfCenterLong,
|
|
784
|
+
double dfFalseEasting,
|
|
785
|
+
double dfFalseNorthing);
|
|
786
|
+
|
|
787
|
+
/** Krovak Oblique Conic Conformal */
|
|
788
|
+
OGRErr CPL_DLL OSRSetKrovak(OGRSpatialReferenceH hSRS, double dfCenterLat,
|
|
789
|
+
double dfCenterLong, double dfAzimuth,
|
|
790
|
+
double dfPseudoStdParallelLat, double dfScale,
|
|
791
|
+
double dfFalseEasting, double dfFalseNorthing);
|
|
792
|
+
|
|
793
|
+
/** Lambert Azimuthal Equal-Area */
|
|
794
|
+
OGRErr CPL_DLL OSRSetLAEA(OGRSpatialReferenceH hSRS, double dfCenterLat,
|
|
795
|
+
double dfCenterLong, double dfFalseEasting,
|
|
796
|
+
double dfFalseNorthing);
|
|
797
|
+
|
|
798
|
+
/** Lambert Conformal Conic */
|
|
799
|
+
OGRErr CPL_DLL OSRSetLCC(OGRSpatialReferenceH hSRS, double dfStdP1,
|
|
800
|
+
double dfStdP2, double dfCenterLat,
|
|
801
|
+
double dfCenterLong, double dfFalseEasting,
|
|
802
|
+
double dfFalseNorthing);
|
|
803
|
+
|
|
804
|
+
/** Lambert Conformal Conic 1SP */
|
|
805
|
+
OGRErr CPL_DLL OSRSetLCC1SP(OGRSpatialReferenceH hSRS, double dfCenterLat,
|
|
806
|
+
double dfCenterLong, double dfScale,
|
|
807
|
+
double dfFalseEasting, double dfFalseNorthing);
|
|
808
|
+
|
|
809
|
+
/** Lambert Conformal Conic (Belgium) */
|
|
810
|
+
OGRErr CPL_DLL OSRSetLCCB(OGRSpatialReferenceH hSRS, double dfStdP1,
|
|
811
|
+
double dfStdP2, double dfCenterLat,
|
|
812
|
+
double dfCenterLong, double dfFalseEasting,
|
|
813
|
+
double dfFalseNorthing);
|
|
814
|
+
|
|
815
|
+
/** Miller Cylindrical */
|
|
816
|
+
OGRErr CPL_DLL OSRSetMC(OGRSpatialReferenceH hSRS, double dfCenterLat,
|
|
817
|
+
double dfCenterLong, double dfFalseEasting,
|
|
818
|
+
double dfFalseNorthing);
|
|
819
|
+
|
|
820
|
+
/** Mercator */
|
|
821
|
+
OGRErr CPL_DLL OSRSetMercator(OGRSpatialReferenceH hSRS, double dfCenterLat,
|
|
822
|
+
double dfCenterLong, double dfScale,
|
|
823
|
+
double dfFalseEasting, double dfFalseNorthing);
|
|
824
|
+
|
|
825
|
+
/** Mercator 2SP */
|
|
826
|
+
OGRErr CPL_DLL OSRSetMercator2SP(OGRSpatialReferenceH hSRS, double dfStdP1,
|
|
827
|
+
double dfCenterLat, double dfCenterLong,
|
|
828
|
+
double dfFalseEasting, double dfFalseNorthing);
|
|
829
|
+
|
|
830
|
+
/** Mollweide */
|
|
831
|
+
OGRErr CPL_DLL OSRSetMollweide(OGRSpatialReferenceH hSRS,
|
|
832
|
+
double dfCentralMeridian, double dfFalseEasting,
|
|
833
|
+
double dfFalseNorthing);
|
|
834
|
+
|
|
835
|
+
/** New Zealand Map Grid */
|
|
836
|
+
OGRErr CPL_DLL OSRSetNZMG(OGRSpatialReferenceH hSRS, double dfCenterLat,
|
|
837
|
+
double dfCenterLong, double dfFalseEasting,
|
|
838
|
+
double dfFalseNorthing);
|
|
839
|
+
|
|
840
|
+
/** Oblique Stereographic */
|
|
841
|
+
OGRErr CPL_DLL OSRSetOS(OGRSpatialReferenceH hSRS, double dfOriginLat,
|
|
842
|
+
double dfCMeridian, double dfScale,
|
|
843
|
+
double dfFalseEasting, double dfFalseNorthing);
|
|
844
|
+
|
|
845
|
+
/** Orthographic */
|
|
846
|
+
OGRErr CPL_DLL OSRSetOrthographic(OGRSpatialReferenceH hSRS, double dfCenterLat,
|
|
847
|
+
double dfCenterLong, double dfFalseEasting,
|
|
848
|
+
double dfFalseNorthing);
|
|
849
|
+
|
|
850
|
+
/** Polyconic */
|
|
851
|
+
OGRErr CPL_DLL OSRSetPolyconic(OGRSpatialReferenceH hSRS, double dfCenterLat,
|
|
852
|
+
double dfCenterLong, double dfFalseEasting,
|
|
853
|
+
double dfFalseNorthing);
|
|
854
|
+
|
|
855
|
+
/** Polar Stereographic */
|
|
856
|
+
OGRErr CPL_DLL OSRSetPS(OGRSpatialReferenceH hSRS, double dfCenterLat,
|
|
857
|
+
double dfCenterLong, double dfScale,
|
|
858
|
+
double dfFalseEasting, double dfFalseNorthing);
|
|
859
|
+
|
|
860
|
+
/** Robinson */
|
|
861
|
+
OGRErr CPL_DLL OSRSetRobinson(OGRSpatialReferenceH hSRS, double dfCenterLong,
|
|
862
|
+
double dfFalseEasting, double dfFalseNorthing);
|
|
863
|
+
|
|
864
|
+
/** Sinusoidal */
|
|
865
|
+
OGRErr CPL_DLL OSRSetSinusoidal(OGRSpatialReferenceH hSRS, double dfCenterLong,
|
|
866
|
+
double dfFalseEasting, double dfFalseNorthing);
|
|
867
|
+
|
|
868
|
+
/** Stereographic */
|
|
869
|
+
OGRErr CPL_DLL OSRSetStereographic(OGRSpatialReferenceH hSRS,
|
|
870
|
+
double dfCenterLat, double dfCenterLong,
|
|
871
|
+
double dfScale, double dfFalseEasting,
|
|
872
|
+
double dfFalseNorthing);
|
|
873
|
+
|
|
874
|
+
/** Swiss Oblique Cylindrical */
|
|
875
|
+
OGRErr CPL_DLL OSRSetSOC(OGRSpatialReferenceH hSRS, double dfLatitudeOfOrigin,
|
|
876
|
+
double dfCentralMeridian, double dfFalseEasting,
|
|
877
|
+
double dfFalseNorthing);
|
|
878
|
+
|
|
879
|
+
/** Transverse Mercator
|
|
880
|
+
*
|
|
881
|
+
* Special processing available for Transverse Mercator with GDAL >= 1.10 and
|
|
882
|
+
* PROJ >= 4.8 : see OGRSpatialReference::exportToProj4().
|
|
883
|
+
*/
|
|
884
|
+
|
|
885
|
+
OGRErr CPL_DLL OSRSetTM(OGRSpatialReferenceH hSRS, double dfCenterLat,
|
|
886
|
+
double dfCenterLong, double dfScale,
|
|
887
|
+
double dfFalseEasting, double dfFalseNorthing);
|
|
888
|
+
|
|
889
|
+
/** Transverse Mercator variant */
|
|
890
|
+
OGRErr CPL_DLL OSRSetTMVariant(OGRSpatialReferenceH hSRS,
|
|
891
|
+
const char *pszVariantName, double dfCenterLat,
|
|
892
|
+
double dfCenterLong, double dfScale,
|
|
893
|
+
double dfFalseEasting, double dfFalseNorthing);
|
|
894
|
+
|
|
895
|
+
/** Tunesia Mining Grid */
|
|
896
|
+
OGRErr CPL_DLL OSRSetTMG(OGRSpatialReferenceH hSRS, double dfCenterLat,
|
|
897
|
+
double dfCenterLong, double dfFalseEasting,
|
|
898
|
+
double dfFalseNorthing);
|
|
899
|
+
|
|
900
|
+
/** Transverse Mercator (South Oriented) */
|
|
901
|
+
OGRErr CPL_DLL OSRSetTMSO(OGRSpatialReferenceH hSRS, double dfCenterLat,
|
|
902
|
+
double dfCenterLong, double dfScale,
|
|
903
|
+
double dfFalseEasting, double dfFalseNorthing);
|
|
904
|
+
|
|
905
|
+
/** TPED (Two Point Equi Distant) */
|
|
906
|
+
OGRErr CPL_DLL OSRSetTPED(OGRSpatialReferenceH hSRS, double dfLat1,
|
|
907
|
+
double dfLong1, double dfLat2, double dfLong2,
|
|
908
|
+
double dfFalseEasting, double dfFalseNorthing);
|
|
909
|
+
|
|
910
|
+
/** VanDerGrinten */
|
|
911
|
+
OGRErr CPL_DLL OSRSetVDG(OGRSpatialReferenceH hSRS, double dfCenterLong,
|
|
912
|
+
double dfFalseEasting, double dfFalseNorthing);
|
|
913
|
+
|
|
914
|
+
/** Wagner I -- VII */
|
|
915
|
+
OGRErr CPL_DLL OSRSetWagner(OGRSpatialReferenceH hSRS, int nVariation,
|
|
916
|
+
double dfCenterLat, double dfFalseEasting,
|
|
917
|
+
double dfFalseNorthing);
|
|
918
|
+
|
|
919
|
+
/** Quadrilateralized Spherical Cube */
|
|
920
|
+
OGRErr CPL_DLL OSRSetQSC(OGRSpatialReferenceH hSRS, double dfCenterLat,
|
|
921
|
+
double dfCenterLong);
|
|
922
|
+
|
|
923
|
+
/** Spherical, Cross-track, Height */
|
|
924
|
+
OGRErr CPL_DLL OSRSetSCH(OGRSpatialReferenceH hSRS, double dfPegLat,
|
|
925
|
+
double dfPegLong, double dfPegHeading,
|
|
926
|
+
double dfPegHgt);
|
|
927
|
+
|
|
928
|
+
/** Vertical Perspective / Near-sided Perspective */
|
|
929
|
+
OGRErr CPL_DLL OSRSetVerticalPerspective(
|
|
930
|
+
OGRSpatialReferenceH hSRS, double dfTopoOriginLat, double dfTopoOriginLon,
|
|
931
|
+
double dfTopoOriginHeight, double dfViewPointHeight, double dfFalseEasting,
|
|
932
|
+
double dfFalseNorthing);
|
|
933
|
+
|
|
934
|
+
double CPL_DLL OSRCalcInvFlattening(double dfSemiMajor, double dfSemiMinor);
|
|
935
|
+
double CPL_DLL OSRCalcSemiMinorFromInvFlattening(double dfSemiMajor,
|
|
936
|
+
double dfInvFlattening);
|
|
937
|
+
|
|
938
|
+
void CPL_DLL OSRCleanup(void);
|
|
939
|
+
|
|
940
|
+
/** \brief Type of Coordinate Reference System (CRS). */
|
|
941
|
+
typedef enum
|
|
942
|
+
{
|
|
943
|
+
/** Geographic 2D CRS */
|
|
944
|
+
OSR_CRS_TYPE_GEOGRAPHIC_2D,
|
|
945
|
+
/** Geographic 3D CRS */
|
|
946
|
+
OSR_CRS_TYPE_GEOGRAPHIC_3D,
|
|
947
|
+
/** Geocentric CRS */
|
|
948
|
+
OSR_CRS_TYPE_GEOCENTRIC,
|
|
949
|
+
/** Projected CRS */
|
|
950
|
+
OSR_CRS_TYPE_PROJECTED,
|
|
951
|
+
/** Vertical CRS */
|
|
952
|
+
OSR_CRS_TYPE_VERTICAL,
|
|
953
|
+
/** Compound CRS */
|
|
954
|
+
OSR_CRS_TYPE_COMPOUND,
|
|
955
|
+
/** Other */
|
|
956
|
+
OSR_CRS_TYPE_OTHER,
|
|
957
|
+
} OSRCRSType;
|
|
958
|
+
|
|
959
|
+
/** \brief Structure given overall description of a CRS.
|
|
960
|
+
*
|
|
961
|
+
* This structure may grow over time, and should not be directly allocated by
|
|
962
|
+
* client code.
|
|
963
|
+
*/
|
|
964
|
+
typedef struct
|
|
965
|
+
{
|
|
966
|
+
/** Authority name. */
|
|
967
|
+
char *pszAuthName;
|
|
968
|
+
/** Object code. */
|
|
969
|
+
char *pszCode;
|
|
970
|
+
/** Object name. */
|
|
971
|
+
char *pszName;
|
|
972
|
+
/** Object type. */
|
|
973
|
+
OSRCRSType eType;
|
|
974
|
+
/** Whether the object is deprecated */
|
|
975
|
+
int bDeprecated;
|
|
976
|
+
/** Whereas the west_lon_degree, south_lat_degree, east_lon_degree and
|
|
977
|
+
* north_lat_degree fields are valid. */
|
|
978
|
+
int bBboxValid;
|
|
979
|
+
/** Western-most longitude of the area of use, in degrees. */
|
|
980
|
+
double dfWestLongitudeDeg;
|
|
981
|
+
/** Southern-most latitude of the area of use, in degrees. */
|
|
982
|
+
double dfSouthLatitudeDeg;
|
|
983
|
+
/** Eastern-most longitude of the area of use, in degrees. */
|
|
984
|
+
double dfEastLongitudeDeg;
|
|
985
|
+
/** Northern-most latitude of the area of use, in degrees. */
|
|
986
|
+
double dfNorthLatitudeDeg;
|
|
987
|
+
/** Name of the area of use. */
|
|
988
|
+
char *pszAreaName;
|
|
989
|
+
/** Name of the projection method for a projected CRS. Might be NULL even
|
|
990
|
+
*for projected CRS in some cases. */
|
|
991
|
+
char *pszProjectionMethod;
|
|
992
|
+
} OSRCRSInfo;
|
|
993
|
+
|
|
994
|
+
/** \brief Structure to describe optional parameters to
|
|
995
|
+
* OSRGetCRSInfoListFromDatabase()
|
|
996
|
+
*
|
|
997
|
+
* Unused for now.
|
|
998
|
+
*/
|
|
999
|
+
typedef struct OSRCRSListParameters OSRCRSListParameters;
|
|
1000
|
+
|
|
1001
|
+
OSRCRSInfo CPL_DLL **
|
|
1002
|
+
OSRGetCRSInfoListFromDatabase(const char *pszAuthName,
|
|
1003
|
+
const OSRCRSListParameters *params,
|
|
1004
|
+
int *pnOutResultCount);
|
|
1005
|
+
|
|
1006
|
+
void CPL_DLL OSRDestroyCRSInfoList(OSRCRSInfo **list);
|
|
1007
|
+
|
|
1008
|
+
char CPL_DLL **OSRGetAuthorityListFromDatabase(void);
|
|
1009
|
+
|
|
1010
|
+
/* -------------------------------------------------------------------- */
|
|
1011
|
+
/* OGRCoordinateTransform C API. */
|
|
1012
|
+
/* -------------------------------------------------------------------- */
|
|
1013
|
+
OGRCoordinateTransformationH CPL_DLL CPL_STDCALL OCTNewCoordinateTransformation(
|
|
1014
|
+
OGRSpatialReferenceH hSourceSRS, OGRSpatialReferenceH hTargetSRS);
|
|
1015
|
+
|
|
1016
|
+
/** Coordinate transformation options. */
|
|
1017
|
+
typedef struct OGRCoordinateTransformationOptions
|
|
1018
|
+
*OGRCoordinateTransformationOptionsH;
|
|
1019
|
+
|
|
1020
|
+
OGRCoordinateTransformationOptionsH CPL_DLL
|
|
1021
|
+
OCTNewCoordinateTransformationOptions(void);
|
|
1022
|
+
|
|
1023
|
+
int CPL_DLL OCTCoordinateTransformationOptionsSetOperation(
|
|
1024
|
+
OGRCoordinateTransformationOptionsH hOptions, const char *pszCO,
|
|
1025
|
+
int bReverseCO);
|
|
1026
|
+
|
|
1027
|
+
int CPL_DLL OCTCoordinateTransformationOptionsSetAreaOfInterest(
|
|
1028
|
+
OGRCoordinateTransformationOptionsH hOptions, double dfWestLongitudeDeg,
|
|
1029
|
+
double dfSouthLatitudeDeg, double dfEastLongitudeDeg,
|
|
1030
|
+
double dfNorthLatitudeDeg);
|
|
1031
|
+
|
|
1032
|
+
int CPL_DLL OCTCoordinateTransformationOptionsSetDesiredAccuracy(
|
|
1033
|
+
OGRCoordinateTransformationOptionsH hOptions, double dfAccuracy);
|
|
1034
|
+
|
|
1035
|
+
int CPL_DLL OCTCoordinateTransformationOptionsSetBallparkAllowed(
|
|
1036
|
+
OGRCoordinateTransformationOptionsH hOptions, int bAllowBallpark);
|
|
1037
|
+
|
|
1038
|
+
int CPL_DLL OCTCoordinateTransformationOptionsSetOnlyBest(
|
|
1039
|
+
OGRCoordinateTransformationOptionsH hOptions, bool bOnlyBest);
|
|
1040
|
+
|
|
1041
|
+
void CPL_DLL OCTDestroyCoordinateTransformationOptions(
|
|
1042
|
+
OGRCoordinateTransformationOptionsH);
|
|
1043
|
+
|
|
1044
|
+
OGRCoordinateTransformationH CPL_DLL OCTNewCoordinateTransformationEx(
|
|
1045
|
+
OGRSpatialReferenceH hSourceSRS, OGRSpatialReferenceH hTargetSRS,
|
|
1046
|
+
OGRCoordinateTransformationOptionsH hOptions);
|
|
1047
|
+
|
|
1048
|
+
OGRCoordinateTransformationH CPL_DLL
|
|
1049
|
+
OCTClone(OGRCoordinateTransformationH hTransform);
|
|
1050
|
+
OGRSpatialReferenceH CPL_DLL
|
|
1051
|
+
OCTGetSourceCS(OGRCoordinateTransformationH hTransform);
|
|
1052
|
+
OGRSpatialReferenceH CPL_DLL
|
|
1053
|
+
OCTGetTargetCS(OGRCoordinateTransformationH hTransform);
|
|
1054
|
+
OGRCoordinateTransformationH CPL_DLL
|
|
1055
|
+
OCTGetInverse(OGRCoordinateTransformationH hTransform);
|
|
1056
|
+
|
|
1057
|
+
void CPL_DLL CPL_STDCALL
|
|
1058
|
+
OCTDestroyCoordinateTransformation(OGRCoordinateTransformationH);
|
|
1059
|
+
|
|
1060
|
+
int CPL_DLL CPL_STDCALL OCTTransform(OGRCoordinateTransformationH hCT,
|
|
1061
|
+
int nCount, double *x, double *y,
|
|
1062
|
+
double *z);
|
|
1063
|
+
|
|
1064
|
+
int CPL_DLL CPL_STDCALL OCTTransformEx(OGRCoordinateTransformationH hCT,
|
|
1065
|
+
int nCount, double *x, double *y,
|
|
1066
|
+
double *z, int *pabSuccess);
|
|
1067
|
+
|
|
1068
|
+
int CPL_DLL OCTTransform4D(OGRCoordinateTransformationH hCT, int nCount,
|
|
1069
|
+
double *x, double *y, double *z, double *t,
|
|
1070
|
+
int *pabSuccess);
|
|
1071
|
+
|
|
1072
|
+
int CPL_DLL OCTTransform4DWithErrorCodes(OGRCoordinateTransformationH hCT,
|
|
1073
|
+
int nCount, double *x, double *y,
|
|
1074
|
+
double *z, double *t,
|
|
1075
|
+
int *panErrorCodes);
|
|
1076
|
+
|
|
1077
|
+
int CPL_DLL CPL_STDCALL OCTTransformBounds(OGRCoordinateTransformationH hCT,
|
|
1078
|
+
const double xmin, const double ymin,
|
|
1079
|
+
const double xmax, const double ymax,
|
|
1080
|
+
double *out_xmin, double *out_ymin,
|
|
1081
|
+
double *out_xmax, double *out_ymax,
|
|
1082
|
+
const int densify_pts);
|
|
1083
|
+
|
|
1084
|
+
CPL_C_END
|
|
1085
|
+
|
|
1086
|
+
#endif /* ndef SWIG */
|
|
1087
|
+
|
|
1088
|
+
#endif /* ndef OGR_SRS_API_H_INCLUDED */
|