User Activity

  • Posted a comment on discussion Help on GeographicLib

    Thanks a lot. Yes that pretty much cleared everything. God bless

  • Posted a comment on discussion Help on GeographicLib

    This is a followup question of this one where I try to port a python script to c++. long story short, after running my c++ port which is given below, the distance reported is off by a huge margin! This function tries to create a list of intermediate waypoints between the given source and destination gps locations. struct Waypoints { std::vector<std::tuple<double, double>> gps_coordinate; double total_distance; }; Waypoints create_waypoints(double lat1, double lon1, double lat2, double lon2, double...

  • Posted a comment on discussion Help on GeographicLib

    OK, I guess I found it, Position, takes out variables, which I believe would initialize them after the method call.

  • Modified a comment on discussion Help on GeographicLib

    I found another sample here : https://geographiclib.sourceforge.io/html/classGeographicLib_1_1GeodesicLine.html which uses Geodesic geod(Constants::WGS84_a(), Constants::WGS84_f()); to construct a geod and that fixes the issues (the commented alternative which I used fails) and instead of l.s13, I guess I should be using Distance() method instead right? now how should I port position: # python g = l.Position(s, Geodesic.STANDARD | Geodesic.LONG_UNROLL) to C++? it seems position here is completely...

  • Modified a comment on discussion Help on GeographicLib

    I found another sample here : https://geographiclib.sourceforge.io/html/classGeographicLib_1_1GeodesicLine.html which uses Geodesic geod(Constants::WGS84_a(), Constants::WGS84_f()); to construct a geod and that fixes the issues (the commented alternative which I used fails) and instead of l.s13, I guess I should be using Distance() method instead right? now how should I port position: # in python I have g = l.Position(s, Geodesic.STANDARD | Geodesic.LONG_UNROLL) to C++? it seems position here is...

  • Modified a comment on discussion Help on GeographicLib

    I found another sample here : https://geographiclib.sourceforge.io/html/classGeographicLib_1_1GeodesicLine.html which uses Geodesic geod(Constants::WGS84_a(), Constants::WGS84_f()); to construct a geod and that fixes the issues (the commented alternative which I used fails) and instead of l.s13, I guess I should be using Distance() method instead right? now how should I port position: python g = l.Position(s, Geodesic.STANDARD | Geodesic.LONG_UNROLL) to C++? it seems position here is completely different!...

  • Posted a comment on discussion Help on GeographicLib

    I found another sample here : https://geographiclib.sourceforge.io/html/classGeographicLib_1_1GeodesicLine.html which uses Geodesic geod(Constants::WGS84_a(), Constants::WGS84_f()); to construct a geod and that fixes the issues (the commented alternative which I used fails) and instead lf l.s13, I guess I should be using Distance() method instead right?

  • Modified a comment on discussion Help on GeographicLib

    Hi, I'm trying to port my python code to its C++ counter part, but when trying to use InverseLine, I'm facing the following error : invalid use of incomplete type ‘class GeographicLib::GeodesicLine’GCC Geodesic.hpp(28, 9): forward declaration of ‘class GeographicLib::GeodesicLine’ and this is the snippet I'm trying to run: struct Waypoints { std::vector<std::tuple<float,float>> gps_coordinate; float total_distance; }; Waypoints create_waypoints(float lat1, float lon1, float lat2, float lon2, float...

View All

Personal Data

Username:
coderx7
Joined:
2010-04-22 08:28:42

Projects

  • No projects to display.

Personal Tools

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.