mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-06 02:15:41 +02:00
Only skip polygon cleaning if we are still at very high resolution
This commit is contained in:
-1216
File diff suppressed because one or more lines are too long
+1898
File diff suppressed because one or more lines are too long
@@ -2381,6 +2381,8 @@ long long write_tile(decompressor *geoms, std::atomic<long long> *geompos_in, ch
|
|||||||
tasks = 1;
|
tasks = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
printf("doing %d/%d/%d, detail %d, thresh %lld\n", z, tx, ty, line_detail, mingap);
|
||||||
|
|
||||||
{
|
{
|
||||||
pthread_t pthreads[tasks];
|
pthread_t pthreads[tasks];
|
||||||
std::vector<simplification_worker_arg> args;
|
std::vector<simplification_worker_arg> args;
|
||||||
@@ -2393,7 +2395,7 @@ long long write_tile(decompressor *geoms, std::atomic<long long> *geompos_in, ch
|
|||||||
args[i].shared_nodes_map = shared_nodes_map;
|
args[i].shared_nodes_map = shared_nodes_map;
|
||||||
args[i].nodepos = nodepos;
|
args[i].nodepos = nodepos;
|
||||||
args[i].shared_nodes_bloom = &shared_nodes_bloom;
|
args[i].shared_nodes_bloom = &shared_nodes_bloom;
|
||||||
args[i].trying_to_stop_early = trying_to_stop_early;
|
args[i].trying_to_stop_early = trying_to_stop_early && line_detail == first_detail;
|
||||||
|
|
||||||
if (tasks > 1) {
|
if (tasks > 1) {
|
||||||
if (thread_create(&pthreads[i], NULL, simplification_worker, &args[i]) != 0) {
|
if (thread_create(&pthreads[i], NULL, simplification_worker, &args[i]) != 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user