mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-04-01 16:30:35 +00:00
Fix RFC 8142 support: Don't try to split *all* memory mapped files
This commit is contained in:
parent
1669d96510
commit
acdb5b72db
@ -1,3 +1,7 @@
|
||||
## 1.17.4
|
||||
|
||||
* Fix RFC 8142 support: Don't try to split *all* memory mapped files
|
||||
|
||||
## 1.17.3
|
||||
|
||||
* Support RFC 8142 GeoJSON text sequences
|
||||
|
4
main.cpp
4
main.cpp
@ -1202,7 +1202,7 @@ int read_input(std::vector<source> &sources, char *fname, int &maxzoom, int minz
|
||||
char *map = NULL;
|
||||
off_t off = 0;
|
||||
|
||||
int read_parallel_this = read_parallel ? '\n' : 0x1E;
|
||||
int read_parallel_this = read_parallel ? '\n' : 0;
|
||||
|
||||
if (1) {
|
||||
if (fstat(fd, &st) == 0) {
|
||||
@ -1234,7 +1234,7 @@ int read_input(std::vector<source> &sources, char *fname, int &maxzoom, int minz
|
||||
}
|
||||
}
|
||||
|
||||
if (map != NULL && map != MAP_FAILED) {
|
||||
if (map != NULL && map != MAP_FAILED && read_parallel_this) {
|
||||
do_read_parallel(map, st.st_size - off, overall_offset, reading.c_str(), reader, &progress_seq, exclude, include, exclude_all, fname, basezoom, layer, nlayers, &layermaps, droprate, initialized, initial_x, initial_y, maxzoom, sources[layer].layer, uses_gamma, attribute_types, read_parallel_this);
|
||||
overall_offset += st.st_size - off;
|
||||
checkdisk(reader, CPUS);
|
||||
|
@ -1 +1 @@
|
||||
#define VERSION "tippecanoe v1.17.3\n"
|
||||
#define VERSION "tippecanoe v1.17.4\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user