Boost logo

Boost :

Subject: Re: [boost] GGL issues
From: Jose (jmalv04_at_[hidden])
Date: 2009-11-15 04:47:30


Without the typedefs for point_ll_XX many examples (even in the main
page) are broken, correct ?

I think this is a serious issue, because the main use for the library
is for non-cartesian geometries, so if its not easy anymore then
what is the value of using the library ?

------------------------------------------------------------------
We now show that it is also possible to use non-Cartesian points. When
then an algorithm such as distance is used the library "feels" that it
is handling geographic points and calculates the distance over the
globe, in meters:

        point_ll_deg amsterdam, paris;
        parse(amsterdam, "52 22 23 N", "4 53 32 E");
        parse(paris, "48 52 0 N", "2 19 59 E");
        std::cout << "Distance A'dam-Paris: " << distance(amsterdam,
paris) / 1000.0 << " kilometers " << std::endl;


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk