bark
bark Documentation

Build Status Build Status Latest GitHub Release

Introduction

Bark is a geospatial, cross-platform, C++17, header only library.

Submodules:

  • db: reading and writing of raster and vector geospatial data
  • geometry: convertion between Boost.Geometry, WKB and WKT
  • proj: WKB reprojection from one coordinate reference system to another
  • qt: visualization of raster and vector geospatial data

Documentation

How to run example/nanogis

download

ubuntu 20.04

sudo add-apt-repository -y ppa:beineri/opt-qt-5.15.2-focal
sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo dpkg -i ./nanogis.ubuntu.2004.deb
sudo apt-get install -f
nanogis

windows 10

extract

./nanogis/vc_redist.x64.exe
./nanogis/nanogis.exe

How to set up the development environment

ubuntu 20.04

sudo add-apt-repository -y ppa:beineri/opt-qt-5.15.2-focal
sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get -y install g++
sudo apt-get -y install git
sudo apt-get -y install libboost-dev
sudo apt-get -y install libgdal-dev
sudo apt-get -y install libgl1-mesa-dev
sudo apt-get -y install make
sudo apt-get -y install qt515base
sudo apt-get -y install qt515imageformats
source /opt/qt515/bin/qt515-env.sh
wget https://github.com/catchorg/Catch2/releases/download/v2.13.3/catch.hpp
git clone --depth=1 https://github.com/storm-ptr/bark.git

windows 10

  • OSGeo4W (PowerShell)
    mkdir C:\OSGeo4W64
    Invoke-WebRequest -Uri http://download.osgeo.org/osgeo4w/osgeo4w-setup-x86_64.exe -OutFile C:\OSGeo4W64\osgeo4w-setup-x86_64.exe
    C:\OSGeo4W64\osgeo4w-setup-x86_64.exe -q -k -r -A -s http://download.osgeo.org/osgeo4w/ -a x86_64 -P curl,gdal,libmysql,libmysql-devel,libpq,proj,spatialite,sqlite3 -R C:\OSGeo4W64
  • set environment variable GDAL_DATA to C:\OSGeo4W64\share\gdal
  • set environment variable PROJ_LIB to C:\OSGeo4W64\share\proj
  • set environment variable INCLUDE to C:\OSGeo4W64\include;C:\OSGeo4W64\include\libpq;C:\OSGeo4W64\include\mysql
  • set environment variable LIB to C:\OSGeo4W64\lib
  • set environment variable PATH to C:\OSGeo4W64\bin
  • copy boost headers to C:\OSGeo4W64\include\boost
  • Catch2 library (PowerShell)
    Invoke-WebRequest -Uri https://github.com/catchorg/Catch2/releases/download/v2.13.3/catch.hpp -OutFile C:\OSGeo4W64\include\catch.hpp
  • install Microsoft Visual C++ (Community)
  • install Qt libraries and creator (Open Source)
  • install git
  • install Bark library
    git clone --depth=1 https://github.com/storm-ptr/bark.git C:\OSGeo4W64\include\bark

andre.nosp@m.w.na.nosp@m.plavk.nosp@m.ov@g.nosp@m.mail..nosp@m.com