mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
+ log clipper errors/warnings
This commit is contained in:
parent
a71f0b8a93
commit
6fe204ce2a
@ -197,8 +197,11 @@ private:
|
||||
{
|
||||
if (std::abs(x - prev_x) < 1e-12 && std::abs(y - prev_y) < 1e-12)
|
||||
{
|
||||
std::cerr << std::setprecision(12) << "coincident vertices:(" << prev_x << ","
|
||||
<< prev_y << ") , (" << x << "," << y << ")" << std::endl;
|
||||
#ifdef MAPNIK_LOG
|
||||
MAPNIK_LOG_WARN(polygon_clipper)
|
||||
<< std::setprecision(12) << "coincident vertices:(" << prev_x << ","
|
||||
<< prev_y << ") , (" << x << "," << y << ")";
|
||||
#endif
|
||||
continue;
|
||||
}
|
||||
prev_x = x;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user