mirror of
https://github.com/felt/tippecanoe.git
synced 2026-11-29 11:51:19 +01:00
Compare commits
8
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3ab917a450 | ||
|
|
c0139c6b82 | ||
|
|
d14c03852f | ||
|
|
ad1f7f5410 | ||
|
|
b0cf9f63da | ||
|
|
96f22475a9 | ||
|
|
5ceebeea2f | ||
|
|
02994bccd5 |
@@ -11,15 +11,17 @@
|
||||
#include "serial.hpp"
|
||||
|
||||
struct index {
|
||||
long long start = 0;
|
||||
long long start = 0; // offset of data in geom file
|
||||
long long end = 0;
|
||||
unsigned long long ix = 0;
|
||||
short segment = 0;
|
||||
unsigned short t : 2;
|
||||
unsigned long long seq : (64 - 18); // pack with segment and t to stay in 32 bytes
|
||||
unsigned long long ix = 0; // quadkey or hilbert index
|
||||
unsigned short segment; // which reader thread produced this feature
|
||||
unsigned short t : 2; // geometry type
|
||||
unsigned short dup : 8; // instance number of identical geometry
|
||||
unsigned long long seq : (64 - 16 - 2 - 8); // input sequence number; pack with segment and t and dup to stay in 32 bytes
|
||||
|
||||
index()
|
||||
: t(0),
|
||||
dup(0),
|
||||
seq(0) {
|
||||
}
|
||||
};
|
||||
|
||||
+1
-1
@@ -882,8 +882,8 @@ int serialize_feature(struct serialization_state *sst, serial_feature &sf, std::
|
||||
struct index index;
|
||||
index.start = geomstart;
|
||||
index.end = r->geompos;
|
||||
index.segment = sst->segment;
|
||||
index.seq = *(sst->layer_seq);
|
||||
index.segment = sst->segment;
|
||||
index.t = sf.t;
|
||||
index.ix = bbox_index;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user