Boost logo

Geometry :

Subject: Re: [geometry] Area strategies interface change proposal
From: Barend Gehrels (barend_at_[hidden])
Date: 2017-12-11 17:04:12


>>
>> After these changes the user would be able to write:
>>
>> auto a = bg::area(g1, bg::strategy::area::cartesian<>());
>> auto b = bg::area(g2, bg::strategy::area::spherical<>()); // probably unit
>> sphere to be backward compatible with default-constructed spherical strategy
>> auto c = bg::area(g3, bg::strategy::area::geographic<>()); // WGS84, default
>> srs::spheroid
>>
>> auto d = bg::area(g1, bg::strategy::area::cartesian<>());
>> auto e = bg::area(g2, bg::strategy::area::spherical<>(6370997.0)); //
>> Earth's mean radius, or instead of Radius take Sphere
>> auto f = bg::area(g3,
>> bg::strategy::area::geographic<>(bg::srs::spheroid<double>(6378206.4,
>> 6356583.8))); // Clarke 1866
>>
>> What do you think?
>
> Sounds great to me. Thanks.

I agree too, as long as we change all strategies like this in the same way. We then should announce it because it is really a breaking change

Barend


Geometry list run by mateusz at loskot.net