mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-05 01:45:41 +02:00
Get rid of the "segment" field of the index, which is no longer used
This commit is contained in:
@@ -11,15 +11,16 @@
|
|||||||
#include "serial.hpp"
|
#include "serial.hpp"
|
||||||
|
|
||||||
struct index {
|
struct index {
|
||||||
long long start = 0;
|
long long start = 0; // offset of data in geom file
|
||||||
long long end = 0;
|
long long end = 0;
|
||||||
unsigned long long ix = 0;
|
unsigned long long ix = 0; // quadkey or hilbert index
|
||||||
short segment = 0;
|
unsigned short t : 2; // geometry type
|
||||||
unsigned short t : 2;
|
unsigned short dup : 8; // instance number of identical geometry
|
||||||
unsigned long long seq : (64 - 18); // pack with segment and t to stay in 32 bytes
|
unsigned long long seq : (64 - 2 - 8); // input sequence number; pack with t and dup to stay in 32 bytes
|
||||||
|
|
||||||
index()
|
index()
|
||||||
: t(0),
|
: t(0),
|
||||||
|
dup(0),
|
||||||
seq(0) {
|
seq(0) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -882,7 +882,6 @@ int serialize_feature(struct serialization_state *sst, serial_feature &sf, std::
|
|||||||
struct index index;
|
struct index index;
|
||||||
index.start = geomstart;
|
index.start = geomstart;
|
||||||
index.end = r->geompos;
|
index.end = r->geompos;
|
||||||
index.segment = sst->segment;
|
|
||||||
index.seq = *(sst->layer_seq);
|
index.seq = *(sst->layer_seq);
|
||||||
index.t = sf.t;
|
index.t = sf.t;
|
||||||
index.ix = bbox_index;
|
index.ix = bbox_index;
|
||||||
|
|||||||
Reference in New Issue
Block a user