mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-03 00:45:41 +02:00
* Factoring out tilestats management from GeoJSON file reading * Move code around so overzoom can link against parse_layers * Read the file of bins * Plumb the bins through to overzoom() * Some zip code bins to test with * (Currently non-functional) test of binning * Starting to spell out the bin matching loop * Can't flatten points, so don't flatten bins either * More fleshing out bin traversal * Bounding box of tile-relative mvt geometry * Smallest enclosing tile from bbox * Most of the bin scan * Add point in polygon check. It crashes. * Find the matching bins * GDAL-style bounding boxes have eaten my brain * Make some features to bin into * Increment a count as features are found to be within the bins * Fix longitude wraparound in overzoom bins * Fix the tests * Push off attribute copying until after bin assignment * Carry sum of numeric attributes into the bins * Also add mean, min, and max * Add --calculate-feature-index since I keep needing it for testing * Add an option to accumulate sum/mean/max/min/count of all numeric attrs * Don't bake in tippecanoe:mean, since we redo it from sum and count * Forgot to update this test fixture after removing tiled mean * Update version and changelog
57 lines
1.9 KiB
C++
57 lines
1.9 KiB
C++
#ifndef OPTIONS_HPP
|
|
#define OPTIONS_HPP
|
|
|
|
#define A_DEBUG_POLYGON ((int) '@')
|
|
#define A_CLUSTER_DENSEST_AS_NEEDED ((int) 'C')
|
|
#define A_COALESCE_FRACTION_AS_NEEDED ((int) 'D')
|
|
#define A_INCREASE_GAMMA_AS_NEEDED ((int) 'G')
|
|
#define A_CONVERT_NUMERIC_IDS ((int) 'I')
|
|
#define A_GRID_LOW_ZOOMS ((int) 'L')
|
|
#define A_COALESCE_SMALLEST_AS_NEEDED ((int) 'N')
|
|
#define A_GENERATE_POLYGON_LABEL_POINTS ((int) 'P')
|
|
#define A_PREFER_RADIX_SORT ((int) 'R')
|
|
#define A_COALESCE_DENSEST_AS_NEEDED ((int) 'S')
|
|
#define A_CALCULATE_INDEX ((int) 'X')
|
|
#define A_ACCUMULATE_NUMERIC ((int) 'a')
|
|
#define A_DETECT_SHARED_BORDERS ((int) 'b')
|
|
#define A_COALESCE ((int) 'c')
|
|
#define A_DROP_FRACTION_AS_NEEDED ((int) 'd')
|
|
#define A_EXTEND_ZOOMS ((int) 'e')
|
|
#define A_CALCULATE_FEATURE_DENSITY ((int) 'g')
|
|
#define A_HILBERT ((int) 'h')
|
|
#define A_GENERATE_IDS ((int) 'i')
|
|
#define A_LINE_DROP ((int) 'l')
|
|
#define A_DROP_SMALLEST_AS_NEEDED ((int) 'n')
|
|
#define A_REORDER ((int) 'o')
|
|
#define A_POLYGON_DROP ((int) 'p')
|
|
#define A_REVERSE ((int) 'r')
|
|
#define A_DROP_DENSEST_AS_NEEDED ((int) 's')
|
|
#define A_VARIABLE_DEPTH_PYRAMID ((int) 't')
|
|
#define A_VISVALINGAM ((int) 'v')
|
|
#define A_DETECT_WRAPAROUND ((int) 'w')
|
|
|
|
#define P_TILE_COMPRESSION ((int) 'C')
|
|
#define P_DUPLICATION ((int) 'D')
|
|
#define P_SINGLE_PRECISION ((int) 'N')
|
|
#define P_SIMPLIFY_LOW ((int) 'S')
|
|
#define P_TINY_POLYGON_REDUCTION_AT_MAXZOOM ((int) 'T')
|
|
#define P_REVERSE_SOURCE_POLYGON_WINDING ((int) 'W')
|
|
#define P_BASEZOOM_ABOVE_MAXZOOM ((int) 'b')
|
|
#define P_CLIPPING ((int) 'c')
|
|
#define P_DYNAMIC_DROP ((int) 'd')
|
|
#define P_EMPTY_CSV_COLUMNS ((int) 'e')
|
|
#define P_FEATURE_LIMIT ((int) 'f')
|
|
#define P_TILE_STATS ((int) 'g')
|
|
#define P_INPUT_ORDER ((int) 'i')
|
|
#define P_KILOBYTE_LIMIT ((int) 'k')
|
|
#define P_SIMPLIFY_SHARED_NODES ((int) 'n')
|
|
#define P_POLYGON_SPLIT ((int) 'p')
|
|
#define P_SIMPLIFY ((int) 's')
|
|
#define P_TINY_POLYGON_REDUCTION ((int) 't')
|
|
#define P_USE_SOURCE_POLYGON_WINDING ((int) 'w')
|
|
|
|
extern int prevent[256];
|
|
extern int additional[256];
|
|
|
|
#endif
|