mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 08:25:40 +02:00
Add support for pmtiles output format (#55)
* add pmtiles.hpp from github.com/protomaps/PMTiles [#10] * tippecanoe main writes pmtiles output. [#10] * detect output format using suffix * after mbtiles is done writing, replace with pmtiles based on map/image tables. * add method to write_json for writing json sub-object. * tippecanoe-decode reads pmtiles input. [#10] * tile-join reads and writes pmtiles. [#10] * pmtiles test suite for decode and tile-join [#10] * add base GitHub CI action for compiling and test suite. * update pmtiles.hpp with z>15 fix * Fix some ordering problems with pmtiles decode * Pmtiles should also pass the raw tiles tests * Eradicate spaces from tileset metadata JSON fields * Eradicate spaces from more test fixtures * Update more tests * Pmtiles tests pass now too * Remove unnecessary sort (and make indent) * Update changelog * The allow-existing test for pmtiles needs -o, not -e * Declare --allow-existing to be unsupported for pmtiles. It was always a bad idea even for mbtiles. Co-authored-by: Brandon Liu <bdon@bdon.org>
This commit is contained in:
co-authored by
Brandon Liu
parent
a374263466
commit
3b2599f587
@@ -4,7 +4,7 @@
|
||||
"description": "tests/tl_2018_51685_roads/out/-Z11_-z11_--no-simplification-of-shared-nodes.json.check.mbtiles",
|
||||
"format": "pbf",
|
||||
"generator_options": "./tippecanoe -q -a@ -f -o tests/tl_2018_51685_roads/out/-Z11_-z11_--no-simplification-of-shared-nodes.json.check.mbtiles -Z11 -z11 --no-simplification-of-shared-nodes tests/tl_2018_51685_roads/in.json",
|
||||
"json": "{\"vector_layers\": [ { \"id\": \"in\", \"description\": \"\", \"minzoom\": 11, \"maxzoom\": 11, \"fields\": {\"FULLNAME\": \"String\", \"LINEARID\": \"String\", \"MTFCC\": \"String\", \"RTTYP\": \"String\"} } ],\"tilestats\": {\"layerCount\": 1,\"layers\": [{\"layer\": \"in\",\"count\": 256,\"geometry\": \"LineString\",\"attributeCount\": 4,\"attributes\": [{\"attribute\": \"FULLNAME\",\"count\": 166,\"type\": \"string\",\"values\": [\"Adams St\",\"Alexa Ct\",\"Alexander Way\",\"Alpine St\",\"Andrew Dr\",\"Anna Ct\",\"Arnie Ct\",\"Baker St\",\"Bank St\",\"Battalion Way\",\"Becky Ct\",\"Belo Gate Dr\",\"Birmingham Dr\",\"Black Hawk Ct\",\"Blooms Quarry Ln\",\"Blooms Quarry Rd\",\"Bradley Ct\",\"Brandon St\",\"Brian Ct\",\"Burnside Ct\",\"Cabbel Dr\",\"Cartwright Ct\",\"Centreville Rd\",\"Christopher Ln\",\"Colburn Dr\",\"Colfax Ct\",\"Colfax Dr\",\"Conner Dr\",\"Corbett Cir\",\"Corbett Pl\",\"Cougar Ct\",\"Courtney Dr\",\"Creek View Ter\",\"Crozet St\",\"Cynthia St\",\"Deborah Ct\",\"Denver Dr\",\"Digital Dr\",\"Drake Ct\",\"E Carondelet Dr\",\"Eagle Ct\",\"Elise Ct\",\"Elizabeth Ct\",\"Elm Ct\",\"Elzey Pl\",\"Englewood Ct\",\"Enterprise Ct\",\"Euclid Ave\",\"Euclid Ct\",\"Evans St\",\"Fairway Ct\",\"Forrest St\",\"Franklin Way\",\"Gary Ct\",\"General Way\",\"Golf Ct\",\"Greenshire Dr\",\"Hamilton Ct\",\"Handerson Pl\",\"Hardees Dr\",\"Heather Ct\",\"Hedgeford St\",\"Holden Dr\",\"Holmes Pl\",\"Industry Dr\",\"Inyo Pl\",\"Isabel Ln\",\"Jack Dr\",\"Jan St\",\"Jenkins Ct\",\"Jenna Ct\",\"Jessica Ct\",\"Jessica Dr\",\"Joshua Ct\",\"Karen Ct\",\"Katelyn Ct\",\"Kent Dr\",\"Kevin Ct\",\"Kirby St\",\"Kristy Dr\",\"Lambert Dr\",\"Lanae Ln\",\"Lapaz Ct\",\"Laurie Ct\",\"Liberty St\",\"Lindsey Ln\",\"Locust Ter\",\"Luke Dr\",\"Luxor St\",\"Mace St\",\"Madera Ct\",\"Manassas Dr\",\"Maria Way\",\"Market St\",\"Martin Ct\",\"Martin Dr\",\"Mathis Ave\",\"Matthew Dr\",\"Meeker Ct\",\"Meeker St\"]},{\"attribute\": \"LINEARID\",\"count\": 256,\"type\": \"string\",\"values\": [\"1101168884340\",\"1102214409896\",\"1102214411210\",\"1102855552280\",\"1103677851221\",\"1103677851287\",\"1103677851474\",\"1103677851555\",\"1103677851594\",\"1103677851647\",\"1103678290915\",\"1103678292796\",\"1103678293384\",\"1103678293757\",\"1103678302281\",\"1103678302380\",\"1103678302491\",\"1103678302854\",\"1103678302955\",\"1103678303567\",\"1103678306484\",\"1103678606039\",\"1103678606081\",\"1103678606144\",\"1103678610025\",\"1103678610426\",\"1103679090051\",\"1103679094720\",\"1103679106335\",\"1103679123999\",\"1103679536091\",\"1103679536111\",\"1103679536124\",\"1103679536129\",\"1103679536130\",\"1103679536131\",\"1103679536132\",\"1103679536161\",\"1103679536473\",\"1103679536474\",\"1103679536475\",\"1103679536539\",\"1103679536540\",\"1103679536656\",\"1103679536679\",\"1103679536695\",\"1103679537849\",\"1103679537852\",\"1103679537853\",\"1103679538189\",\"1103679538309\",\"1103679538402\",\"1103679538404\",\"1103679538422\",\"1103679538423\",\"1103691411843\",\"1103717088865\",\"1103717088866\",\"1103947052953\",\"1103947052954\",\"110410477217\",\"110410477221\",\"110410477224\",\"110410477227\",\"110410477229\",\"110410477231\",\"110410477232\",\"110410477234\",\"110410477235\",\"110410477236\",\"110410477238\",\"110410477239\",\"110410477240\",\"110410477241\",\"110410477244\",\"110410477245\",\"110410477247\",\"110410477249\",\"110410477250\",\"110410477252\",\"110410477253\",\"110410477254\",\"110410477256\",\"110410477257\",\"110410477258\",\"110410477260\",\"110410477261\",\"110410477263\",\"110410477265\",\"110410477266\",\"110410477270\",\"110410477271\",\"110410477273\",\"110410477274\",\"110410477275\",\"110410477277\",\"110410477278\",\"110410477279\",\"110410477280\",\"110410477284\"]},{\"attribute\": \"MTFCC\",\"count\": 7,\"type\": \"string\",\"values\": [\"S1200\",\"S1400\",\"S1500\",\"S1640\",\"S1740\",\"S1750\",\"S1780\"]},{\"attribute\": \"RTTYP\",\"count\": 2,\"type\": \"string\",\"values\": [\"M\",\"S\"]}]}]}}",
|
||||
"json": "{\"vector_layers\":[{\"id\":\"in\",\"description\":\"\",\"minzoom\":11,\"maxzoom\":11,\"fields\":{\"FULLNAME\":\"String\",\"LINEARID\":\"String\",\"MTFCC\":\"String\",\"RTTYP\":\"String\"}}],\"tilestats\":{\"layerCount\":1,\"layers\":[{\"layer\":\"in\",\"count\":256,\"geometry\":\"LineString\",\"attributeCount\":4,\"attributes\":[{\"attribute\":\"FULLNAME\",\"count\":166,\"type\":\"string\",\"values\":[\"Adams St\",\"Alexa Ct\",\"Alexander Way\",\"Alpine St\",\"Andrew Dr\",\"Anna Ct\",\"Arnie Ct\",\"Baker St\",\"Bank St\",\"Battalion Way\",\"Becky Ct\",\"Belo Gate Dr\",\"Birmingham Dr\",\"Black Hawk Ct\",\"Blooms Quarry Ln\",\"Blooms Quarry Rd\",\"Bradley Ct\",\"Brandon St\",\"Brian Ct\",\"Burnside Ct\",\"Cabbel Dr\",\"Cartwright Ct\",\"Centreville Rd\",\"Christopher Ln\",\"Colburn Dr\",\"Colfax Ct\",\"Colfax Dr\",\"Conner Dr\",\"Corbett Cir\",\"Corbett Pl\",\"Cougar Ct\",\"Courtney Dr\",\"Creek View Ter\",\"Crozet St\",\"Cynthia St\",\"Deborah Ct\",\"Denver Dr\",\"Digital Dr\",\"Drake Ct\",\"E Carondelet Dr\",\"Eagle Ct\",\"Elise Ct\",\"Elizabeth Ct\",\"Elm Ct\",\"Elzey Pl\",\"Englewood Ct\",\"Enterprise Ct\",\"Euclid Ave\",\"Euclid Ct\",\"Evans St\",\"Fairway Ct\",\"Forrest St\",\"Franklin Way\",\"Gary Ct\",\"General Way\",\"Golf Ct\",\"Greenshire Dr\",\"Hamilton Ct\",\"Handerson Pl\",\"Hardees Dr\",\"Heather Ct\",\"Hedgeford St\",\"Holden Dr\",\"Holmes Pl\",\"Industry Dr\",\"Inyo Pl\",\"Isabel Ln\",\"Jack Dr\",\"Jan St\",\"Jenkins Ct\",\"Jenna Ct\",\"Jessica Ct\",\"Jessica Dr\",\"Joshua Ct\",\"Karen Ct\",\"Katelyn Ct\",\"Kent Dr\",\"Kevin Ct\",\"Kirby St\",\"Kristy Dr\",\"Lambert Dr\",\"Lanae Ln\",\"Lapaz Ct\",\"Laurie Ct\",\"Liberty St\",\"Lindsey Ln\",\"Locust Ter\",\"Luke Dr\",\"Luxor St\",\"Mace St\",\"Madera Ct\",\"Manassas Dr\",\"Maria Way\",\"Market St\",\"Martin Ct\",\"Martin Dr\",\"Mathis Ave\",\"Matthew Dr\",\"Meeker Ct\",\"Meeker St\"]},{\"attribute\":\"LINEARID\",\"count\":256,\"type\":\"string\",\"values\":[\"1101168884340\",\"1102214409896\",\"1102214411210\",\"1102855552280\",\"1103677851221\",\"1103677851287\",\"1103677851474\",\"1103677851555\",\"1103677851594\",\"1103677851647\",\"1103678290915\",\"1103678292796\",\"1103678293384\",\"1103678293757\",\"1103678302281\",\"1103678302380\",\"1103678302491\",\"1103678302854\",\"1103678302955\",\"1103678303567\",\"1103678306484\",\"1103678606039\",\"1103678606081\",\"1103678606144\",\"1103678610025\",\"1103678610426\",\"1103679090051\",\"1103679094720\",\"1103679106335\",\"1103679123999\",\"1103679536091\",\"1103679536111\",\"1103679536124\",\"1103679536129\",\"1103679536130\",\"1103679536131\",\"1103679536132\",\"1103679536161\",\"1103679536473\",\"1103679536474\",\"1103679536475\",\"1103679536539\",\"1103679536540\",\"1103679536656\",\"1103679536679\",\"1103679536695\",\"1103679537849\",\"1103679537852\",\"1103679537853\",\"1103679538189\",\"1103679538309\",\"1103679538402\",\"1103679538404\",\"1103679538422\",\"1103679538423\",\"1103691411843\",\"1103717088865\",\"1103717088866\",\"1103947052953\",\"1103947052954\",\"110410477217\",\"110410477221\",\"110410477224\",\"110410477227\",\"110410477229\",\"110410477231\",\"110410477232\",\"110410477234\",\"110410477235\",\"110410477236\",\"110410477238\",\"110410477239\",\"110410477240\",\"110410477241\",\"110410477244\",\"110410477245\",\"110410477247\",\"110410477249\",\"110410477250\",\"110410477252\",\"110410477253\",\"110410477254\",\"110410477256\",\"110410477257\",\"110410477258\",\"110410477260\",\"110410477261\",\"110410477263\",\"110410477265\",\"110410477266\",\"110410477270\",\"110410477271\",\"110410477273\",\"110410477274\",\"110410477275\",\"110410477277\",\"110410477278\",\"110410477279\",\"110410477280\",\"110410477284\"]},{\"attribute\":\"MTFCC\",\"count\":7,\"type\":\"string\",\"values\":[\"S1200\",\"S1400\",\"S1500\",\"S1640\",\"S1740\",\"S1750\",\"S1780\"]},{\"attribute\":\"RTTYP\",\"count\":2,\"type\":\"string\",\"values\":[\"M\",\"S\"]}]}]}}",
|
||||
"maxzoom": "11",
|
||||
"minzoom": "11",
|
||||
"name": "tests/tl_2018_51685_roads/out/-Z11_-z11_--no-simplification-of-shared-nodes.json.check.mbtiles",
|
||||
|
||||
Reference in New Issue
Block a user