Output a % done periodically.
This commit is contained in:
parent
1399eb9de3
commit
e779c45679
1 changed files with 4 additions and 4 deletions
|
@ -466,8 +466,8 @@ main (int argc, const char **argv)
|
||||||
|
|
||||||
TGPolygon mask;
|
TGPolygon mask;
|
||||||
for (int i = 0; i < nTopologies; i++) {
|
for (int i = 0; i < nTopologies; i++) {
|
||||||
if ((i % 1000) == 0)
|
if ((i % 10) == 0)
|
||||||
cerr << i << "..." << endl;
|
cerr << (double)i * 100.0 / (double)nTopologies << "% done ..." << endl;
|
||||||
if (feature.isTiled()) {
|
if (feature.isTiled()) {
|
||||||
VpfRectangle rect = feature.getTile(i).getBoundingRectangle();
|
VpfRectangle rect = feature.getTile(i).getBoundingRectangle();
|
||||||
if (!bounds.isOverlapping(vpf2tg(rect)))
|
if (!bounds.isOverlapping(vpf2tg(rect)))
|
||||||
|
@ -532,8 +532,8 @@ main (int argc, const char **argv)
|
||||||
} else {
|
} else {
|
||||||
shape = tgPolygonInt(shape, bounds_poly);
|
shape = tgPolygonInt(shape, bounds_poly);
|
||||||
if (shape.total_size() >= 3) {
|
if (shape.total_size() >= 3) {
|
||||||
cout << "Polygon with " << shape.total_size() << " points in "
|
// cout << "Polygon with " << shape.total_size() << " points in "
|
||||||
<< shape.contours() << " contour(s)" << endl;
|
// << shape.contours() << " contour(s)" << endl;
|
||||||
if ( max_segment > 1.0 ) {
|
if ( max_segment > 1.0 ) {
|
||||||
shape = tgPolygonSplitLongEdges( shape, max_segment );
|
shape = tgPolygonSplitLongEdges( shape, max_segment );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue