[mapguide-users] specification of TileCache

Hans Milling hm at geograf.dk
Wed Feb 6 00:08:18 PST 2013


The tile cache folder is calculated like this looping trough all the tiles
(pseudo code):

for r=r1 to r2
  for c=c1 to c2
    ri = r - (r % 30)
    ci = c - (c % 30)
    if (ri == 0 & r < 0) ri = -ri;
    if (ci == 0 & c < 0) ci = -ci;
    folder = tileroot + "\\S" + scaleindex + "\\" + groupname + "\\R" + ri +
"\\C" + ci + "\\" + r % 30 + "_" + c % 30 + "." + fileextension
  next c
next r

Best regards
  Hans Milling...



--
View this message in context: http://osgeo-org.1560.n6.nabble.com/specification-of-TileCache-tp5032364p5032395.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list