mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-05 09:55:41 +02:00
Fix inconsistent indentation
This commit is contained in:
@@ -46,13 +46,13 @@ static inline int compress(std::string const& input, std::string& output) {
|
|||||||
void write_tile(struct index *start, struct index *end, char *metabase, unsigned *file_bbox, int z, unsigned tx, unsigned ty, int detail) {
|
void write_tile(struct index *start, struct index *end, char *metabase, unsigned *file_bbox, int z, unsigned tx, unsigned ty, int detail) {
|
||||||
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
||||||
|
|
||||||
mapnik::vector::tile tile;
|
mapnik::vector::tile tile;
|
||||||
mapnik::vector::tile_layer *layer = tile.add_layers();
|
mapnik::vector::tile_layer *layer = tile.add_layers();
|
||||||
|
|
||||||
layer->set_name("name");
|
layer->set_name("name");
|
||||||
layer->set_version(1);
|
layer->set_version(1);
|
||||||
|
|
||||||
layer->set_extent(1 << detail);
|
layer->set_extent(1 << detail);
|
||||||
|
|
||||||
struct pool keys;
|
struct pool keys;
|
||||||
keys.n = 0;
|
keys.n = 0;
|
||||||
@@ -172,12 +172,12 @@ void write_tile(struct index *start, struct index *end, char *metabase, unsigned
|
|||||||
}
|
}
|
||||||
pool_free(&keys);
|
pool_free(&keys);
|
||||||
|
|
||||||
std::string s;
|
std::string s;
|
||||||
std::string compressed;
|
std::string compressed;
|
||||||
|
|
||||||
tile.SerializeToString(&s);
|
tile.SerializeToString(&s);
|
||||||
compress(s, compressed);
|
compress(s, compressed);
|
||||||
//std::cout << compressed;
|
//std::cout << compressed;
|
||||||
|
|
||||||
const char *prefix = "tiles";
|
const char *prefix = "tiles";
|
||||||
char path[strlen(prefix) + 200];
|
char path[strlen(prefix) + 200];
|
||||||
|
|||||||
Reference in New Issue
Block a user