
Geometry : 
Subject: Re: [geometry] Problems performing boolean operations on polygons with shared edges
From: Adam Wulkiewicz (adam.wulkiewicz_at_[hidden])
Date: 20160410 18:04:00
Barend Gehrels wrote:
>
>>
>> > WKT can easily be generated with the library using std::cout <<
>> boost::geometry::wkt(input1), etc
>>
>> I used boost::geometry::dsv before, WKT return floats with more
>> decimals, but not enough, points that enclose those "almost zero
>> areas" are the same, so that area is totally empty, not "almost" (it
>> is just an edge).
>> Is there any way to print floats in WKT representation with more
>> precision?
>
> Sure, you can use the normal way, std::setprecision(20) for example,
> followed by the wkt.
and std::fixed if needed, so:
std::cout << std::setprecision(20) << std::fixed << bg::wkt(g) << std::endl;
Geometry list run by mateusz at loskot.net