libspatialite/5.1.0

SpatiaLite is an open source library intended to extend the SQLite core to support fully fledged Spatial SQL capabilities.
Recipe info
GPL-2.0-or-later, MPL-1.1, LGPL-2.1-or-later
2024-01-20

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
libspatialite/5.1.0

Using libspatialite

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]
libspatialite/5.1.0
[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("libspatialite/5.1.0")

    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): libspatialite
  • CMake target name(s): libspatialite::libspatialite
  • pkg-config file name(s): spatialite.pc

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

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

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

#include "spatialite.h"
#include "spatialite/control_points.h"
#include "spatialite/debug.h"
#include "spatialite/gaia_network.h"
#include "spatialite/gaia_topology.h"
#include "spatialite/gaiaaux.h"
#include "spatialite/gaiaconfig-msvc.h"
#include "spatialite/gaiaconfig-msvc.h.in"
#include "spatialite/gaiaconfig.h"
#include "spatialite/gaiaconfig.h.in"
#include "spatialite/gaiaexif.h"
#include "spatialite/gaiageo.h"
#include "spatialite/gaiamatrix.h"
#include "spatialite/geojson.h"
#include "spatialite/geopackage.h"
#include "spatialite/gg_advanced.h"
#include "spatialite/gg_const.h"
#include "spatialite/gg_core.h"
#include "spatialite/gg_dxf.h"
#include "spatialite/gg_dynamic.h"
#include "spatialite/gg_formats.h"
#include "spatialite/gg_mbr.h"
#include "spatialite/gg_sequence.h"
#include "spatialite/gg_structs.h"
#include "spatialite/gg_wfs.h"
#include "spatialite/gg_xml.h"
#include "spatialite/spatialite_ext.h"
#include "spatialite/sqlite.h"
#include "spatialite/stored_procedures.h"