issues
search
BoostGSoC17
/
geometry
Boost.org geometry module
http://boost.org/libs/geometry
1
stars
3
forks
source link
Implement the test_geographic file
#9
Closed
Rylynnn
closed
7 years ago
Rylynnn
commented
7 years ago
Implement test_geographic.cpp
[x] Implement the test file to compare the distance of segment p1,p2 to segment p3,p4. I test two cases one with distance and one with compare distance. make the consistency print.
[x] And note the change of how to correctly compute time!
[x] Create a file to test your implementation using a file similar to
https://github.com/vissarion/geometry/blob/feature/comparable_distance_geo/example/test/comparable_distance.cpp
[x] Be sure that the consistency test is true. Of course there could be cases where that test is not true but this will be the next task.
Rylynnn
commented
7 years ago
Implement comparable_geographic_distance.hpp
[x] Implement comparable_geographic_distance.hpp
[x] Create the branch and pull the work to github.
comparable_geographic_distance.hpp
in geometry/include/boost/geometry/algorithms.
test_geographic.cpp
in geometry/example.
test_geographic.cpp use vincenty strategy to calculate strategy.
comparable_distance
from Vissarion use
haversine
to avoid sqrt, asin etc. I implement comparable_geographic_distance.hpp, which is similiar to
comparable_distance_interface.hpp
Rylynnn
commented
7 years ago
PR:
https://github.com/boostorg/geometry/pull/401
Implement test_geographic.cpp