Skip to content

Geospatial infrastructure Library.  raster / vector operations - raster tiling - color maps - dictionary types (point, coordinate, cell) - ...

License

Notifications You must be signed in to change notification settings

VITObelgium/infra-rs

Repository files navigation

Nix build Vcpkg bBuild Docs

This repo contains the shared crates for building geo applications

Project integration

Add this repository as a git submodule into your project

When the gdal feature is required, vcpkg needs to be configured

In your main Cargo.toml specify the vcpkg version you wish to use

[package.metadata.vcpkg]
git = "https://github.com/microsoft/vcpkg"
rev = "10b7a17"

Optionally also select the vcpkg triplets you wish to use for your targets

[package.metadata.vcpkg.target]
x86_64-pc-windows-msvc = { triplet = "x64-windows-static" }

Add infra-rs crates as a local dependency by pointing to the path of the subcrates in the submodule and specify the crate features.

[dependencies]
inf        = { path = "infra-rs/crates/inf", features = ["gdal-static", "serde"] }
raster     = { path = "infra-rs/crates/raster" }

It is recommended to also add the crates to your workspace when you expect to make changes in the crates.

[workspace]
members = ["infra-rs/crates/inf", "infra-rs/crates/vector"]

Setup development tools

A nix devenv configuration is provided for setting up a reproducible development environment. This is the recommended way to setup the development environment on Linux and MacOS. Use direnv to automatically load the nix environment when entering the repository or manuelly enter a nix shell with devenv shell.

On Windows or if you don't want to use nix, you can use the mise config to setup the development environment. Check https://mise.jdx.dev/getting-started.html for installing mise.

When using mise you can compile the C++ dependencies with: just bootstrap

Building the code and run tests

just build just test_all

About

Geospatial infrastructure Library.  raster / vector operations - raster tiling - color maps - dictionary types (point, coordinate, cell) - ...

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •