#8423 closed defect (worksforme)
change in tms downloader?
Reported by: | swe4329 | Owned by: | swe4329 |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core imagery | Version: | |
Keywords: | tms download | Cc: |
Description
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.
Attachments (1)
Change History (4)
by , 12 years ago
Attachment: | EniroAerialTileSource.java added |
---|
comment:1 by , 12 years ago
Owner: | changed from | to
---|---|
Status: | new → needinfo |
comment:2 by , 12 years ago
Resolution: | → worksforme |
---|---|
Status: | needinfo → closed |
Try http://map{switch:01,02,03,04}.eniro.no/geowebcache/service/tms1.0.0/aerial/{zoom}/{x}/{-y}.jpeg
This works.
comment:3 by , 12 years ago
Yes, this works.
But I am sure that the entry in the table before the update had the -sign. So maybe a problem from the update of the dialog.
Looks much like you need to use {-y} instead of {y}: See Maps.