t-rex
t-rex copied to clipboard
Directory layout?
The file directory cache uses a very simple Z/X/Y.pbf
layout scheme. This is OK for many things, but you can wind up with a lot of file entries per directory. Especially if you're going to create all the vectortors for zoom 14. Most other tools which store tiles use a more split up format. I have a branch which uses the tile TileStash safe format (Z/xxx/xxx/yyy/yyy.pbf
) format.
Would it be a good idea to change the directory layout?
I'm interested in supporting the tilestash layout. It should be configureable, maybe ending up similar to MapCache.
The current directory layout can be used by mb-util
to create mbtiles. Eventually this functionality will be integrated into t-rex.
You may be interested in my directory-hierarchy branch. (full diff from master)
It would be nice to be able to pick which layout you want - there are uses for both.