TIREX-T...IR-CHECK(1)
πΈ tirex-tiledir-check(1) β bestie edition π
okay so picture this: a Perl-contributed user manual, the User Contributed Perl Documentation shelf, and it's all about tirex-tiledir-check. she's a little utility that walks your tile dir and tells you if anything's sus. let's get into it π«Ά
β¨ NAME β¨
tirex-tiledir-check β check tile dir, literally that's the whole job π
π SYNOPSIS π
tirex-tiledir-check [OPTIONS] MAP
one command, one MAP, a whole lot of options. let's go.
β OPTIONS β
-h,--helpβ pops up the help message, no thoughts head empty, just usage β¨-c,--config=DIRβ use the config directory DIR instead of/etc/tirex. she can live anywhere you want her to π-l,--list=FILEβ write a list of tiles to FILE. format deets below, keep scrolling bestie π-s,--stats=FILEβ write stats about the tiles to FILE. format deets below too π-z,--minz=iβ start processing at min zoom level i (default=0) π¦-Z,--maxz=iβ stop processing at max zoom level i (default=19). note the capitalZ, she's a different girlie than-zπ-c,--config=DIRβ wait no, already said that one. moving on, we stay accurate here π
π DESCRIPTION π
so what does she actually do? she walks recursively through the tiles directory for the MAP you gave her and checks for:
- wrong directory names
- wrong file names
- files that just can't be accessed π
if she finds problems, the messages go to STDERR. dramatic but useful.
when you hand her the --list and/or --stats options, she outputs info about each tile and/or generates statistics, respectively. the list and the stats get written to the filenames you gave β and if you pass - as the filename, STDOUT is used instead β¨
π¨ important: you can only use STDOUT for either the list file or the stats file. not both. pick a lane bestie.
β οΈ caution, and she means it: this command will go through all metatiles on your disk andstateach file. on a lightly loaded machine with lots of RAM this can go pretty quick, but under high IO loads it might take a long time. take this into account if you want to run it regularly fromcronor similar. don't be the girlie who fills the crontab and then wonders why everything is slow π
π LIST FILE FORMAT π
the list file is in CSV format, with one line per metatile. the fields are:
ageβ age of metatile in seconds β³sizeβ size in bytes of the metatile πblocksβ number of blocks used for this metatile π§±metatileβ description of metatile. format:map=foo x=8 y=0 z=10
this data can be read with other programs to create statistics etc. go off, data queen π
π¦ STATS FILE FORMAT π¦
the stats file is in JSON format. it contains a hash with the names of all maps as keys and a list of zoom levels as their values. for each zoom level there's a nested hash containing the statistics:
countβ number of tilesmaxageβ maximum age in secondsmaxblocksβ maximum number of blocksmaxsizeβ maximum file size in bytesminageβ minimum age in secondsminblocksβ minimum number of blocksminsizeβ minimum file size in bytessumageβ sum of ages in secondssumblocksβ sum of number of blockssumsizeβ sum of file size in bytes
the sumage, sumblocks, and sumsize values can be divided by count to get the average. math girlie math πβ¨
this file can be displayed in a human readable format with the program tirex-tiledir-stat. it's also read by several Munin plugins π
π FILES π
/etc/tirex/tirex.confβ the configuration file. that's her home base π‘
π DIAGNOSTICS π
- returns
0if no errors were found β - returns
1if there were errors π - if there were errors parsing the command line,
2is returned π©
exit codes are exit codes, we respect them in this house.
π₯ SEE ALSO π₯
<http://wiki.openstreetmap.org/wiki/Tirex>β the wiki, go read, iykyk π
π AUTHORS π
Frederik Ramm <frederik.ramm@geofabrik.de>, Jochen Topf <jochen.topf@geofabrik.de> and possibly others. icons, all of them π
and that's the whole page bestie, no cap. this was perl v5.40.1, dated 2026-08-09 β mwah, periodt ππβ¨
π¦ where this page comes from
- ubuntu stonking: tirex 0.8.0+ds-2build3 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms