t-rex icon indicating copy to clipboard operation
t-rex copied to clipboard

Directory layout?

Open amandasaurus opened this issue 8 years ago • 3 comments

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?

amandasaurus avatar Jan 27 '17 14:01 amandasaurus

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.

pka avatar Jan 30 '17 22:01 pka

You may be interested in my directory-hierarchy branch. (full diff from master)

amandasaurus avatar Feb 10 '17 10:02 amandasaurus

It would be nice to be able to pick which layout you want - there are uses for both.

pnorman avatar Feb 19 '18 21:02 pnorman