mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 08:25:40 +02:00
Gather the results from each thread *after* the thread finishes
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{ "type": "FeatureCollection", "properties": {
|
||||
"antimeridian_adjusted_bounds": "0.000000,0.000000,0.000000,0.000000",
|
||||
"bounds": "0.000000,0.000000,0.000000,0.000000",
|
||||
"antimeridian_adjusted_bounds": "-180.000000,0.000000,0.966797,85.051129",
|
||||
"bounds": "-180.000000,0.000000,0.966797,85.051129",
|
||||
"center": "0.000000,0.000000,0",
|
||||
"description": "tests/feature-filter/out/all.mbtiles",
|
||||
"format": "pbf",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ "type": "FeatureCollection", "properties": {
|
||||
"antimeridian_adjusted_bounds": "0.000000,0.000000,0.000000,0.000000",
|
||||
"bounds": "0.000000,0.000000,0.000000,0.000000",
|
||||
"antimeridian_adjusted_bounds": "-122.255859,37.718590,-122.080078,37.857507",
|
||||
"bounds": "-122.255859,37.718590,-122.080078,37.857507",
|
||||
"center": "-122.104097,37.695438,0",
|
||||
"description": "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
|
||||
"format": "pbf",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ "type": "FeatureCollection", "properties": {
|
||||
"antimeridian_adjusted_bounds": "-135.000000,37.877021,-122.280579,40.979898",
|
||||
"bounds": "-135.000000,37.877021,-122.280579,40.979898",
|
||||
"antimeridian_adjusted_bounds": "-135.000000,37.874853,-122.280579,40.979898",
|
||||
"bounds": "-135.000000,37.874853,-122.280579,40.979898",
|
||||
"center": "-122.299805,37.892187,12",
|
||||
"description": "tests/join-population/tabblock_06001420.mbtiles",
|
||||
"format": "pbf",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ "type": "FeatureCollection", "properties": {
|
||||
"antimeridian_adjusted_bounds": "-135.000000,37.877021,-122.280579,40.979898",
|
||||
"bounds": "-135.000000,37.877021,-122.280579,40.979898",
|
||||
"antimeridian_adjusted_bounds": "-135.000000,37.874853,-122.280579,40.979898",
|
||||
"bounds": "-135.000000,37.874853,-122.280579,40.979898",
|
||||
"center": "-122.299805,37.892187,12",
|
||||
"description": "tests/join-population/tabblock_06001420.mbtiles",
|
||||
"format": "pbf",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ "type": "FeatureCollection", "properties": {
|
||||
"antimeridian_adjusted_bounds": "-135.000000,37.877021,-122.280579,40.979898",
|
||||
"bounds": "-135.000000,37.877021,-122.280579,40.979898",
|
||||
"antimeridian_adjusted_bounds": "-135.000000,37.874853,-122.280579,40.979898",
|
||||
"bounds": "-135.000000,37.874853,-122.280579,40.979898",
|
||||
"center": "-122.299805,37.892187,12",
|
||||
"description": "tests/join-population/tabblock_06001420.mbtiles",
|
||||
"format": "pbf",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ "type": "FeatureCollection", "properties": {
|
||||
"antimeridian_adjusted_bounds": "-135.000000,37.877021,-122.280579,40.979898",
|
||||
"bounds": "-135.000000,37.877021,-122.280579,40.979898",
|
||||
"antimeridian_adjusted_bounds": "-135.000000,37.874853,-122.280579,40.979898",
|
||||
"bounds": "-135.000000,37.874853,-122.280579,40.979898",
|
||||
"center": "-122.299805,37.892187,12",
|
||||
"description": "tests/join-population/tabblock_06001420.mbtiles",
|
||||
"format": "pbf",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ "type": "FeatureCollection", "properties": {
|
||||
"antimeridian_adjusted_bounds": "-135.000000,37.877021,-122.280579,40.979898",
|
||||
"bounds": "-135.000000,37.877021,-122.280579,40.979898",
|
||||
"antimeridian_adjusted_bounds": "-135.000000,37.874853,-122.280579,40.979898",
|
||||
"bounds": "-135.000000,37.874853,-122.280579,40.979898",
|
||||
"center": "-122.299805,37.892187,12",
|
||||
"description": "tests/join-population/tabblock_06001420.mbtiles",
|
||||
"format": "pbf",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ "type": "FeatureCollection", "properties": {
|
||||
"antimeridian_adjusted_bounds": "-135.000000,37.877021,-122.280579,40.979898",
|
||||
"bounds": "-135.000000,37.877021,-122.280579,40.979898",
|
||||
"antimeridian_adjusted_bounds": "-135.000000,37.874853,-122.280579,40.979898",
|
||||
"bounds": "-135.000000,37.874853,-122.280579,40.979898",
|
||||
"center": "-122.299805,37.892187,12",
|
||||
"description": "tests/join-population/tabblock_06001420.mbtiles",
|
||||
"format": "pbf",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ "type": "FeatureCollection", "properties": {
|
||||
"antimeridian_adjusted_bounds": "-122.294655,37.695231,-122.104111,37.833107",
|
||||
"bounds": "-122.294655,37.695231,-122.104111,37.833107",
|
||||
"antimeridian_adjusted_bounds": "-122.294655,37.695231,-122.103424,37.833107",
|
||||
"bounds": "-122.294655,37.695231,-122.103424,37.833107",
|
||||
"center": "-122.167969,37.833010,9",
|
||||
"description": "tests/join-population/macarthur.mbtiles",
|
||||
"format": "pbf",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ "type": "FeatureCollection", "properties": {
|
||||
"antimeridian_adjusted_bounds": "-122.294655,37.695231,-122.104111,37.833107",
|
||||
"bounds": "-122.294655,37.695231,-122.104111,37.833107",
|
||||
"antimeridian_adjusted_bounds": "-122.294655,37.695231,-122.103424,37.833107",
|
||||
"bounds": "-122.294655,37.695231,-122.103424,37.833107",
|
||||
"center": "-122.167969,37.833010,9",
|
||||
"description": "tests/join-population/macarthur.mbtiles",
|
||||
"format": "pbf",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ "type": "FeatureCollection", "properties": {
|
||||
"antimeridian_adjusted_bounds": "-135.000000,37.877021,-122.280579,40.979898",
|
||||
"bounds": "-135.000000,37.877021,-122.280579,40.979898",
|
||||
"antimeridian_adjusted_bounds": "-135.000000,37.874853,-122.280579,40.979898",
|
||||
"bounds": "-135.000000,37.874853,-122.280579,40.979898",
|
||||
"center": "-122.299805,37.892187,12",
|
||||
"description": "tests/join-population/tabblock_06001420.mbtiles",
|
||||
"format": "pbf",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ "type": "FeatureCollection", "properties": {
|
||||
"antimeridian_adjusted_bounds": "-122.294655,37.695231,-122.103424,37.833107",
|
||||
"bounds": "-122.294655,37.695231,-122.103424,37.833107",
|
||||
"antimeridian_adjusted_bounds": "-122.294655,37.694688,-122.103424,37.833649",
|
||||
"bounds": "-122.294655,37.694688,-122.103424,37.833649",
|
||||
"center": "-122.167969,37.828608,10",
|
||||
"description": "tests/join-population/macarthur2.mbtiles",
|
||||
"format": "pbf",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ "type": "FeatureCollection", "properties": {
|
||||
"antimeridian_adjusted_bounds": "-122.294655,37.695231,-122.103424,37.833107",
|
||||
"bounds": "-122.294655,37.695231,-122.103424,37.833107",
|
||||
"antimeridian_adjusted_bounds": "-122.294655,37.694688,-122.103424,37.833649",
|
||||
"bounds": "-122.294655,37.694688,-122.103424,37.833649",
|
||||
"center": "-122.167969,37.833010,10",
|
||||
"description": "tests/join-population/macarthur.mbtiles",
|
||||
"format": "pbf",
|
||||
|
||||
+4
-4
@@ -1012,6 +1012,10 @@ void dispatch_tasks(std::map<zxy, std::vector<std::string>> &tasks, std::vector<
|
||||
for (size_t i = 0; i < CPUS; i++) {
|
||||
void *retval;
|
||||
|
||||
if (pthread_join(pthreads[i], &retval) != 0) {
|
||||
perror("pthread_join");
|
||||
}
|
||||
|
||||
*minlat = std::min(*minlat, args[i].minlat);
|
||||
*minlon = std::min(*minlon, args[i].minlon);
|
||||
*maxlat = std::max(*maxlat, args[i].maxlat);
|
||||
@@ -1019,10 +1023,6 @@ void dispatch_tasks(std::map<zxy, std::vector<std::string>> &tasks, std::vector<
|
||||
*minlon2 = std::min(*minlon2, args[i].minlon2);
|
||||
*maxlon2 = std::max(*maxlon2, args[i].maxlon2);
|
||||
|
||||
if (pthread_join(pthreads[i], &retval) != 0) {
|
||||
perror("pthread_join");
|
||||
}
|
||||
|
||||
for (auto ai = args[i].outputs.begin(); ai != args[i].outputs.end(); ++ai) {
|
||||
if (outdb != NULL) {
|
||||
mbtiles_write_tile(outdb, ai->first.z, ai->first.x, ai->first.y, ai->second.data(), ai->second.size());
|
||||
|
||||
Reference in New Issue
Block a user