Hi Victor
Thanks for the answer.
This sounds interesting, so I can control myself how the tiles are
accessed - this would be perfect.
Yes, the projection of the swiss grid is (from wikipedia): "Oblique
Mercator on an 1841 Bessel ellipsoid"
I checked the folders on my phone to find the .metainfo file but I
could not find them first. Downloading the Microsoft Map with osmand
map creator helped me out. In the "Microsoft Map" folder I found
the .metainfo file with the content attached below.
Please note that I already have some tiles offline. Hence I want to
build a db and use it with osmand.
Is there any documentation on how to use these files? In the osmand
wiki maybe?
Thanks for an answer!
.metainfo file for ms maps:
----------------------------------------------
[rule]
beanshell
[url_template]
public static String eqt(int z, int x, int y) {static final char[]
NUM_CHAR = { '0', '1', '2', '3' };char[] tn = new char[z];for (int i =
z - 1; i >= 0; i--) {int num = (x % 2) | ((y % 2) << 1);tn[i] =
NUM_CHAR[num];x >>= 1;y >>= 1;}return new String(tn);} String
getTileUrl(int z, int x, int y) { return "http://" + "r" + "0" +
".
ortho.tiles.virtualearth.net/tiles/" + "r" + eqt(z,x,y) + ".png" + "?
g=45";}
[ext]
png
[min_zoom]
1
[max_zoom]
19
[tile_size]
256
[img_density]
16
[avg_img_size]
18000
-----------------------------------
On 18 Jul., 11:45, Victor Shcherb <
vics...@gmail.com> wrote:
> Hi
>
> I briefly read your message. Are your coordinate system is elliptic
> merkator? It is already supported.
> Actually you can install on osmand YandexMap and MicrosoftMap, go to
> osmand/tiles and find in each folder .metainfo file.
> That file contains information about tile system, actually the scripting
> language (Java) can be used to convert queries from osmand to correct tiles.
>
> So there are possibilities to do without updating application.
>
> Please take a look
>
> 2011/7/18 spinxz <
pinkpanther4...@gmail.com>