Boost logo

Geometry :

Subject: Re: [geometry] Distance between point_ll and polygon in 1.56
From: Menelaos Karavelas (menelaos.karavelas_at_[hidden])
Date: 2014-08-09 03:12:36


Hi Branimir.

On 09/08/2014 05:26 ??, Branimir Betov wrote:
> Hi,
>
> I am trying to figure out what is wrong with my code and am stuck, so
> I thought someone might help. The code used to work in 1.55 and in
> 1.56 no longer compiles; I am at a loss what might be wrong. I am
> using the GIS extension from the develop-1.56 branch.
>
> Here is the relevant snippet:
>
> typedef bg::model::ll::point<> point;
> typedef bg::model::polygon<point> polygon;
>
> polygon poly;
>
> bg::read_wkt(str, poly);
>
> const bg::latitude<double> lat_out(37.69311);
> const bg::longitude<double> lon_out(-122.13865);
> point p_out(lat_out, lon_out);
>
> bg::distance(p_out, poly); // It fails to compile right here.
>
>
> Does anyone have any suggestions?
>

Would it be possible to provide a minimal complete example that fails?

Thanks a lot.

- m.

> Thank you,
> Branimir
>
>
>
> _______________________________________________
> Geometry mailing list
> Geometry_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/geometry



Geometry list run by mateusz at loskot.net