Activity for Master

  • Master Master posted a comment on discussion Help

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

  • Master Master posted a comment on discussion Help

    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...

  • Master Master posted a comment on discussion Help

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

  • Master Master modified a comment on discussion Help

    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...

  • Master Master modified a comment on discussion Help

    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...

  • Master Master modified a comment on discussion Help

    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!...

  • Master Master posted a comment on discussion Help

    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?

  • Master Master modified a comment on discussion Help

    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...

  • Master Master posted a comment on discussion Help

    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’ Whats wrong here and how can I use this method? Thanks a lot in advance

  • Master Master posted a comment on discussion Help

    Thank you very much for your time and kind explanation. really appreciate it doctor.

  • Master Master posted a comment on discussion Help

    Thanks a lot. concerning Generally it is the geodesic distance you want to use. So there is not any catches in scenarios like this right? whether I'm dealing with a 5 meters radius or a much larger area, I can always safely go with the Geodesic class and be fine? Of course for very short distances (like 5 m), you can use other methods, basically approximating the surface of the earth by a plane. like what? could you kindly name some of them? a snippet of code would also be of great help and appreciated...

  • Master Master modified a comment on discussion Help

    Hi. I am a complete newbie in all of this and was recently trying to calculate distance between two gps coordinates. I found geographiclib and started using it but the more I delve into this, the more confused I get. Recently (as of couple of hours ago!) I tried to see how I can make sure a coordinate resides in a circle with a given radius. this very simple question got really confusing. As I was searching for an answer I kept facing terms such as Great Circle Distance, Great Ellipse, Geodesic and...

  • Master Master posted a comment on discussion Help

    Hi. I am a complete newbie in all of this and was recently trying to calculate distance between two gps coordinates. I found geographiclib and started using it but the more I delve into this, the more confused I get. Recently (as of couple of hours ago!) I tried to see how I can make sure a coordinate resides in a circle with a given radius. this very simple question got really confusing. As I was searching for an answer I kept facing terms such as Great Circle Distance, Great Ellipse, Geodesic and...

  • Master Master modified a comment on discussion Help

    Hi, Suppose I want to find out if a given latitude, longitude is inside of an area like a circle or a polygon. How could I go about this? would simply writing something like below do the trick? from geographiclib.geodesic import Geodesic def get_distance(gps_coordinate1, gps_coordinate2): """Calculates the distance between two GPS coordinates in meters. Args: gps_coordinate1 (tuple(float, float)): latitude and longitude of point A gps_coordinate2 (tuple(float, float)): latitude and longitude of point...

  • Master Master posted a comment on discussion Help

    Hi, Suppose I want to find out if a given latitude, longitude is inside of an area like a circle or a polygon. How could I go about this? would simply writing something like below do the trick? from geographiclib.geodesic import Geodesic def get_distance(gps_coordinate1, gps_coordinate2): """Calculates the distance between two GPS coordinates in meters. Args: gps_coordinate1 (tuple(float, float)): latitude and longitude of point A gps_coordinate2 (tuple(float, float)): latitude and longitude of point...

1