martin/mbtiles/.sqlx/query-41798c456136acb48ce59769a8abd1c6fb638f84d35457093b5dfbb3c8005433.json
Lucas 0398336114
Add mbtiles statistics command (#986)
- [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>
2023-11-13 06:03:40 +00:00

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"
}