mirror of
https://github.com/boostorg/geometry.git
synced 2025-05-11 13:34:10 +00:00
[test][srs] Move projections tests from extensions to main part of the library (srs).
This commit is contained in:
parent
d133efe071
commit
d8bebf0a6a
@ -5,11 +5,14 @@
|
||||
# Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
|
||||
# Copyright (c) 2015 Adam Wulkiewicz, Lodz, Poland.
|
||||
#
|
||||
# This file was modified by Oracle on 2017.
|
||||
# Modifications copyright (c) 2017, Oracle and/or its affiliates.
|
||||
# Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
|
||||
#
|
||||
# Use, modification and distribution is subject to the Boost Software License,
|
||||
# Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
build-project io ;
|
||||
build-project latlong ;
|
||||
build-project projections ;
|
||||
|
||||
|
@ -4,6 +4,10 @@
|
||||
# Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
|
||||
# Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
|
||||
#
|
||||
# This file was modified by Oracle on 2017.
|
||||
# Modifications copyright (c) 2017, Oracle and/or its affiliates.
|
||||
# Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
|
||||
#
|
||||
# Use, modification and distribution is subject to the Boost Software License,
|
||||
# Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
@ -33,5 +37,6 @@ build-project iterators ;
|
||||
build-project strategies ;
|
||||
build-project policies ;
|
||||
build-project io ;
|
||||
build-project srs ;
|
||||
build-project util ;
|
||||
build-project views ;
|
||||
|
@ -12,13 +12,14 @@
|
||||
# Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
test-suite boost-geometry-extensions-gis-projections
|
||||
# TODO: move project transformer test to strategies
|
||||
test-suite boost-geometry-srs
|
||||
:
|
||||
[ run interface.cpp ]
|
||||
[ run project_transformer.cpp ]
|
||||
[ run projection.cpp ]
|
||||
[ run projections.cpp ]
|
||||
[ run projections_combined.cpp ]
|
||||
[ run projections_static.cpp ]
|
||||
[ run projection_epsg.cpp ]
|
||||
[ run project_transformer.cpp : : : : srs_project_transformer ]
|
||||
[ run projection.cpp : : : : srs_projection ]
|
||||
[ run projection_epsg.cpp : : : : srs_projection_epsg ]
|
||||
[ run projection_interface.cpp : : : : srs_projection_interface ]
|
||||
[ run projections.cpp : : : : srs_projections ]
|
||||
[ run projections_combined.cpp : : : : srs_projections_combined ]
|
||||
[ run projections_static.cpp : : : : srs_projections_static ]
|
||||
;
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <boost/geometry.hpp>
|
||||
#include <boost/geometry/geometries/geometries.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/project_transformer.hpp>
|
||||
#include <boost/geometry/strategies/transform/project_transformer.hpp>
|
||||
|
||||
#include <boost/geometry/io/wkt/read.hpp>
|
||||
|
@ -26,7 +26,7 @@
|
||||
|
||||
#include <geometry_test_common.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/projections/projection.hpp>
|
||||
#include <boost/geometry/srs/projection.hpp>
|
||||
|
||||
#include <boost/geometry/algorithms/transform.hpp>
|
||||
#include <boost/geometry/core/coordinate_type.hpp>
|
||||
@ -34,7 +34,6 @@
|
||||
#include <boost/geometry/geometries/geometries.hpp>
|
||||
#include <boost/geometry/geometries/point_xy.hpp>
|
||||
#include <boost/geometry/geometries/adapted/c_array.hpp>
|
||||
#include <boost/geometry/extensions/gis/latlong/point_ll.hpp>
|
||||
#include <test_common/test_point.hpp>
|
||||
|
||||
|
||||
@ -46,11 +45,11 @@ void test_one(double lon, double lat,
|
||||
typename bg::coordinate_type<P2>::type y,
|
||||
std::string const& parameters)
|
||||
{
|
||||
bg::projection<srs::static_proj4<Prj, Model> > prj = srs::static_proj4<Prj, Model>(parameters);
|
||||
srs::projection<srs::static_proj4<Prj, Model> > prj = srs::static_proj4<Prj, Model>(parameters);
|
||||
|
||||
P1 ll;
|
||||
ll.lon(lon);
|
||||
ll.lat(lat);
|
||||
bg::set<0>(ll, lon);
|
||||
bg::set<1>(ll, lat);
|
||||
|
||||
P2 xy;
|
||||
prj.forward(ll, xy);
|
||||
@ -63,7 +62,7 @@ template <typename P>
|
||||
void test_all()
|
||||
{
|
||||
typedef typename bg::coordinate_type<P>::type coord_type;
|
||||
typedef bg::model::ll::point<bg::degree, coord_type> point_type;
|
||||
typedef bg::model::point<coord_type, 2, bg::cs::geographic<bg::degree> > point_type;
|
||||
|
||||
// aea
|
||||
test_one<srs::proj::aea, srs::ellps::WGS84, point_type, P>
|
@ -25,16 +25,13 @@
|
||||
|
||||
#include <geometry_test_common.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/projections/projection.hpp>
|
||||
|
||||
#include <boost/geometry/algorithms/transform.hpp>
|
||||
#include <boost/geometry/srs/projection.hpp>
|
||||
|
||||
#include <boost/geometry/core/coordinate_type.hpp>
|
||||
|
||||
#include <boost/geometry/geometries/adapted/c_array.hpp>
|
||||
#include <boost/geometry/geometries/geometries.hpp>
|
||||
#include <boost/geometry/geometries/point_xy.hpp>
|
||||
#include <boost/geometry/extensions/gis/latlong/point_ll.hpp>
|
||||
#include <test_common/test_point.hpp>
|
||||
|
||||
namespace srs = bg::srs;
|
||||
@ -44,11 +41,11 @@ void test_one(double lon, double lat,
|
||||
typename bg::coordinate_type<P2>::type x,
|
||||
typename bg::coordinate_type<P2>::type y)
|
||||
{
|
||||
bg::projection<srs::static_epsg<E> > prj;
|
||||
srs::projection<srs::static_epsg<E> > prj;
|
||||
|
||||
P1 ll;
|
||||
ll.lon(lon);
|
||||
ll.lat(lat);
|
||||
bg::set<0>(ll, lon);
|
||||
bg::set<1>(ll, lat);
|
||||
|
||||
P2 xy;
|
||||
bg::set<0>(xy, 0.0);
|
||||
@ -63,7 +60,7 @@ template <typename D, typename P>
|
||||
void test_deg_rad(double factor)
|
||||
{
|
||||
typedef typename bg::coordinate_type<P>::type coord_type;
|
||||
typedef bg::model::ll::point<D, coord_type> point_type;
|
||||
typedef bg::model::point<coord_type, 2, bg::cs::geographic<D> > point_type;
|
||||
|
||||
test_one<28992, point_type, P>(4.897000 * factor, 52.371000 * factor, 121590.388077, 487013.903377);
|
||||
test_one<29118, point_type, P>(4.897000 * factor, 52.371000 * factor, 4852882, 9129373);
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <boost/geometry.hpp>
|
||||
#include <boost/geometry/geometries/geometries.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/projection.hpp>
|
||||
#include <boost/geometry/srs/projection.hpp>
|
||||
|
||||
|
||||
int test_main(int, char*[])
|
@ -26,16 +26,10 @@
|
||||
|
||||
#include <boost/geometry/geometries/point_xy.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/projections/parameters.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/projection.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/factory.hpp>
|
||||
|
||||
#include <boost/geometry/algorithms/transform.hpp>
|
||||
|
||||
#include <boost/geometry/srs/projection.hpp>
|
||||
|
||||
#include <boost/geometry/geometries/geometries.hpp>
|
||||
#include <boost/geometry/geometries/adapted/c_array.hpp>
|
||||
#include <boost/geometry/extensions/gis/latlong/point_ll.hpp>
|
||||
|
||||
#include <test_common/test_point.hpp>
|
||||
|
||||
@ -56,13 +50,13 @@ void test_forward(std::string const& name,
|
||||
std::string const& parameters)
|
||||
{
|
||||
typedef typename bg::coordinate_type<P>::type coord_type;
|
||||
typedef bg::model::ll::point<bg::degree, coord_type> lonlat_type;
|
||||
typedef bg::model::point<coord_type, 2, bg::cs::geographic<bg::degree> > lonlat_type;
|
||||
|
||||
lonlat_type ll;
|
||||
ll.lon(lon);
|
||||
ll.lat(lat);
|
||||
bg::set<0>(ll, lon);
|
||||
bg::set<1>(ll, lat);
|
||||
|
||||
bg::projection<> prj = srs::proj4(parameters);
|
||||
srs::projection<> prj = srs::proj4(parameters);
|
||||
|
||||
P xy;
|
||||
prj.forward(ll, xy);
|
||||
@ -81,13 +75,13 @@ void test_inverse(std::string const& name,
|
||||
std::string const& parameters)
|
||||
{
|
||||
typedef typename bg::coordinate_type<P>::type coord_type;
|
||||
typedef bg::model::ll::point<bg::degree, coord_type> lonlat_type;
|
||||
typedef bg::model::point<coord_type, 2, bg::cs::geographic<bg::degree> > lonlat_type;
|
||||
|
||||
P xy;
|
||||
bg::set<0>(xy, x);
|
||||
bg::set<1>(xy, y);
|
||||
|
||||
bg::projection<> prj = srs::proj4(parameters);
|
||||
srs::projection<> prj = srs::proj4(parameters);
|
||||
|
||||
lonlat_type ll;
|
||||
prj.inverse(xy, ll);
|
@ -18,7 +18,7 @@
|
||||
|
||||
#include <geometry_test_common.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/projections/projection.hpp>
|
||||
#include <boost/geometry/srs/projection.hpp>
|
||||
|
||||
#include <boost/geometry/core/coordinate_type.hpp>
|
||||
#include <boost/geometry/algorithms/make.hpp>
|
||||
@ -37,7 +37,7 @@ void test_forward(std::string const& id, GeoPoint const& geo_point1, GeoPoint co
|
||||
{
|
||||
typedef typename bg::coordinate_type<GeoPoint>::type coordinate_type;
|
||||
typedef bg::model::d2::point_xy<coordinate_type> cartesian_point_type;
|
||||
typedef bg::projection<srs::static_proj4<Proj, Model> > projection_type;
|
||||
typedef srs::projection<srs::static_proj4<Proj, Model> > projection_type;
|
||||
|
||||
try
|
||||
{
|
||||
@ -77,7 +77,7 @@ void test_forward(std::string const& id, GeoPoint const& geo_point1, GeoPoint co
|
||||
template <typename T>
|
||||
void test_all()
|
||||
{
|
||||
typedef bg::model::ll::point<bg::degree, T> geo_point_type;
|
||||
typedef bg::model::point<T, 2, bg::cs::geographic<bg::degree> > geo_point_type;
|
||||
|
||||
geo_point_type amsterdam = bg::make<geo_point_type>(4.8925, 52.3731);
|
||||
geo_point_type utrecht = bg::make<geo_point_type>(5.1213, 52.0907);
|
@ -18,107 +18,107 @@
|
||||
|
||||
#include <geometry_test_common.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/projections/parameters.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/projection.hpp>
|
||||
#include <boost/geometry/srs/parameters.hpp>
|
||||
#include <boost/geometry/srs/projection.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/projections/proj/aea.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/aeqd.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/airy.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/aitoff.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/august.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/bacon.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/bipc.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/boggs.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/bonne.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/cass.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/cc.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/cea.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/chamb.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/collg.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/crast.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/denoy.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/eck1.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/eck2.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/eck3.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/eck4.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/eck5.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/eqc.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/eqdc.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/etmerc.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/fahey.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/fouc_s.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/gall.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/geocent.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/geos.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/gins8.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/gn_sinu.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/gnom.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/goode.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/gstmerc.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/hammer.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/hatano.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/healpix.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/krovak.hpp>
|
||||
//#include <boost/geometry/extensions/gis/projections/proj/igh.hpp> -> in combined
|
||||
#include <boost/geometry/extensions/gis/projections/proj/imw_p.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/isea.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/laea.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/labrd.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/lagrng.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/larr.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/lask.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/latlong.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/lcc.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/lcca.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/loxim.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/lsat.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/mbtfpp.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/mbtfpq.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/mbt_fps.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/merc.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/mill.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/mod_ster.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/moll.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/natearth.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/nell.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/nell_h.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/nocol.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/nsper.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/nzmg.hpp>
|
||||
//#include <boost/geometry/extensions/gis/projections/proj/ob_tran.hpp> -> in combined
|
||||
#include <boost/geometry/extensions/gis/projections/proj/ocea.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/oea.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/omerc.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/ortho.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/qsc.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/poly.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/putp2.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/putp3.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/putp4p.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/putp5.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/putp6.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/robin.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/rouss.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/rpoly.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/sconics.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/somerc.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/stere.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/sterea.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/sts.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/tcc.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/tcea.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/tmerc.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/tpeqd.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/urm5.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/urmfps.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/vandg.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/vandg2.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/vandg4.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/wag2.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/wag3.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/wag7.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/wink1.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/wink2.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/aea.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/aeqd.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/airy.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/aitoff.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/august.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/bacon.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/bipc.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/boggs.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/bonne.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/cass.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/cc.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/cea.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/chamb.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/collg.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/crast.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/denoy.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/eck1.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/eck2.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/eck3.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/eck4.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/eck5.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/eqc.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/eqdc.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/etmerc.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/fahey.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/fouc_s.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/gall.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/geocent.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/geos.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/gins8.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/gn_sinu.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/gnom.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/goode.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/gstmerc.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/hammer.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/hatano.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/healpix.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/krovak.hpp>
|
||||
//#include <boost/geometry/srs/projections/proj/igh.hpp> -> in combined
|
||||
#include <boost/geometry/srs/projections/proj/imw_p.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/isea.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/laea.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/labrd.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/lagrng.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/larr.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/lask.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/latlong.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/lcc.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/lcca.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/loxim.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/lsat.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/mbtfpp.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/mbtfpq.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/mbt_fps.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/merc.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/mill.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/mod_ster.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/moll.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/natearth.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/nell.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/nell_h.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/nocol.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/nsper.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/nzmg.hpp>
|
||||
//#include <boost/geometry/srs/projections/proj/ob_tran.hpp> -> in combined
|
||||
#include <boost/geometry/srs/projections/proj/ocea.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/oea.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/omerc.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/ortho.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/qsc.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/poly.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/putp2.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/putp3.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/putp4p.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/putp5.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/putp6.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/robin.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/rouss.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/rpoly.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/sconics.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/somerc.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/stere.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/sterea.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/sts.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/tcc.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/tcea.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/tmerc.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/tpeqd.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/urm5.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/urmfps.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/vandg.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/vandg2.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/vandg4.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/wag2.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/wag3.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/wag7.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/wink1.hpp>
|
||||
#include <boost/geometry/srs/projections/proj/wink2.hpp>
|
||||
|
||||
|
||||
#include <boost/geometry/core/coordinate_type.hpp>
|
||||
@ -127,7 +127,6 @@
|
||||
#include <boost/geometry.hpp>
|
||||
#include <boost/geometry/geometries/geometries.hpp>
|
||||
#include <boost/geometry/geometries/point_xy.hpp>
|
||||
#include <boost/geometry/extensions/gis/latlong/point_ll.hpp>
|
||||
|
||||
|
||||
template <template <typename, typename> class Projection, typename GeoPoint>
|
||||
@ -179,7 +178,7 @@ void test_forward(GeoPoint const& geo_point1, GeoPoint const& geo_point2,
|
||||
template <typename T>
|
||||
void test_all()
|
||||
{
|
||||
typedef bg::model::ll::point<bg::degree, T> geo_point_type;
|
||||
typedef bg::model::point<T, 2, bg::cs::geographic<bg::degree> > geo_point_type;
|
||||
|
||||
geo_point_type amsterdam = bg::make<geo_point_type>(4.8925, 52.3731);
|
||||
geo_point_type utrecht = bg::make<geo_point_type>(5.1213, 52.0907);
|
Loading…
x
Reference in New Issue
Block a user