Spatial C++ Library
Generic Multi-Dimensional Containers and Spatial Operations
Installing the library

Spatial is a header only library, and all you have to do is to copy these headers in the appropriate header directory for your project.

Generally, you must copy the contents of the src folder in a folder named spatial on your computer.

If you choose to use the library for only one project, the license authorizes you to copy its files directly in your project as long as you respect the copyrights. See the Boost license.

I have no experience with Borland or Macs, and so any input is welcomed.

Windows and Visual Studio

If you are using the library for multiple shared projects and you wish to upgrade to subsequent versions of the library, you can copy the src folder in any directory that you find suitable, rename it to spatial, and add that directory in the Additional Include Directories of the General, C/C++ properties of your project. You can now use the library for your project by including in the source file:

#include "spatial/point_multiset.hpp"

If you wish to install the library in one of the default include directories of Visual Studio, then copy the content of the src folder into:

$(VCInstallDir)include\

Which is generally equivalent to:

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include

Rename the folder to spatial and you're good to go. You can now use the library for your project by including in the source file:

#include <spatial/point_multiset.hpp>

Linux with autotools/cmake

If you are using the library for several project and youe want the library to reside in a different directory from your projects, such as "/usr/local/include/", just copy the src folder of the library in there and rename it to spatial. If you copy it in other directories, do not forget to configure your "configure.ac" or "CMakeList.txt" file to add "-I/path/to/your/include/dir" to the CPPFLAGS variable of autoconf or modify the "include_directories()" directive of cmake.

You can now use the library for your project by including in the source file, for example:

#include <spatial/point_multiset.hpp>

Other platforms

Copy the directory src and its content to the default C++ header location for your compilation environement and rename it spatial. You can now use the library for your project by including in the source file:

#include <spatial/point_multiset.hpp>

Or copy the directory src and its content to your own project, rename it to spatial and use the library by including in the source file:

#include "spatial/point_multiset.hpp"