Skip to content

Commit

Permalink
ext: Modify and remove old examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
vissarion committed Oct 31, 2024
1 parent ebeac9d commit a666d63
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 587 deletions.
1 change: 0 additions & 1 deletion extensions/example/gis/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@ project boost-geometry-extensions-gis-examples


build-project latlong ;
build-project projections ;
4 changes: 2 additions & 2 deletions extensions/example/gis/latlong/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ project boost-geometry-example-extensions-gis-projections
: # requirements
;

exe distance_example : distance_example.cpp ;
exe point_ll_example : point_ll_example.cpp ;
#exe distance_example : distance_example.cpp ;
#exe point_ll_example : point_ll_example.cpp ;
8 changes: 4 additions & 4 deletions extensions/example/gis/latlong/distance_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/strategies/spherical/distance_cross_track.hpp>
#include <boost/geometry/extensions/gis/latlong/latlong.hpp>
#include <boost/geometry/extensions/gis/geographic/strategies/andoyer.hpp>
#include <boost/geometry/extensions/gis/projections/proj/sterea.hpp>
#include <boost/geometry/extensions/gis/projections/proj/laea.hpp>
#include <boost/geometry/extensions/gis/projections/parameters.hpp>
//#include <boost/geometry/extensions/gis/geographic/strategies/andoyer.hpp>
//#include <boost/geometry/extensions/gis/projections/proj/sterea.hpp>
//#include <boost/geometry/extensions/gis/projections/proj/laea.hpp>
//#include <boost/geometry/extensions/gis/projections/parameters.hpp>

// BSG 28-10-2010
// TODO: clear up this test
Expand Down
4 changes: 2 additions & 2 deletions extensions/example/gis/latlong/point_ll_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ int main()
using namespace boost::geometry;

typedef model::ll::point<degree> latlon_point;

latlon_point paris;

// Assign coordinates to the latlong point, using the methods lat and lon
Expand Down Expand Up @@ -115,7 +115,7 @@ int main()

// Other way round: have Amsterdam and go 430 km to the south (i.e. first calculate direction)
double tc = get_course(amsterdam, paris);
std::cout << "Course: " << (tc * boost::geometry::math::r2d) << std::endl;
std::cout << "Course: " << (tc * boost::geometry::math::r2d<double>()) << std::endl;

latlon_point paris_calculated;
point_at_distance(amsterdam, 430 * 1000.0, tc, average_earth_radius, paris_calculated);
Expand Down
21 changes: 0 additions & 21 deletions extensions/example/gis/projections/Jamfile

This file was deleted.

62 changes: 0 additions & 62 deletions extensions/example/gis/projections/p01_projection_example.cpp

This file was deleted.

64 changes: 0 additions & 64 deletions extensions/example/gis/projections/p02_projfactory_example.cpp

This file was deleted.

149 changes: 0 additions & 149 deletions extensions/example/gis/projections/p03_projmap_example.cpp

This file was deleted.

Loading

0 comments on commit a666d63

Please sign in to comment.