hi
my english is too bad , and i don't know any thing about Rusian
i just can find here by google translator system
please help me, i want to convert longitude and latitude position to a PIXEL on one of these JPGs !
for example i need to convert :
longitude="51.240234" latitude="35.817813" NE
to a JPG name like :
..\SASPlanet2\cache\SAT\z18\74\x76092\47\y49110.jpg
i found :
result:=path+'\z'+zoom+'\'+(x div 1024)+'\x'+x+'\'+(y div 1024)+'\y'+y+ext;
in this forum. so if i can calcute X number and Y number of this position, then i can found exact file name of my file
after some sxam i can calculte X of my position :
for each ZOOM level,we have 2^(zoom level -1 ) images in row and colum
left corner is -180 and right corner is +180
so i can calculate my X for zoom level 14 like this :
((180+51.240234)/360)*8192
also i found up corner is +85.0511111111111111111 and down corner is +85.0511111111111111111
but i cant found any formula to calculte Y position
please help me, sorry again for my bad english.
let me repeat my question:
i need to conver position with longitude=..... and latitude=.... to JPG number X=.... and Y=....
thnak you