{"id":13419817,"url":"https://github.com/mapbox/tippecanoe","last_synced_at":"2025-05-14T23:04:33.794Z","repository":{"id":21204291,"uuid":"24517087","full_name":"mapbox/tippecanoe","owner":"mapbox","description":"Build vector tilesets from large collections of GeoJSON features.","archived":false,"fork":false,"pushed_at":"2024-04-02T11:11:21.000Z","size":32423,"stargazers_count":2836,"open_issues_count":215,"forks_count":432,"subscribers_count":203,"default_branch":"master","last_synced_at":"2025-04-21T08:56:57.538Z","etag":null,"topics":["c-plus-plus","geojson","vector-tiles"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mapbox.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-09-26T22:16:45.000Z","updated_at":"2025-04-19T17:56:48.000Z","dependencies_parsed_at":"2024-01-12T04:43:58.461Z","dependency_job_id":"5812dc8c-aee0-44b0-ae77-2d957387d7e6","html_url":"https://github.com/mapbox/tippecanoe","commit_stats":{"total_commits":1430,"total_committers":26,"mean_commits":55.0,"dds":0.058041958041958,"last_synced_commit":"18e53cd7fb9ae6be8b89d817d69d3ce06f30eb9d"},"previous_names":[],"tags_count":87,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapbox%2Ftippecanoe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapbox%2Ftippecanoe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapbox%2Ftippecanoe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapbox%2Ftippecanoe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mapbox","download_url":"https://codeload.github.com/mapbox/tippecanoe/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254243358,"owners_count":22038046,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c-plus-plus","geojson","vector-tiles"],"created_at":"2024-07-30T22:01:21.300Z","updated_at":"2025-05-14T23:04:28.735Z","avatar_url":"https://github.com/mapbox.png","language":"C++","readme":"tippecanoe\n==========\n\n**Note**: there is an active fork of this project over at https://github.com/felt/tippecanoe\n\nBuilds [vector tilesets](https://www.mapbox.com/developers/vector-tiles/) from large (or small) collections of [GeoJSON](http://geojson.org/), [Geobuf](https://github.com/mapbox/geobuf), or [CSV](https://en.wikipedia.org/wiki/Comma-separated_values) features,\n[like these](MADE_WITH.md).\n\n![Mapbox Tippecanoe](https://user-images.githubusercontent.com/1951835/36568734-ede27ec0-17df-11e8-8c22-ffaaebb8daf4.JPG)\n\n[![Build Status](https://travis-ci.org/mapbox/tippecanoe.svg)](https://travis-ci.org/mapbox/tippecanoe)\n[![Coverage Status](https://codecov.io/gh/mapbox/tippecanoe/branch/master/graph/badge.svg)](https://codecov.io/gh/mapbox/tippecanoe)\n\n### :zap: Mapbox has a new service for creating vector tilesets! :zap:\n\n[Mapbox Tiling Service (MTS)](https://docs.mapbox.com/mapbox-tiling-service/overview/) is a hosted, data processing service that allows you to integrate custom datasets of any scale into your maps faster, cheaper, and with more flexibility and control than previously possible.\n\nMTS is the same service we use internally to create our global, daily updating basemap product Mapbox Streets, which serves over 650 million monthly active users and customers such as Facebook, Snap, the Weather Channel, Tableau, and Shopify. \n\nMTS creates and updates data using distributed and parallelized processing, meaning data is processed much more quickly than is possible with a standard, single server setup with comparable tools. For example, a global basemap at 30cm precision (max zoom of 16) can be processed in under 2 hours with MTS, whereas a comparable workload would take multiple days to process on a single server.\n\nCustomers like AllTrails, Plume Labs, and Ookla have noted that MTS helps them:\n- build applications faster by focusing more on app development, not infrastructure\n- build more compelling user experiences that drive better user engagement\n- get updated data to their users faster—in some cases up to 90% faster than previous tools\n\nLearn more about [MTS](https://blog.mapbox.com/introducing-mapbox-tiling-service-df1df636c7cf).\n\nIntent\n------\n\nThe goal of Tippecanoe is to enable making a scale-independent view of your data,\nso that at any level from the entire world to a single building, you can see\nthe density and texture of the data rather than a simplification from dropping\nsupposedly unimportant features or clustering or aggregating them.\n\nIf you give it all of OpenStreetMap and zoom out, it should give you back\nsomething that looks like \"[All Streets](http://benfry.com/allstreets/map5.html)\"\nrather than something that looks like an Interstate road atlas.\n\nIf you give it all the building footprints in Los Angeles and zoom out\nfar enough that most individual buildings are no longer discernable, you\nshould still be able to see the extent and variety of development in every neighborhood,\nnot just the largest downtown buildings.\n\nIf you give it a collection of years of tweet locations, you should be able to\nsee the shape and relative popularity of every point of interest and every\nsignificant travel corridor.\n\nInstallation\n------------\n\nThe easiest way to install tippecanoe on OSX is with [Homebrew](http://brew.sh/):\n\n```sh\n$ brew install tippecanoe\n```\n\nOn Ubuntu it will usually be easiest to build from the source repository:\n\n```sh\n$ git clone https://github.com/mapbox/tippecanoe.git\n$ cd tippecanoe\n$ make -j\n$ make install\n```\n\nSee [Development](#development) below for how to upgrade your\nC++ compiler or install prerequisite packages if you get\ncompiler errors.\n\nUsage\n-----\n\n```sh\n$ tippecanoe -o file.mbtiles [options] [file.json file.json.gz file.geobuf ...]\n```\n\nIf no files are specified, it reads GeoJSON from the standard input.\nIf multiple files are specified, each is placed in its own layer.\n\nThe GeoJSON features need not be wrapped in a FeatureCollection.\nYou can concatenate multiple GeoJSON features or files together,\nand it will parse out the features and ignore whatever other objects\nit encounters.\n\nTry this first\n--------------\n\nIf you aren't sure what options to use, try this:\n\n```sh\n$ tippecanoe -zg -o out.mbtiles --drop-densest-as-needed in.geojson\n```\n\nThe `-zg` option will make Tippecanoe choose a maximum zoom level that should be\nhigh enough to reflect the precision of the original data. (If it turns out still\nnot to be as detailed as you want, use `-z` manually with a higher number.)\n\nIf the tiles come out too big, the `--drop-densest-as-needed` option will make\nTippecanoe try dropping what should be the least visible features at each zoom level.\n(If it drops too many features, use `-x` to leave out some feature attributes that\nyou didn't really need.)\n\nExamples\n--------\n\nCreate a tileset of TIGER roads for Alameda County, to zoom level 13, with a custom layer name and description:\n\n```sh\n$ tippecanoe -o alameda.mbtiles -l alameda -n \"Alameda County from TIGER\" -z13 tl_2014_06001_roads.json\n```\n\nCreate a tileset of all TIGER roads, at only zoom level 12, but with higher detail than normal,\nwith a custom layer name and description, and leaving out the `LINEARID` and `RTTYP` attributes:\n\n```\n$ cat tiger/tl_2014_*_roads.json | tippecanoe -o tiger.mbtiles -l roads -n \"All TIGER roads, one zoom\" -z12 -Z12 -d14 -x LINEARID -x RTTYP\n```\n\nCookbook\n--------\n\n### Linear features (world railroads), visible at all zoom levels\n\n```\ncurl -L -O https://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_railroads.zip\nunzip ne_10m_railroads.zip\nogr2ogr -f GeoJSON ne_10m_railroads.geojson ne_10m_railroads.shp\n\ntippecanoe -zg -o ne_10m_railroads.mbtiles --drop-densest-as-needed --extend-zooms-if-still-dropping ne_10m_railroads.geojson\n```\n\n* `-zg`: Automatically choose a maxzoom that should be sufficient to clearly distinguish the features and the detail within each feature\n* `--drop-densest-as-needed`: If the tiles are too big at low zoom levels, drop the least-visible features to allow tiles to be created with those features that remain\n* `--extend-zooms-if-still-dropping`: If even the tiles at high zoom levels are too big, keep adding zoom levels until one is reached that can represent all the features\n\n### Discontinuous polygon features (buildings of Rhode Island), visible at all zoom levels\n\n```\ncurl -L -O https://usbuildingdata.blob.core.windows.net/usbuildings-v1-1/RhodeIsland.zip\nunzip RhodeIsland.zip\n\ntippecanoe -zg -o RhodeIsland.mbtiles --drop-densest-as-needed --extend-zooms-if-still-dropping RhodeIsland.geojson\n```\n\n* `-zg`: Automatically choose a maxzoom that should be sufficient to clearly distinguish the features and the detail within each feature\n* `--drop-densest-as-needed`: If the tiles are too big at low or medium zoom levels, drop the least-visible features to allow tiles to be created with those features that remain\n* `--extend-zooms-if-still-dropping`: If even the tiles at high zoom levels are too big, keep adding zoom levels until one is reached that can represent all the features\n\n### Continuous polygon features (states and provinces), visible at all zoom levels\n\n```\ncurl -L -O https://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_admin_1_states_provinces.zip\nunzip -o ne_10m_admin_1_states_provinces.zip\nogr2ogr -f GeoJSON ne_10m_admin_1_states_provinces.geojson ne_10m_admin_1_states_provinces.shp\n\ntippecanoe -zg -o ne_10m_admin_1_states_provinces.mbtiles --coalesce-densest-as-needed --extend-zooms-if-still-dropping ne_10m_admin_1_states_provinces.geojson\n```\n\n* `-zg`: Automatically choose a maxzoom that should be sufficient to clearly distinguish the features and the detail within each feature\n* `--coalesce-densest-as-needed`: If the tiles are too big at low or medium zoom levels, merge as many features together as are necessary to allow tiles to be created with those features that are still distinguished\n* `--extend-zooms-if-still-dropping`: If even the tiles at high zoom levels are too big, keep adding zoom levels until one is reached that can represent all the features\n\n### Large point dataset (GPS bus locations), for visualization at all zoom levels\n\n```\ncurl -L -O ftp://avl-data.sfmta.com/avl_data/avl_raw/sfmtaAVLRawData01012013.csv\nsed 's/PREDICTABLE.*/PREDICTABLE/' sfmtaAVLRawData01012013.csv \u003e sfmta.csv\ntippecanoe -zg -o sfmta.mbtiles --drop-densest-as-needed --extend-zooms-if-still-dropping sfmta.csv\n```\n\n(The `sed` line is to clean the corrupt CSV header, which contains the wrong number of fields.)\n\n* `-zg`: Automatically choose a maxzoom that should be sufficient to clearly distinguish the features and the detail within each feature\n* `--drop-densest-as-needed`: If the tiles are too big at low or medium zoom levels, drop the least-visible features to allow tiles to be created with those features that remain\n* `--extend-zooms-if-still-dropping`: If even the tiles at high zoom levels are too big, keep adding zoom levels until one is reached that can represent all the features\n\n### Clustered points (world cities), summing the clustered population, visible at all zoom levels\n\n```\ncurl -L -O https://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_populated_places.zip\nunzip -o ne_10m_populated_places.zip\nogr2ogr -f GeoJSON ne_10m_populated_places.geojson ne_10m_populated_places.shp\n\ntippecanoe -zg -o ne_10m_populated_places.mbtiles -r1 --cluster-distance=10 --accumulate-attribute=POP_MAX:sum ne_10m_populated_places.geojson\n```\n\n* `-zg`: Automatically choose a maxzoom that should be sufficient to clearly distinguish the features and the detail within each feature\n* `-r1`: Do not automatically drop a fraction of points at low zoom levels, since clustering will be used instead\n* `--cluster-distance=10`: Cluster together features that are closer than about 10 pixels from each other\n* `--accumulate-attribute=POP_MAX:sum`: Sum the `POP_MAX` (population) attribute in features that are clustered together. Other attributes will be arbitrarily taken from the first feature in the cluster.\n\n### Show countries at low zoom levels but states at higher zoom levels\n\n```\ncurl -L -O https://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_admin_0_countries.zip\nunzip ne_10m_admin_0_countries.zip\nogr2ogr -f GeoJSON ne_10m_admin_0_countries.geojson ne_10m_admin_0_countries.shp\n\ncurl -L -O https://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_admin_1_states_provinces.zip\nunzip -o ne_10m_admin_1_states_provinces.zip\nogr2ogr -f GeoJSON ne_10m_admin_1_states_provinces.geojson ne_10m_admin_1_states_provinces.shp\n\ntippecanoe -z3 -o countries-z3.mbtiles --coalesce-densest-as-needed ne_10m_admin_0_countries.geojson\ntippecanoe -zg -Z4 -o states-Z4.mbtiles --coalesce-densest-as-needed --extend-zooms-if-still-dropping ne_10m_admin_1_states_provinces.geojson\ntile-join -o states-countries.mbtiles countries-z3.mbtiles states-Z4.mbtiles\n```\n\nCountries:\n\n* `-z3`: Only generate zoom levels 0 through 3\n* `--coalesce-densest-as-needed`: If the tiles are too big at low or medium zoom levels, merge as many features together as are necessary to allow tiles to be created with those features that are still distinguished\n\nStates and Provinces:\n\n* `-Z4`: Only generate zoom levels 4 and beyond\n* `-zg`: Automatically choose a maxzoom that should be sufficient to clearly distinguish the features and the detail within each feature\n* `--coalesce-densest-as-needed`: If the tiles are too big at low or medium zoom levels, merge as many features together as are necessary to allow tiles to be created with those features that are still distinguished\n* `--extend-zooms-if-still-dropping`: If even the tiles at high zoom levels are too big, keep adding zoom levels until one is reached that can represent all the features\n\n### Represent multiple sources (Illinois and Indiana counties) as separate layers\n\n```\ncurl -L -O https://www2.census.gov/geo/tiger/TIGER2010/COUNTY/2010/tl_2010_17_county10.zip\nunzip tl_2010_17_county10.zip\nogr2ogr -f GeoJSON tl_2010_17_county10.geojson tl_2010_17_county10.shp\n\ncurl -L -O https://www2.census.gov/geo/tiger/TIGER2010/COUNTY/2010/tl_2010_18_county10.zip\nunzip tl_2010_18_county10.zip\nogr2ogr -f GeoJSON tl_2010_18_county10.geojson tl_2010_18_county10.shp\n\ntippecanoe -zg -o counties-separate.mbtiles --coalesce-densest-as-needed --extend-zooms-if-still-dropping tl_2010_17_county10.geojson tl_2010_18_county10.geojson\n```\n\n* `-zg`: Automatically choose a maxzoom that should be sufficient to clearly distinguish the features and the detail within each feature\n* `--coalesce-densest-as-needed`: If the tiles are too big at low or medium zoom levels, merge as many features together as are necessary to allow tiles to be created with those features that are still distinguished\n* `--extend-zooms-if-still-dropping`: If even the tiles at high zoom levels are too big, keep adding zoom levels until one is reached that can represent all the features\n\n### Merge multiple sources (Illinois and Indiana counties) into the same layer\n\n```\ncurl -L -O https://www2.census.gov/geo/tiger/TIGER2010/COUNTY/2010/tl_2010_17_county10.zip\nunzip tl_2010_17_county10.zip\nogr2ogr -f GeoJSON tl_2010_17_county10.geojson tl_2010_17_county10.shp\n\ncurl -L -O https://www2.census.gov/geo/tiger/TIGER2010/COUNTY/2010/tl_2010_18_county10.zip\nunzip tl_2010_18_county10.zip\nogr2ogr -f GeoJSON tl_2010_18_county10.geojson tl_2010_18_county10.shp\n\ntippecanoe -zg -o counties-merged.mbtiles -l counties --coalesce-densest-as-needed --extend-zooms-if-still-dropping tl_2010_17_county10.geojson tl_2010_18_county10.geojson\n```\n\nAs above, but\n\n* `-l counties`: Specify the layer name instead of letting it be derived from the source file names\n\n### Selectively remove and replace features (Census tracts) to update a tileset\n\n```\n# Retrieve and tile California 2000 Census tracts\ncurl -L -O https://www2.census.gov/geo/tiger/TIGER2010/TRACT/2000/tl_2010_06_tract00.zip\nunzip tl_2010_06_tract00.zip\nogr2ogr -f GeoJSON tl_2010_06_tract00.shp.json tl_2010_06_tract00.shp\ntippecanoe -z11 -o tracts.mbtiles -l tracts tl_2010_06_tract00.shp.json\n\n# Create a copy of the tileset, minus Alameda County (FIPS code 001)\ntile-join -j '{\"*\":[\"none\",[\"==\",\"COUNTYFP00\",\"001\"]]}' -f -o tracts-filtered.mbtiles tracts.mbtiles\n\n# Retrieve and tile Alameda County Census tracts for 2010\ncurl -L -O https://www2.census.gov/geo/tiger/TIGER2010/TRACT/2010/tl_2010_06001_tract10.zip\nunzip tl_2010_06001_tract10.zip\nogr2ogr -f GeoJSON tl_2010_06001_tract10.shp.json tl_2010_06001_tract10.shp\ntippecanoe -z11 -o tracts-added.mbtiles -l tracts tl_2010_06001_tract10.shp.json\n\n# Merge the filtered tileset and the tileset of new tracts into a final tileset\ntile-join -o tracts-final.mbtiles tracts-filtered.mbtiles tracts-added.mbtiles\n```\n\nThe `-z11` option explicitly specifies the maxzoom, to make sure both the old and new tilesets have the same zoom range.\n\nThe `-j` option to `tile-join` specifies a filter, so that only the desired features will be copied to the new tileset.\nThis filter excludes (using `none`) any features whose FIPS code (`COUNTYFP00`) is the code for Alameda County (`001`).\n\nOptions\n-------\n\nThere are a lot of options. A lot of the time you won't want to use any of them\nother than `-o` _output_`.mbtiles` to name the output file, and probably `-f` to\ndelete the file that already exists with that name.\n\nIf you aren't sure what the right maxzoom is for your data, `-zg` will guess one for you\nbased on the density of features.\n\nTippecanoe will normally drop a fraction of point features at zooms below the maxzoom,\nto keep the low-zoom tiles from getting too big. If you have a smaller data set where\nall the points would fit without dropping any of them, use `-r1` to keep them all.\nIf you do want point dropping, but you still want the tiles to be denser than `-zg`\nthinks they should be, use `-B` to set a basezoom lower than the maxzoom.\n\nIf some of your tiles are coming out too big in spite of the settings above, you will\noften want to use `--drop-densest-as-needed` to drop whatever fraction of the features\nis necessary at each zoom level to make that zoom level's tiles work.\n\nIf your features have a lot of attributes, use `-y` to keep only the ones you really need.\n\nIf your input is formatted as newline-delimited GeoJSON, use `-P` to make input parsing a lot faster.\n\n### Output tileset\n\n * `-o` _file_`.mbtiles` or `--output=`_file_`.mbtiles`: Name the output file.\n * `-e` _directory_ or `--output-to-directory`=_directory_: Write tiles to the specified *directory* instead of to an mbtiles file.\n * `-f` or `--force`: Delete the mbtiles file if it already exists instead of giving an error\n * `-F` or `--allow-existing`: Proceed (without deleting existing data) if the metadata or tiles table already exists\n   or if metadata fields can't be set. You probably don't want to use this.\n\n### Tileset description and attribution\n\n * `-n` _name_ or `--name=`_name_: Human-readable name for the tileset (default file.json)\n * `-A` _text_ or `--attribution=`_text_: Attribution (HTML) to be shown with maps that use data from this tileset.\n * `-N` _description_ or `--description=`_description_: Description for the tileset (default file.mbtiles)\n\n### Input files and layer names\n\n * _name_`.json` or _name_`.geojson`: Read the named GeoJSON input file into a layer called _name_.\n * _name_`.json.gz` or _name_`.geojson.gz`: Read the named gzipped GeoJSON input file into a layer called _name_.\n * _name_`.geobuf`: Read the named Geobuf input file into a layer called _name_.\n * _name_`.csv`: Read the named CSV input file into a layer called _name_.\n * `-l` _name_ or `--layer=`_name_: Use the specified layer name instead of deriving a name from the input filename or output tileset. If there are multiple input files\n   specified, the files are all merged into the single named layer, even if they try to specify individual names with `-L`.\n * `-L` _name_`:`_file.json_ or `--named-layer=`_name_`:`_file.json_: Specify layer names for individual files. If your shell supports it, you can use a subshell redirect like `-L` _name_`:\u003c(cat dir/*.json)` to specify a layer name for the output of streamed input.\n * `-L{`_layer-json_`}` or `--named-layer={`_layer-json_`}`: Specify an input file and layer options by a JSON object. The JSON object must contain a `\"file\"` key to specify the filename to read from. (If the `\"file\"` key is an empty string, it means to read from the standard input stream.) It may also contain a `\"layer\"` field to specify the name of the layer, and/or a `\"description\"` field to specify the layer's description in the tileset metadata, and/or a `\"format\"` field to specify `csv` or `geobuf` file format if it is not obvious from the `name`. Example:\n\n```\ntippecanoe -z5 -o world.mbtiles -L'{\"file\":\"ne_10m_admin_0_countries.json\", \"layer\":\"countries\", \"description\":\"Natural Earth countries\"}'\n```\n\nCSV input files currently support only Point geometries, from columns named `latitude`, `longitude`, `lat`, `lon`, `long`, `lng`, `x`, or `y`.\n\n### Parallel processing of input\n\n * `-P` or `--read-parallel`: Use multiple threads to read different parts of each GeoJSON input file at once.\n   This will only work if the input is line-delimited JSON with each Feature on its\n   own line, because it knows nothing of the top-level structure around the Features. Spurious \"EOF\" error\n   messages may result otherwise.\n   Performance will be better if the input is a named file that can be mapped into memory\n   rather than a stream that can only be read sequentially.\n\nIf the input file begins with the [RFC 8142](https://tools.ietf.org/html/rfc8142) record separator,\nparallel processing of input will be invoked automatically, splitting at record separators rather\nthan at all newlines.\n\nParallel processing will also be automatic if the input file is in Geobuf format.\n\n### Projection of input\n\n * `-s` _projection_ or `--projection=`_projection_: Specify the projection of the input data. Currently supported are `EPSG:4326` (WGS84, the default) and `EPSG:3857` (Web Mercator). In general you should use WGS84 for your input files if at all possible.\n\n### Zoom levels\n\n * `-z` _zoom_ or `--maximum-zoom=`_zoom_: Maxzoom: the highest zoom level for which tiles are generated (default 14)\n * `-zg` or `--maximum-zoom=g`: Guess what is probably a reasonable maxzoom based on the spacing of features.\n * `-Z` _zoom_ or `--minimum-zoom=`_zoom_: Minzoom: the lowest zoom level for which tiles are generated (default 0)\n * `-ae` or `--extend-zooms-if-still-dropping`: Increase the maxzoom if features are still being dropped at that zoom level.\n   The detail and simplification options that ordinarily apply only to the maximum zoom level will apply both to the originally\n   specified maximum zoom and to any levels added beyond that.\n * `-R` _zoom_`/`_x_`/`_y_ or `--one-tile=`_zoom_`/`_x_`/`_y_: Set the minzoom and maxzoom to _zoom_ and produce only\n   the single specified tile at that zoom level.\n\nIf you know the precision to which you want your data to be represented,\nor the map scale of a corresponding printed map,\nthis table shows the approximate precision and scale corresponding to various\n`-z` options if you use the default `-d` detail of 12:\n\nzoom level | precision (ft) | precision (m) | map scale\n---------- | -------------- | ------------- | ---------\n`-z0` | 32000 ft | 10000 m | 1:320,000,000\n`-z1` | 16000 ft | 5000 m | 1:160,000,000\n`-z2` | 8000 ft | 2500 m | 1:80,000,000\n`-z3` | 4000 ft | 1250 m | 1:40,000,000\n`-z4` | 2000 ft | 600 m | 1:20,000,000\n`-z5` | 1000 ft | 300 m | 1:10,000,000\n`-z6` | 500 ft | 150 m | 1:5,000,000\n`-z7` | 250 ft | 80 m | 1:2,500,000\n`-z8` | 125 ft | 40 m | 1:1,250,000\n`-z9` | 64 ft | 20 m | 1:640,000\n`-z10` | 32 ft | 10 m | 1:320,000\n`-z11` | 16 ft | 5 m | 1:160,000\n`-z12` | 8 ft | 2 m | 1:80,000\n`-z13` | 4 ft | 1 m | 1:40,000\n`-z14` | 2 ft | 0.5 m | 1:20,000\n`-z15` | 1 ft | 0.25 m | 1:10,000\n`-z16` | 6 in | 15 cm | 1:5000\n`-z17` | 3 in | 8 cm | 1:2500\n`-z18` | 1.5 in | 4 cm | 1:1250\n`-z19` | 0.8 in | 2 cm | 1:600\n`-z20` | 0.4 in | 1 cm | 1:300\n`-z21` | 0.2 in | 0.5 cm | 1:150\n`-z22` | 0.1 in | 0.25 cm | 1:75\n\n### Tile resolution\n\n * `-d` _detail_ or `--full-detail=`_detail_: Detail at max zoom level (default 12, for tile resolution of 2^12=4096)\n * `-D` _detail_ or `--low-detail=`_detail_: Detail at lower zoom levels (default 12, for tile resolution of 2^12=4096)\n * `-m` _detail_ or `--minimum-detail=`_detail_: Minimum detail that it will try if tiles are too big at regular detail (default 7)\n\nAll internal math is done in terms of a 32-bit tile coordinate system, so 1/(2^32) of the size of Earth,\nor about 1cm, is the smallest distinguishable distance. If _maxzoom_ + _detail_ \u003e 32, no additional\nresolution is obtained than by using a smaller _maxzoom_ or _detail_.\n\n### Filtering feature attributes\n\n * `-x` _name_ or `--exclude=`_name_: Exclude the named attributes from all features. You can specify multiple `-x` options to exclude several attributes. (Don't comma-separate names within a single `-x`.)\n * `-y` _name_ or `--include=`_name_: Include the named attributes in all features, excluding all those not explicitly named. You can specify multiple `-y` options to explicitly include several attributes. (Don't comma-separate names within a single `-y`.)\n * `-X` or `--exclude-all`: Exclude all attributes and encode only geometries\n\n### Modifying feature attributes\n\n * `-T`_attribute_`:`_type_ or `--attribute-type=`_attribute_`:`_type_: Coerce the named feature _attribute_ to be of the specified _type_.\n   The _type_ may be `string`, `float`, `int`, or `bool`.\n   If the type is `bool`, then original attributes of `0` (or, if numeric, `0.0`, etc.), `false`, `null`, or the empty string become `false`, and otherwise become `true`.\n   If the type is `float` or `int` and the original attribute was non-numeric, it becomes `0`.\n   If the type is `int` and the original attribute was floating-point, it is rounded to the nearest integer.\n * `-Y`_attribute_`:`_description_ or `--attribute-description=`_attribute_`:`_description_: Set the `description` for the specified attribute in the tileset metadata to _description_ instead of the usual `String`, `Number`, or `Boolean`.\n * `-E`_attribute_`:`_operation_ or `--accumulate-attribute=`_attribute_`:`_operation_: Preserve the named _attribute_ from features\n   that are dropped, coalesced-as-needed, or clustered. The _operation_ may be\n   `sum`, `product`, `mean`, `max`, `min`, `concat`, or `comma`\n   to specify how the named _attribute_ is accumulated onto the attribute of the same name in a feature that does survive.\n * `-pe` or `--empty-csv-columns-are-null`: Treat empty CSV columns as nulls rather than as empty strings.\n * `-aI` or `--convert-stringified-ids-to-numbers`: If a feature ID is the string representation of a number, convert it to a plain number to use as the feature ID.\n * `--use-attribute-for-id=`*name*: Use the attribute with the specified *name* as if it were specified as the feature ID. (If this attribute is a stringified number, you must also use `-aI` to convert it to a number.)\n\n### Filtering features by attributes\n\n * `-j` *filter* or `--feature-filter`=*filter*: Check features against a per-layer filter (as defined in the [Mapbox GL Style Specification](https://docs.mapbox.com/mapbox-gl-js/style-spec/#other-filter)) and only include those that match. Any features in layers that have no filter specified will be passed through. Filters for the layer `\"*\"` apply to all layers. The special variable `$zoom` refers to the current zoom level.\n * `-J` *filter-file* or `--feature-filter-file`=*filter-file*: Like `-j`, but read the filter from a file.\n\nExample: to find the Natural Earth countries with low `scalerank` but high `LABELRANK`:\n\n```\ntippecanoe -z5 -o filtered.mbtiles -j '{ \"ne_10m_admin_0_countries\": [ \"all\", [ \"\u003c\", \"scalerank\", 3 ], [ \"\u003e\", \"LABELRANK\", 5 ] ] }' ne_10m_admin_0_countries.geojson\n```\n\nExample: to retain only major TIGER roads at low zoom levels:\n\n```\ntippecanoe -o roads.mbtiles -j '{ \"*\": [ \"any\", [ \"\u003e=\", \"$zoom\", 11 ], [ \"in\", \"MTFCC\", \"S1100\", \"S1200\" ] ] }' tl_2015_06001_roads.json\n```\n\nTippecanoe also accepts expressions of the form `[ \"attribute-filter\", name, expression ]`, to filter individual feature attributes\ninstead of entire features. For example, you can exclude the road names at low zoom levels by doing\n\n```\ntippecanoe -o roads.mbtiles -j '{ \"*\": [ \"attribute-filter\", \"FULLNAME\", [ \"\u003e=\", \"$zoom\", 9 ] ] }' tl_2015_06001_roads.json\n```\n\nAn `attribute-filter` expression itself is always considered to evaluate to `true` (in other words, to retain the feature instead\nof dropping it). If you want to use multiple `attribute-filter` expressions, or to use other expressions to remove features from\nthe same layer, enclose them in an `all` expression so they will all be evaluated.\n\n### Dropping a fixed fraction of features by zoom level\n\n * `-r` _rate_ or `--drop-rate=`_rate_: Rate at which dots are dropped at zoom levels below basezoom (default 2.5).\n   If you use `-rg`, it will guess a drop rate that will keep at most 50,000 features in the densest tile.\n   You can also specify a marker-width with `-rg`*width* to allow fewer features in the densest tile to\n   compensate for the larger marker, or `-rf`*number* to allow at most *number* features in the densest tile.\n * `-B` _zoom_ or `--base-zoom=`_zoom_: Base zoom, the level at and above which all points are included in the tiles (default maxzoom).\n   If you use `-Bg`, it will guess a zoom level that will keep at most 50,000 features in the densest tile.\n   You can also specify a marker-width with `-Bg`*width* to allow fewer features in the densest tile to\n   compensate for the larger marker, or `-Bf`*number* to allow at most *number* features in the densest tile.\n * `-al` or `--drop-lines`: Let \"dot\" dropping at lower zooms apply to lines too\n * `-ap` or `--drop-polygons`: Let \"dot\" dropping at lower zooms apply to polygons too\n * `-K` _distance_ or `--cluster-distance=`_distance_: Cluster points (as with `--cluster-densest-as-needed`, but without the experimental discovery process) that are approximately within _distance_ of each other. The units are tile coordinates within a nominally 256-pixel tile, so the maximum value of 255 allows only one feature per tile. Values around 10 are probably appropriate for typical marker sizes. See `--cluster-densest-as-needed` below for behavior.\n\n### Dropping a fraction of features to keep under tile size limits\n\n * `-as` or `--drop-densest-as-needed`: If a tile is too large, try to reduce it to under 500K by increasing the minimum spacing between features. The discovered spacing applies to the entire zoom level.\n * `-ad` or `--drop-fraction-as-needed`: Dynamically drop some fraction of features from each zoom level to keep large tiles under the 500K size limit. (This is like `-pd` but applies to the entire zoom level, not to each tile.)\n * `-an` or `--drop-smallest-as-needed`: Dynamically drop the smallest features (physically smallest: the shortest lines or the smallest polygons) from each zoom level to keep large tiles under the 500K size limit. This option will not work for point features.\n * `-aN` or `--coalesce-smallest-as-needed`: Dynamically combine the smallest features (physically smallest: the shortest lines or the smallest polygons) from each zoom level into other nearby features to keep large tiles under the 500K size limit. This option will not work for point features, and will probably not help very much with LineStrings. It is mostly intended for polygons, to maintain the full original area covered by polygons while still reducing the feature count somehow. The attributes of the small polygons are *not* preserved into the combined features (except through `--accumulate-attribute`), only their geometry. Furthermore, the polygons to which nested polygons are coalesced may not necessarily be the immediately enclosing features.\n * `-aD` or `--coalesce-densest-as-needed`: Dynamically combine the densest features from each zoom level into other nearby features to keep large tiles under the 500K size limit. (Again, mostly useful for polygons.)\n * `-aS` or `--coalesce-fraction-as-needed`: Dynamically combine a fraction of features from each zoom level into other nearby features to keep large tiles under the 500K size limit. (Again, mostly useful for polygons.)\n * `-pd` or `--force-feature-limit`: Dynamically drop some fraction of features from large tiles to keep them under the 500K size limit. It will probably look ugly at the tile boundaries. (This is like `-ad` but applies to each tile individually, not to the entire zoom level.) You probably don't want to use this.\n * `-aC` or `--cluster-densest-as-needed`: If a tile is too large, try to reduce its size by increasing the minimum spacing between features, and leaving one placeholder feature from each group.  The remaining feature will be given a `\"clustered\": true` attribute to indicate that it represents a cluster, a `\"point_count\"` attribute to indicate the number of features that were clustered into it, and a `\"sqrt_point_count\"` attribute to indicate the relative width of a feature to represent the cluster. If the features being clustered are points, the representative feature will be located at the average of the original points' locations; otherwise, one of the original features will be left as the representative.\n\n### Dropping tightly overlapping features\n\n * `-g` _gamma_ or `--gamma=_gamma`_: Rate at which especially dense dots are dropped (default 0, for no effect). A gamma of 2 reduces the number of dots less than a pixel apart to the square root of their original number.\n * `-aG` or `--increase-gamma-as-needed`: If a tile is too large, try to reduce it to under 500K by increasing the `-g` gamma. The discovered gamma applies to the entire zoom level. You probably want to use `--drop-densest-as-needed` instead.\n\n### Line and polygon simplification\n\n * `-S` _scale_ or `--simplification=`_scale_: Multiply the tolerance for line and polygon simplification by _scale_. The standard tolerance tries to keep\n   the line or polygon within one tile unit of its proper location. You can probably go up to about 10 without too much visible difference.\n * `-ps` or `--no-line-simplification`: Don't simplify lines and polygons\n * `-pS` or `--simplify-only-low-zooms`: Don't simplify lines and polygons at maxzoom (but do simplify at lower zooms)\n * `-pn` or `--no-simplification-of-shared-nodes`: Don't simplify away nodes that appear in more than one feature or are used multiple times within the same feature, so that the intersection node will not be lost from intersecting roads. (This will not be effective if you also use `--coalesce` or `--detect-shared-borders`.)\n * `-pt` or `--no-tiny-polygon-reduction`: Don't combine the area of very small polygons into small squares that represent their combined area.\n\n### Attempts to improve shared polygon boundaries\n\n * `-ab` or `--detect-shared-borders`: In the manner of [TopoJSON](https://github.com/mbostock/topojson/wiki/Introduction), detect borders that are shared between multiple polygons and simplify them identically in each polygon. This takes more time and memory than considering each polygon individually.\n * `-aL` or `--grid-low-zooms`: At all zoom levels below _maxzoom_, snap all lines and polygons to a stairstep grid instead of allowing diagonals. You will also want to specify a tile resolution, probably `-D8`. This option provides a way to display continuous parcel, gridded, or binned data at low zooms without overwhelming the tiles with tiny polygons, since features will either get stretched out to the grid unit or lost entirely, depending on how they happened to be aligned in the original data. You probably don't want to use this.\n\n### Controlling clipping to tile boundaries\n\n * `-b` _pixels_ or `--buffer=`_pixels_: Buffer size where features are duplicated from adjacent tiles. Units are \"screen pixels\"—1/256th of the tile width or height. (default 5)\n * `-pc` or `--no-clipping`: Don't clip features to the size of the tile. If a feature overlaps the tile's bounds or buffer at all, it is included completely. Be careful: this can produce very large tilesets, especially with large polygons.\n * `-pD` or `--no-duplication`: As with `--no-clipping`, each feature is included intact instead of cut to tile boundaries. In addition, it is included only in a single tile per zoom level rather than potentially in multiple copies. Clients of the tileset must check adjacent tiles (possibly some distance away) to ensure they have all features.\n\n### Reordering features within each tile\n\n * `-pi` or `--preserve-input-order`: Preserve the original input order of features as the drawing order instead of ordering geographically. (This is implemented as a restoration of the original order at the end, so that dot-dropping is still geographic, which means it also undoes `-ao`).\n * `-ac` or `--coalesce`: Coalesce consecutive features that have the same attributes. This can be useful if you have lots of small polygons with identical attributes and you would like to merge them together.\n * `-ao` or `--reorder`: Reorder features to put ones with the same attributes in sequence (instead of ones that are approximately spatially adjacent), to try to get them to coalesce. You probably want to use this if you use `--coalesce`.\n * `-ar` or `--reverse`: Try reversing the directions of lines to make them coalesce and compress better. You probably don't want to use this.\n * `-ah` or `--hilbert`: Put features in Hilbert Curve order instead of the usual Z-Order. This improves the odds that spatially adjacent features will be sequentially adjacent, and should improve density calculations and spatial coalescing. It should be the default eventually.\n\n### Adding calculated attributes\n\n * `-ag` or `--calculate-feature-density`: Add a new attribute, `tippecanoe_feature_density`, to each feature, to record how densely features are spaced in that area of the tile. You can use this attribute in the style to produce a glowing effect where points are densely packed. It can range from 0 in the sparsest areas to 255 in the densest.\n * `-ai` or `--generate-ids`: Add an `id` (a feature ID, not an attribute named `id`) to each feature that does not already have one. There is currently no guarantee that the `id` added will be stable between runs or that it will not conflict with manually-assigned feature IDs. Future versions of Tippecanoe may change the mechanism for allocating IDs.\n\n### Trying to correct bad source geometry\n\n * `-aw` or `--detect-longitude-wraparound`: Detect when consecutive points within a feature jump to the other side of the world, and try to fix the geometry.\n * `-pw` or `--use-source-polygon-winding`: Instead of respecting GeoJSON polygon ring order, use the original polygon winding in the source data to distinguish inner (clockwise) and outer (counterclockwise) polygon rings.\n * `-pW` or `--reverse-source-polygon-winding`: Instead of respecting GeoJSON polygon ring order, use the opposite of the original polygon winding in the source data to distinguish inner (counterclockwise) and outer (clockwise) polygon rings.\n * `--clip-bounding-box=`*minlon*`,`*minlat*`,`*maxlon*`,`*maxlat*: Clip all features to the specified bounding box.\n\n### Setting or disabling tile size limits\n\n * `-M` _bytes_ or `--maximum-tile-bytes=`_bytes_: Use the specified number of _bytes_ as the maximum compressed tile size instead of 500K.\n * `-O` _features_ or `--maximum-tile-features=`_features_: Use the specified number of _features_ as the maximum in a tile instead of 200,000.\n * `-pf` or `--no-feature-limit`: Don't limit tiles to 200,000 features\n * `-pk` or `--no-tile-size-limit`: Don't limit tiles to 500K bytes\n * `-pC` or `--no-tile-compression`: Don't compress the PBF vector tile data. If you are getting \"Unimplemented type 3\" error messages from a renderer, it is probably because it expects uncompressed tiles using this option rather than the normal gzip-compressed tiles.\n * `-pg` or `--no-tile-stats`: Don't generate the `tilestats` row in the tileset metadata. Uploads without [tilestats](https://github.com/mapbox/mapbox-geostats) will take longer to process.\n * `--tile-stats-attributes-limit=`*count*: Include `tilestats` information about at most *count* attributes instead of the default 1000.\n * `--tile-stats-sample-values-limit=`*count*: Calculate `tilestats` attribute statistics based on *count* values instead of the default 1000.\n * `--tile-stats-values-limit=`*count*: Report *count* unique attribute values in `tilestats` instead of the default 100.\n\n### Temporary storage\n\n * `-t` _directory_ or `--temporary-directory=`_directory_: Put the temporary files in _directory_.\n   If you don't specify, it will use `/tmp`.\n\n### Progress indicator\n\n * `-q` or `--quiet`: Work quietly instead of reporting progress or warning messages\n * `-Q` or `--no-progress-indicator`: Don't report progress, but still give warnings\n * `-U` _seconds_ or `--progress-interval=`_seconds_: Don't report progress more often than the specified number of _seconds_.\n * `-v` or `--version`: Report Tippecanoe's version number\n\n### Filters\n\n * `-C` _command_ or `--prefilter=`_command_: Specify a shell filter command to be run at the start of assembling each tile\n * `-c` _command_ or `--postfilter=`_command_: Specify a shell filter command to be run at the end of assembling each tile\n\nThe pre- and post-filter commands allow you to do optional filtering or transformation on the features of each tile\nas it is created. They are shell commands, run with the zoom level, X, and Y as the `$1`, `$2`, and `$3` arguments.\nFuture versions of Tippecanoe may add additional arguments for more context.\n\nThe features are provided to the filter\nas a series of newline-delimited GeoJSON objects on the standard input, and `tippecanoe` expects to read another\nset of GeoJSON features from the filter's standard output.\n\nThe prefilter receives the features at the highest available resolution, before line simplification,\npolygon topology repair, gamma calculation, dynamic feature dropping, or other internal processing.\nThe postfilter receives the features at tile resolution, after simplification, cleaning, and dropping.\n\nThe layer name is provided as part of the `tippecanoe` element of the feature and must be passed through\nto keep the feature in its correct layer. In the case of the prefilter, the `tippecanoe` element may also\ncontain `index`, `sequence`, `extent`, and `dropped`, elements, which must be passed through for internal operations like\n`--drop-densest-as-needed`, `--drop-smallest-as-needed`, and `--preserve-input-order` to work.\n\n#### Examples:\n\n * Make a tileset of the Natural Earth countries to zoom level 5, and also copy the GeoJSON features\n   to files in a `tiles/z/x/y.geojson` directory hierarchy.\n\n```\ntippecanoe -o countries.mbtiles -z5 -C 'mkdir -p tiles/$1/$2; tee tiles/$1/$2/$3.geojson' ne_10m_admin_0_countries.json\n```\n\n * Make a tileset of the Natural Earth countries to zoom level 5, but including only those tiles that\n   intersect the [bounding box of Germany](https://www.flickr.com/places/info/23424829).\n   (The `limit-tiles-to-bbox` script is [in the Tippecanoe source directory](filters/limit-tiles-to-bbox).)\n\n```\ntippecanoe -o countries.mbtiles -z5 -C './filters/limit-tiles-to-bbox 5.8662 47.2702 15.0421 55.0581 $*' ne_10m_admin_0_countries.json\n```\n\n * Make a tileset of TIGER roads in Tippecanoe County, leaving out all but primary and secondary roads (as [classified by TIGER](https://www.census.gov/geo/reference/mtfcc.html)) below zoom level 11.\n\n```\ntippecanoe -o roads.mbtiles -c 'if [ $1 -lt 11 ]; then grep \"\\\"MTFCC\\\": \\\"S1[12]00\\\"\"; else cat; fi' tl_2016_18157_roads.json\n```\n\nEnvironment\n-----------\n\nTippecanoe ordinarily uses as many parallel threads as the operating system claims that CPUs are available.\nYou can override this number by setting the `TIPPECANOE_MAX_THREADS` environmental variable.\n\nGeoJSON extension\n-----------------\n\nTippecanoe defines a GeoJSON extension that you can use to specify the minimum and/or maximum zoom level\nat which an individual feature will be included in the vector tileset being produced.\nIf you have a feature like this:\n\n```\n{\n    \"type\" : \"Feature\",\n    \"tippecanoe\" : { \"maxzoom\" : 9, \"minzoom\" : 4 },\n    \"properties\" : { \"FULLNAME\" : \"N Vasco Rd\" },\n    \"geometry\" : {\n        \"type\" : \"LineString\",\n        \"coordinates\" : [ [ -121.733350, 37.767671 ], [ -121.733600, 37.767483 ], [ -121.733131, 37.766952 ] ]\n    }\n}\n```\n\nwith a `tippecanoe` object specifiying a `maxzoom` of 9 and a `minzoom` of 4, the feature\nwill only appear in the vector tiles for zoom levels 4 through 9. Note that the `tippecanoe`\nobject belongs to the Feature, not to its `properties`. If you specify a `minzoom` for a feature,\nit will be preserved down to that zoom level even if dot-dropping with `-r` would otherwise have\ndropped it.\n\nYou can also specify a layer name in the `tippecanoe` object, which will take precedence over\nthe filename or name specified using `--layer`, like this:\n\n```\n{\n    \"type\" : \"Feature\",\n    \"tippecanoe\" : { \"layer\" : \"streets\" },\n    \"properties\" : { \"FULLNAME\" : \"N Vasco Rd\" },\n    \"geometry\" : {\n        \"type\" : \"LineString\",\n        \"coordinates\" : [ [ -121.733350, 37.767671 ], [ -121.733600, 37.767483 ], [ -121.733131, 37.766952 ] ]\n    }\n}\n```\n\nIf your source GeoJSON only has `minzoom`, `maxzoom` and/or `layer` within `properties` you can use [ndjson-cli](https://github.com/mbostock/ndjson-cli/blob/master/README.md) to move them into the required `tippecanoe` object by piping the GeoJSON like this:\n\n```sh\nndjson-map 'd.tippecanoe = { minzoom: d.properties.minzoom, maxzoom: d.properties.maxzoom, layer: d.properties.layer }, delete d.properties.minzoom, delete d.properties.maxzoom, delete d.properties.layer, d'\n```\n\nGeometric simplifications\n-------------------------\n\nAt every zoom level, line and polygon features are subjected to Douglas-Peucker\nsimplification to the resolution of the tile.\n\nFor point features, it drops 1/2.5 of the dots for each zoom level above the\npoint base zoom (which is normally the same as the `-z` max zoom, but can be\na different zoom specified with `-B` if you have precise but sparse data).\nI don't know why 2.5 is the appropriate number, but the densities of many different\ndata sets fall off at about this same rate. You can use -r to specify a different rate.\n\nYou can use the gamma option to thin out especially dense clusters of points.\nFor any area where dots are closer than one pixel together (at whatever zoom level),\na gamma of 3, for example, will reduce these clusters to the cube root of their original density.\n\nFor line features, it drops any features that are too small to draw at all.\nThis still leaves the lower zooms too dark (and too dense for the 500K tile limit,\nin some places), so I need to figure out an equitable way to throw features away.\n\nUnless you specify `--no-tiny-polygon-reduction`,\nany polygons that are smaller than a minimum area (currently 4 square subpixels) will\nhave their probability diffused, so that some of them will be drawn as a square of\nthis minimum size and others will not be drawn at all, preserving the total area that\nall of them should have had together.\n\nFeatures in the same tile that share the same type and attributes are coalesced\ntogether into a single geometry if you use `--coalesce`. You are strongly encouraged to use -x to exclude\nany unnecessary attributes to reduce wasted file size.\n\nIf a tile is larger than 500K, it will try encoding that tile at progressively\nlower resolutions before failing if it still doesn't fit.\n\nDevelopment\n-----------\n\nRequires sqlite3 and zlib (should already be installed on MacOS). Rebuilding the manpage\nuses md2man (`gem install md2man`).\n\nLinux:\n\n    sudo apt-get install build-essential libsqlite3-dev zlib1g-dev\n\nThen build:\n\n    make\n\nand perhaps\n\n    make install\n\nTippecanoe now requires features from the 2011 C++ standard. If your compiler is older than\nthat, you will need to install a newer one. On MacOS, updating to the lastest XCode should\nget you a new enough version of `clang++`. On Linux, you should be able to upgrade `g++` with\n\n```\nsudo add-apt-repository -y ppa:ubuntu-toolchain-r/test\nsudo apt-get update -y\nsudo apt-get install -y g++-5\nexport CXX=g++-5\n```\n\nDocker Image\n------------\n\nA tippecanoe Docker image can be built from source and executed as a task to\nautomatically install dependencies and allow tippecanoe to run on any system\nsupported by Docker.\n\n```docker\n$ docker build -t tippecanoe:latest .\n$ docker run -it --rm \\\n  -v /tiledata:/data \\\n  tippecanoe:latest \\\n  tippecanoe --output=/data/output.mbtiles /data/example.geojson\n```\n\nThe commands above will build a Docker image from the source and compile the\nlatest version. The image supports all tippecanoe flags and options.\n\nExamples\n------\n\nCheck out [some examples of maps made with tippecanoe](MADE_WITH.md)\n\nName\n----\n\nThe name is [a joking reference](http://en.wikipedia.org/wiki/Tippecanoe_and_Tyler_Too) to a \"tiler\" for making map tiles.\n\ntile-join\n=========\n\nTile-join is a tool for copying and merging vector mbtiles files and for\njoining new attributes from a CSV file to existing features in them.\n\nIt reads the tiles from an\nexisting .mbtiles file or a directory of tiles, matches them against the\nrecords of the CSV (if one is specified), and writes out a new tileset.\n\nIf you specify multiple source mbtiles files or source directories of tiles,\nall the sources are read and their combined contents are written to the new\nmbtiles output. If they define the same layers or the same tiles, the layers\nor tiles are merged.\n\nThe options are:\n\n### Output tileset\n\n * `-o` *out.mbtiles* or `--output=`*out.mbtiles*: Write the new tiles to the specified .mbtiles file.\n * `-e` *directory* or `--output-to-directory=`*directory*: Write the new tiles to the specified directory instead of to an mbtiles file.\n * `-f` or `--force`: Remove *out.mbtiles* if it already exists.\n\n### Tileset description and attribution\n\n * `-A` *attribution* or `--attribution=`*attribution*: Set the attribution string.\n * `-n` *name* or `--name=`*name*: Set the tileset name.\n * `-N` *description* or `--description=`*description*: Set the tileset description.\n\n### Layer filtering and naming\n\n * `-l` *layer* or `--layer=`*layer*: Include the named layer in the output. You can specify multiple `-l` options to keep multiple layers. If you don't specify, they will all be retained.\n * `-L` *layer* or `--exclude-layer=`*layer*: Remove the named layer from the output. You can specify multiple `-L` options to remove multiple layers.\n * `-R`*old*`:`*new* or `--rename-layer=`*old*`:`*new*: Rename the layer named *old* to be named *new* instead. You can specify multiple `-R` options to rename multiple layers. Renaming happens before filtering.\n\n### Zoom levels\n\n * `-z` _zoom_ or `--maximum-zoom=`_zoom_: Don't copy tiles from higher zoom levels than the specified zoom\n * `-Z` _zoom_ or `--minimum-zoom=`_zoom_: Don't copy tiles from lower zoom levels than the specified zoom\n\n### Merging attributes from a CSV file\n\n * `-c` *match*`.csv` or `--csv=`*match*`.csv`: Use *match*`.csv` as the source for new attributes to join to the features. The first line of the file should be the key names; the other lines are values. The first column is the one to match against the existing features; the other columns are the new data to add.\n\n### Filtering features and feature attributes\n\n * `-x` *key* or `--exclude=`*key*: Remove attributes of type *key* from the output. You can use this to remove the field you are matching against if you no longer need it after joining, or to remove any other attributes you don't want.\n * `-X` or `--exclude-all`: Remove all attributes from the output.\n * `-i` or `--if-matched`: Only include features that matched the CSV.\n * `-j` *filter* or `--feature-filter`=*filter*: Check features against a per-layer filter (as defined in the [Mapbox GL Style Specification](https://docs.mapbox.com/mapbox-gl-js/style-spec/#other-filter)) and only include those that match. Any features in layers that have no filter specified will be passed through. Filters for the layer `\"*\"` apply to all layers.\n * `-J` *filter-file* or `--feature-filter-file`=*filter-file*: Like `-j`, but read the filter from a file.\n * `-pe` or `--empty-csv-columns-are-null`: Treat empty CSV columns as nulls rather than as empty strings.\n\n### Setting or disabling tile size limits\n\n * `-pk` or `--no-tile-size-limit`: Don't skip tiles larger than 500K.\n * `-pC` or `--no-tile-compression`: Don't compress the PBF vector tile data.\n * `-pg` or `--no-tile-stats`: Don't generate the `tilestats` row in the tileset metadata. Uploads without [tilestats](https://github.com/mapbox/mapbox-geostats) will take longer to process.\n\nBecause tile-join just copies the geometries to the new .mbtiles without processing them\n(except to rescale the extents if necessary),\nit doesn't have any of tippecanoe's recourses if the new tiles are bigger than the 500K tile limit.\nIf a tile is too big and you haven't specified `-pk`, it is just left out of the new tileset.\n\nExample\n-------\n\nImagine you have a tileset of census blocks:\n\n```sh\ncurl -L -O http://www2.census.gov/geo/tiger/TIGER2010/TABBLOCK/2010/tl_2010_06001_tabblock10.zip\nunzip tl_2010_06001_tabblock10.zip\nogr2ogr -f GeoJSON tl_2010_06001_tabblock10.json tl_2010_06001_tabblock10.shp\n./tippecanoe -o tl_2010_06001_tabblock10.mbtiles tl_2010_06001_tabblock10.json\n```\n\nand a CSV of their populations:\n\n```sh\ncurl -L -O http://www2.census.gov/census_2010/01-Redistricting_File--PL_94-171/California/ca2010.pl.zip\nunzip -p ca2010.pl.zip cageo2010.pl |\nawk 'BEGIN {\n    print \"GEOID10,population\"\n}\n(substr($0, 9, 3) == \"750\") {\n    print \"\\\"\" substr($0, 28, 2) substr($0, 30, 3) substr($0, 55, 6) substr($0, 62, 4) \"\\\",\" (0 + substr($0, 328, 9))\n}' \u003e population.csv\n```\n\nwhich looks like this:\n\n```\nGEOID10,population\n\"060014277003018\",0\n\"060014283014046\",0\n\"060014284001020\",0\n...\n\"060014507501001\",202\n\"060014507501002\",119\n\"060014507501003\",193\n\"060014507501004\",85\n...\n```\n\nThen you can join those populations to the geometries and discard the no-longer-needed ID field:\n\n```sh\n./tile-join -o population.mbtiles -x GEOID10 -c population.csv tl_2010_06001_tabblock10.mbtiles\n```\n\ntippecanoe-enumerate\n====================\n\nThe `tippecanoe-enumerate` utility lists the tiles that an `mbtiles` file defines.\nEach line of the output lists the name of the `mbtiles` file and the zoom, x, and y\ncoordinates of one of the tiles. It does basically the same thing as\n\n    select zoom_level, tile_column, (1 \u003c\u003c zoom_level) - 1 - tile_row from tiles;\n\non the file in sqlite3.\n\ntippecanoe-decode\n=================\n\nThe `tippecanoe-decode` utility turns vector mbtiles back to GeoJSON. You can use it either\non an entire file:\n\n    tippecanoe-decode file.mbtiles\n\nor on an individual tile:\n\n    tippecanoe-decode file.mbtiles zoom x y\n    tippecanoe-decode file.vector.pbf zoom x y\n\nUnless you use `-c`, the output is a set of nested FeatureCollections identifying each\ntile and layer separately. Note that the same features generally appear at all zooms,\nso the output for the file will have many copies of the same features at different\nresolutions.\n\n### Options\n\n * `-s` _projection_ or `--projection=`*projection*: Specify the projection of the output data. Currently supported are EPSG:4326 (WGS84, the default) and EPSG:3857 (Web Mercator).\n * `-z` _maxzoom_ or `--maximum-zoom=`*maxzoom*: Specify the highest zoom level to decode from the tileset\n * `-Z` _minzoom_ or `--minimum-zoom=`*minzoom*: Specify the lowest zoom level to decode from the tileset\n * `-l` _layer_ or `--layer=`*layer*: Decode only layers with the specified names. (Multiple `-l` options can be specified.)\n * `-c` or `--tag-layer-and-zoom`: Include each feature's layer and zoom level as part of its `tippecanoe` object rather than as a FeatureCollection wrapper\n * `-S` or `--stats`: Just report statistics about each tile's size and the number of features in it, as a JSON structure.\n * `-f` or `--force`: Decode tiles even if polygon ring order or closure problems are detected\n\ntippecanoe-json-tool\n====================\n\nExtracts GeoJSON features or standalone geometries as line-delimited JSON objects from a larger JSON file,\nfollowing the same extraction rules that Tippecanoe uses when parsing JSON.\n\n    tippecanoe-json-tool file.json [... file.json]\n\nOptionally also wraps them in a FeatureCollection or GeometryCollection as appropriate.\n\nOptionally extracts an attribute from the GeoJSON `properties` for sorting.\n\nOptionally joins a sorted CSV of new attributes to a sorted GeoJSON file.\n\nThe reason for requiring sorting is so that it is possible to work on CSV and GeoJSON files that are larger\nthan can comfortably fit in memory by streaming through them in parallel, in the same way that the Unix\n`join` command does. The Unix `sort` command can be used to sort large files to prepare them for joining.\n\nThe sorting interface is weird, and future version of `tippecanoe-json-tool` will replace it with\nsomething better.\n\n### Options\n\n * `-w` or `--wrap`: Add the FeatureCollection or GeometryCollection wrapper.\n * `-e` *attribute* or `--extract=`*attribute*: Extract the named attribute as a prefix to each feature.\n   The formatting makes excessive use of `\\u` quoting so that it follows JSON string rules but will still\n   be sorted correctly by tools that just do ASCII comparisons.\n * `-c` *file.csv* or `--csv=`*file.csv*: Join attributes from the named sorted CSV file, using its first column as the join key. Geometries will be passed through even if they do not match the CSV; CSV lines that do not match a geometry will be discarded.\n * `-pe` or `--empty-csv-columns-are-null`: Treat empty CSV columns as nulls rather than as empty strings.\n\n### Example\n\nJoin Census LEHD ([Longitudinal Employer-Household Dynamics](https://lehd.ces.census.gov/)) employment data to a file of Census block geography\nfor Tippecanoe County, Indiana.\n\nDownload Census block geometry, and convert to GeoJSON:\n\n```\n$ curl -L -O https://www2.census.gov/geo/tiger/TIGER2010/TABBLOCK/2010/tl_2010_18157_tabblock10.zip\n$ unzip tl_2010_18157_tabblock10.zip\n$ ogr2ogr -f GeoJSON tl_2010_18157_tabblock10.json tl_2010_18157_tabblock10.shp\n```\n\nDownload Indiana employment data, and fix name of join key in header\n\n```\n$ curl -L -O https://lehd.ces.census.gov/data/lodes/LODES7/in/wac/in_wac_S000_JT00_2015.csv.gz\n$ gzip -dc in_wac_S000_JT00_2015.csv.gz | sed '1s/w_geocode/GEOID10/' \u003e in_wac_S000_JT00_2015.csv\n```\n\nSort GeoJSON block geometry so it is ordered by block ID. If you don't do this, you will get a\n\"GeoJSON file is out of sort\" error.\n\n```\n$ tippecanoe-json-tool -e GEOID10 tl_2010_18157_tabblock10.json | LC_ALL=C sort \u003e tl_2010_18157_tabblock10.sort.json\n```\n\nJoin block geometries to employment attributes:\n\n```\n$ tippecanoe-json-tool -c in_wac_S000_JT00_2015.csv tl_2010_18157_tabblock10.sort.json \u003e blocks-wac.json\n```\n","funding_links":[],"categories":["TODO scan for Android support in followings","C++","3. Deploy Vector Tile to gh-pages","Geospatial Library","Visualization","Language based Geospatial Libraries"],"sub_categories":["C++"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmapbox%2Ftippecanoe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmapbox%2Ftippecanoe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmapbox%2Ftippecanoe/lists"}