mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-06-04 08:40:46 +00:00
Reindent with clang-format (#3)
This commit is contained in:
parent
e6ab02ddd3
commit
6978a0e102
@ -16,7 +16,12 @@
|
|||||||
// XXX duplicated
|
// XXX duplicated
|
||||||
#define GEOM_TYPES 6
|
#define GEOM_TYPES 6
|
||||||
static const char *geometry_names[GEOM_TYPES] = {
|
static const char *geometry_names[GEOM_TYPES] = {
|
||||||
"Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon",
|
"Point",
|
||||||
|
"MultiPoint",
|
||||||
|
"LineString",
|
||||||
|
"MultiLineString",
|
||||||
|
"Polygon",
|
||||||
|
"MultiPolygon",
|
||||||
};
|
};
|
||||||
|
|
||||||
// XXX duplicated
|
// XXX duplicated
|
||||||
|
@ -4,5 +4,5 @@
|
|||||||
#include "json_logger.hpp"
|
#include "json_logger.hpp"
|
||||||
|
|
||||||
void json_logger::progress_tile(double progress) {
|
void json_logger::progress_tile(double progress) {
|
||||||
fprintf(stderr,"{\"progress\":%3.1f}\n",progress);
|
fprintf(stderr, "{\"progress\":%3.1f}\n", progress);
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
#ifndef LOGGING_HPP
|
#ifndef LOGGING_HPP
|
||||||
#define LOGGING_HPP
|
#define LOGGING_HPP
|
||||||
|
|
||||||
|
|
||||||
struct json_logger {
|
struct json_logger {
|
||||||
bool json_enabled = false;
|
bool json_enabled = false;
|
||||||
|
|
||||||
|
4
main.cpp
4
main.cpp
@ -3258,7 +3258,9 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
long long file_bbox[4] = {UINT_MAX, UINT_MAX, 0, 0};
|
long long file_bbox[4] = {UINT_MAX, UINT_MAX, 0, 0};
|
||||||
|
|
||||||
ret = read_input(sources, name ? name : out_mbtiles ? out_mbtiles : out_dir, maxzoom, minzoom, basezoom, basezoom_marker_width, outdb, out_dir, &exclude, &include, exclude_all, filter, droprate, buffer, tmpdir, gamma, read_parallel, forcetable, attribution, gamma != 0, file_bbox, prefilter, postfilter, description, guess_maxzoom, &attribute_types, argv[0], &attribute_accum, attribute_descriptions, commandline);
|
ret = read_input(sources, name ? name : out_mbtiles ? out_mbtiles
|
||||||
|
: out_dir,
|
||||||
|
maxzoom, minzoom, basezoom, basezoom_marker_width, outdb, out_dir, &exclude, &include, exclude_all, filter, droprate, buffer, tmpdir, gamma, read_parallel, forcetable, attribution, gamma != 0, file_bbox, prefilter, postfilter, description, guess_maxzoom, &attribute_types, argv[0], &attribute_accum, attribute_descriptions, commandline);
|
||||||
|
|
||||||
if (outdb != NULL) {
|
if (outdb != NULL) {
|
||||||
mbtiles_close(outdb, argv[0]);
|
mbtiles_close(outdb, argv[0]);
|
||||||
|
@ -14,7 +14,12 @@
|
|||||||
#include "milo/dtoa_milo.h"
|
#include "milo/dtoa_milo.h"
|
||||||
|
|
||||||
const char *geometry_names[GEOM_TYPES] = {
|
const char *geometry_names[GEOM_TYPES] = {
|
||||||
"Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon",
|
"Point",
|
||||||
|
"MultiPoint",
|
||||||
|
"LineString",
|
||||||
|
"MultiLineString",
|
||||||
|
"Polygon",
|
||||||
|
"MultiPolygon",
|
||||||
};
|
};
|
||||||
|
|
||||||
int geometry_within[GEOM_TYPES] = {
|
int geometry_within[GEOM_TYPES] = {
|
||||||
@ -27,7 +32,12 @@ int geometry_within[GEOM_TYPES] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
int mb_geometry[GEOM_TYPES] = {
|
int mb_geometry[GEOM_TYPES] = {
|
||||||
VT_POINT, VT_POINT, VT_LINE, VT_LINE, VT_POLYGON, VT_POLYGON,
|
VT_POINT,
|
||||||
|
VT_POINT,
|
||||||
|
VT_LINE,
|
||||||
|
VT_LINE,
|
||||||
|
VT_POLYGON,
|
||||||
|
VT_POLYGON,
|
||||||
};
|
};
|
||||||
|
|
||||||
void json_context(json_object *j) {
|
void json_context(json_object *j) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user