mirror of
https://github.com/maplibre/martin.git
synced 2024-12-21 05:41:55 +03:00
0398336114
- [x] Add tile statistics to mbtiles tools - [x] Add test - [x] Use 4326 instead of 3857 for tile bounds - [x] Add document - [x] Use size-format to prettify output - [x] Statistics struct Refactor - [x] Cleanup and reformat Closes #964 --------- Co-authored-by: Yuri Astrakhan <yuriastrakhan@gmail.com>
69 lines
1.6 KiB
JSON
69 lines
1.6 KiB
JSON
{
|
|
"db_name": "SQLite",
|
|
"query": "\n SELECT zoom_level AS zoom,\n count() AS count,\n min(length(tile_data)) AS smallest,\n max(length(tile_data)) AS largest,\n avg(length(tile_data)) AS average,\n min(tile_column) AS min_tile_x,\n min(tile_row) AS min_tile_y,\n max(tile_column) AS max_tile_x,\n max(tile_row) AS max_tile_y\n FROM tiles\n GROUP BY zoom_level",
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "zoom",
|
|
"ordinal": 0,
|
|
"type_info": "Int64"
|
|
},
|
|
{
|
|
"name": "count",
|
|
"ordinal": 1,
|
|
"type_info": "Int"
|
|
},
|
|
{
|
|
"name": "smallest",
|
|
"ordinal": 2,
|
|
"type_info": "Int"
|
|
},
|
|
{
|
|
"name": "largest",
|
|
"ordinal": 3,
|
|
"type_info": "Int"
|
|
},
|
|
{
|
|
"name": "average",
|
|
"ordinal": 4,
|
|
"type_info": "Float"
|
|
},
|
|
{
|
|
"name": "min_tile_x",
|
|
"ordinal": 5,
|
|
"type_info": "Int"
|
|
},
|
|
{
|
|
"name": "min_tile_y",
|
|
"ordinal": 6,
|
|
"type_info": "Int"
|
|
},
|
|
{
|
|
"name": "max_tile_x",
|
|
"ordinal": 7,
|
|
"type_info": "Int"
|
|
},
|
|
{
|
|
"name": "max_tile_y",
|
|
"ordinal": 8,
|
|
"type_info": "Int"
|
|
}
|
|
],
|
|
"parameters": {
|
|
"Right": 0
|
|
},
|
|
"nullable": [
|
|
true,
|
|
false,
|
|
true,
|
|
true,
|
|
true,
|
|
true,
|
|
true,
|
|
true,
|
|
true
|
|
]
|
|
},
|
|
"hash": "41798c456136acb48ce59769a8abd1c6fb638f84d35457093b5dfbb3c8005433"
|
|
}
|