mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-05 01:45:41 +02:00
Remove debug spew
This commit is contained in:
@@ -387,7 +387,6 @@ drawvec clean_or_clip_poly(drawvec &geom, int z, int buffer, bool clip, bool try
|
|||||||
}
|
}
|
||||||
|
|
||||||
drawvec clip_poly(drawvec &geom, drawvec const &bounds) {
|
drawvec clip_poly(drawvec &geom, drawvec const &bounds) {
|
||||||
printf("initial: %zu\n", geom.size());
|
|
||||||
geom = remove_noop(geom, VT_POLYGON, 0);
|
geom = remove_noop(geom, VT_POLYGON, 0);
|
||||||
mapbox::geometry::multi_polygon<long long> result;
|
mapbox::geometry::multi_polygon<long long> result;
|
||||||
|
|
||||||
@@ -447,7 +446,6 @@ drawvec clip_poly(drawvec &geom, drawvec const &bounds) {
|
|||||||
|
|
||||||
drawvec ret;
|
drawvec ret;
|
||||||
decode_clipped(result, ret, 1);
|
decode_clipped(result, ret, 1);
|
||||||
printf("after: %zu\n", ret.size());
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1158,7 +1156,6 @@ clipbbox parse_clip_poly(std::string arg) {
|
|||||||
out.maxy = LLONG_MIN;
|
out.maxy = LLONG_MIN;
|
||||||
for (auto const &d : parsed_geometry.second) {
|
for (auto const &d : parsed_geometry.second) {
|
||||||
if (d.op == VT_MOVETO || d.op == VT_LINETO) {
|
if (d.op == VT_MOVETO || d.op == VT_LINETO) {
|
||||||
printf("%lld,%lld\n", d.x, d.y);
|
|
||||||
if (d.x < out.minx) {
|
if (d.x < out.minx) {
|
||||||
out.minx = d.x;
|
out.minx = d.x;
|
||||||
}
|
}
|
||||||
@@ -1985,9 +1982,8 @@ std::string overzoom(std::vector<source_tile> const &tiles, int nz, int nx, int
|
|||||||
if (bins.size() == 0) {
|
if (bins.size() == 0) {
|
||||||
for (auto &c : clipbboxes) {
|
for (auto &c : clipbboxes) {
|
||||||
if (t == VT_POLYGON) {
|
if (t == VT_POLYGON) {
|
||||||
printf("clip to %lld,%lld %lld,%lld\n", c.minx, c.miny, c.maxx, c.maxy);
|
|
||||||
geom = simple_clip_poly(geom, c.minx, c.miny, c.maxx, c.maxy, false);
|
geom = simple_clip_poly(geom, c.minx, c.miny, c.maxx, c.maxy, false);
|
||||||
if (c.dv.size() > 0) {
|
if (c.dv.size() > 0 && geom.size() > 0) {
|
||||||
geom = clip_poly(geom, c.dv);
|
geom = clip_poly(geom, c.dv);
|
||||||
}
|
}
|
||||||
} else if (t == VT_LINE) {
|
} else if (t == VT_LINE) {
|
||||||
|
|||||||
Reference in New Issue
Block a user