﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
8423	change in tms downloader?	swe4329	swe4329	"There are better aerial images with higher resolution from eniro.no than from bing  for some regions in sweden. 
In january I was able to fetch the tiles from eniro  with tms:http://map01.eniro.no/geowebcache/service/tms1.0.0/aerial/{zoom}/{x}/{y}.jpeg, josm was version 5608.

I made an upgrade to version 5697 and now I get some tiles from the cache, but mostly the aerial images do not appear.

I made a jmapviever of my own, with this I can download the tiles.

Maybe there is a problem in the adress calculation, they use a slightly different calculation.

I use the following code in jmapviewer:

@Override
    public String getTilePath(int zoom, int tilex, int tiley) throws IOException {
        int eniroTileY = (1<<zoom)-1 - tiley;
        String tilePath = TILES_DIRECTORY  + zoom + ""/"" + tilex +""/""+ eniroTileY + ""."" + getExtension();
        return tilePath;
    }

the central calculation is done in:  int eniroTileY = (1<<zoom)-1 - tiley;

I wonder that the old 5608 version could read the tiles, but not the 5697 version.


"	defect	closed	normal		Core imagery		worksforme	tms download	
