diff --git a/README.md b/README.md index d69915a..f8b4f8c 100644 --- a/README.md +++ b/README.md @@ -150,3 +150,22 @@ python roentgen.py -b 2.284,48.86,2.29,48.865 Check all arguments with `python roentgen.py --help`. +Tile generation +--------------- + +```bash +python roentgen.py tile \ + -c ${LATITUDE},${LONGITUDE} \ + -s ${OSM_ZOOM_LEVEL} +``` + +Tile will be stored as SVG file to `tiles/tile___.svg`, where `x` and `y` are tile coordinates. + +Example: + +```bash +python3 roentgen.py tile -c 55.7510637,37.6270761 -s 18 +``` + +will generate SVG file `tiles/tile_18_158471_81953.svg`. + diff --git a/doc/readme.moi b/doc/readme.moi index c8744d6..0112aed 100644 --- a/doc/readme.moi +++ b/doc/readme.moi @@ -193,3 +193,17 @@ Example\: {\tt {-i}\: path to input XML file name. If this argument is not set, XML file will be downloaded through OpenStreetMap API.} Check all arguments with \tt {python roentgen.py --help}. + +\2 {Tile generation} {tile-generation} + +\code {python roentgen.py tile \\ + -c $\{LATITUDE\},$\{LONGITUDE\} \\ + -s $\{OSM_ZOOM_LEVEL\}} {bash} + +Tile will be stored as SVG file to \tt {tiles/tile___.svg}, where \tt {x} and \tt {y} are tile coordinates. + +Example\: + +\code {python3 roentgen.py tile -c 55.7510637,37.6270761 -s 18} {bash} + +will generate SVG file \tt {tiles/tile_18_158471_81953.svg}. \ No newline at end of file