|
Geometry : |
From: Mateusz Loskot (mateusz_at_[hidden])
Date: 2019-09-23 08:57:19
On Mon, 23 Sep 2019 at 10:38, Ahmet Temiz via Geometry
<geometry_at_[hidden]> wrote:
> Hi,
> I am not sure how I can define epsg : 3857 in boost geometry
Should be something along these lines:
#include <boost/geometry/srs/epsg.hpp>
#include <boost/geometry/srs/projection.hpp>
boost::geometry::srs::projection<> prj = boost::geometry::srs::epsg(3857);
boost::geometry::point_xy<double, epsg<2040>> my_point(0, 0);
Also, search through the source code of the Boost.Geometry tests
for more details about how `epsg` and `projection` can be used.
Best regards,
-- Mateusz Loskot, http://mateusz.loskot.net
Geometry list run by mateusz at loskot.net