osm_tiles_calculator v1.1.0
Osm Tiles calculator
Calculte the amount of tiles needs for a given area and an optional zooms range.
Install
With npm:
$ npm i osm_tiles_calculator -gUsage
$ osm_tiles_calculator -b -2 45 3 48Try
$ osm_tiles_calculator --help for detailled usage instructions.Options
-bounds ( -b ) (required)
Bounds of the area for witch you want to calculate the tiles needed amount.
Bounds must be in the form minLon minLat maxLon maxLat
Latitudes must be lower that 85° and greater than -85°.
Example :
$ osm_tiles_calculator -b -2 45 3 48-zooms ( -z ) (optional)
An optional option you can use to specify zoom or zoom range for the calculation. Default is range 0-20
$ osm_tiles_calculator -b -2 45 3 48 -z 13or
$ osm_tiles_calculator -b -2 45 3 48 -z 13 15-output ( -o ) (optional)
An optional option you can use to generate a .txt file containing the tiles count report.
$ osm_tiles_calculator -b -2 45 3 48 -oYou can also specify the filename for the generated file :
$ osm_tiles_calculator -b -2 45 3 48 -o my_fileor
$ osm_tiles_calculator -b -2 45 3 48 -o "this is my file"-csv ( -c ) (optional)
An optional option you can use to generate a .csv file containing the tiles count report rather than the default .txt file.
Must be used in conjunction with the -out ( -o ) flag.
$ osm_tiles_calculator -b -2 45 3 48 -o "my csv report" -cLicense
osm_tiles_calculator is available under the MIT license.
Contact
Copyright (C) 2017 Phiphou
