mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-02-02 01:08:14 +00:00
Unlink tmp files early in case the tiling doesn't run to completion
This commit is contained in:
parent
b5d28af005
commit
9fd4da4f7d
@ -407,6 +407,9 @@ void read_json(FILE *f) {
|
|||||||
FILE *indexfile = fopen(indexname, "wb");
|
FILE *indexfile = fopen(indexname, "wb");
|
||||||
long long fpos = 0;
|
long long fpos = 0;
|
||||||
|
|
||||||
|
unlink(metaname);
|
||||||
|
unlink(indexname);
|
||||||
|
|
||||||
unsigned file_bbox[] = { UINT_MAX, UINT_MAX, 0, 0 };
|
unsigned file_bbox[] = { UINT_MAX, UINT_MAX, 0, 0 };
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
@ -561,9 +564,6 @@ next_feature:
|
|||||||
|
|
||||||
close(indexfd);
|
close(indexfd);
|
||||||
close(metafd);
|
close(metafd);
|
||||||
|
|
||||||
unlink(metaname);
|
|
||||||
unlink(indexname);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user