gdal/3.8.3

GDAL is an open source X/MIT licensed translator library for raster and vector geospatial data formats.
Recipe info
2024-02-12

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
gdal/3.8.3

Using gdal

Note

If you are a new Conan user, we recommend reading the how to consume packages tutorial.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
gdal/3.8.3
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("gdal/3.8.3")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): GDAL
  • CMake target name(s): GDAL::GDAL
  • pkg-config file name(s): gdal.pc

A simple use case using the CMake file name and the global target:

# ...
find_package(GDAL REQUIRED)
# ...
target_link_libraries(YOUR_TARGET GDAL::GDAL)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the gdal homepage listed above:

#include "cpl_atomic_ops.h"
#include "cpl_auto_close.h"
#include "cpl_compressor.h"
#include "cpl_config.h"
#include "cpl_config_extras.h"
#include "cpl_conv.h"
#include "cpl_csv.h"
#include "cpl_error.h"
#include "cpl_hash_set.h"
#include "cpl_http.h"
#include "cpl_json.h"
#include "cpl_list.h"
#include "cpl_minixml.h"
#include "cpl_minizip_ioapi.h"
#include "cpl_minizip_unzip.h"
#include "cpl_minizip_zip.h"
#include "cpl_multiproc.h"
#include "cpl_port.h"
#include "cpl_progress.h"
#include "cpl_quad_tree.h"
#include "cpl_spawn.h"
#include "cpl_string.h"
#include "cpl_time.h"
#include "cpl_virtualmem.h"
#include "cpl_vsi.h"
#include "cpl_vsi_error.h"
#include "cpl_vsi_virtual.h"
#include "cplkeywordparser.h"
#include "gdal.h"
#include "gdal_alg.h"
#include "gdal_alg_priv.h"
#include "gdal_csv.h"
#include "gdal_frmts.h"
#include "gdal_mdreader.h"
#include "gdal_pam.h"
#include "gdal_priv.h"
#include "gdal_proxy.h"
#include "gdal_rat.h"
#include "gdal_simplesurf.h"
#include "gdal_utils.h"
#include "gdal_version.h"
#include "gdal_vrt.h"
#include "gdalcachedpixelaccessor.h"
#include "gdalgeorefpamdataset.h"
#include "gdalgrid.h"
#include "gdalgrid_priv.h"
#include "gdaljp2abstractdataset.h"
#include "gdaljp2metadata.h"
#include "gdalpansharpen.h"
#include "gdalsubdatasetinfo.h"
#include "gdalwarper.h"
#include "gnm.h"
#include "gnm_api.h"
#include "gnmgraph.h"
#include "memdataset.h"
#include "ogr_api.h"
#include "ogr_core.h"
#include "ogr_feature.h"
#include "ogr_featurestyle.h"
#include "ogr_geocoding.h"
#include "ogr_geometry.h"
#include "ogr_p.h"
#include "ogr_recordbatch.h"
#include "ogr_spatialref.h"
#include "ogr_srs_api.h"
#include "ogr_swq.h"
#include "ogrsf_frmts.h"
#include "rawdataset.h"
#include "vrtdataset.h"