chrberger / WGS84toCartesian

A simple header-only, single-file library to handle WGS84 coordinate to Cartesian coordinate transformations for C++.
MIT License
80 stars 19 forks source link
cartesian coordinate-transformation coordinates cpp11 cpp14 cpp17 header-only platform-independent single-file wgs84

WGS84toCartesian - a simple header-only, single-file library to convert WGS84 positions (latitude/longitude) to/from Cartesian positions using Mercator projection for C++

Build Status Build status License: MIT

WGS84toCartesian is a small and efficient library written in modern C++ library to convert WGS84 latitude/longitude positions to/from Cartesian positions using Mercator projection.

WGS84toCartesian is available as single-file, header-only library - just drop WGS84toCartesian.hpp into your project, #include "WGS84toCartesian.hpp", and compile your project with a modern C++ compiler (C++11 or newer).

This library is partially based on the work from Gerald I. Evenden on proj 4.3 released under public domain terms. See thirdparty/proj-4.3 for further details.

Table of Contents

Features

Dependencies

No dependencies! All you need is a C++11-compliant compiler (we are testing with GCC 6.3.0 and MSVC 19.0.24215.1) as the project ships the following dependencies as part of the source distribution:

Installation

Installation as single-file, header-only library

WGS84toCartesian is provided as header-only, single-file library as well - just drop WGS84toCartesian.hpp into your project, #include "WGS84toCartesian.hpp", and compile your project with a modern C++ compiler (C++11 or newer)

Projects using WGS84toCartesian

If your project is using WGS84toCartesian, just let us know :-)

Contributing

We are happy to receive your PRs to accelerate libcluon's development; before contributing, please take a look at the Contribution Documents.

License