Modify

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#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)

EniroAerialTileSource.java (1.4 KB ) - added by swe4329 11 years ago.

Download all attachments as: .zip

Change History (4)

by swe4329, 11 years ago

Attachment: EniroAerialTileSource.java added

comment:1 by stoecker, 11 years ago

Owner: changed from team to swe4329
Status: newneedinfo

Looks much like you need to use {-y} instead of {y}: See Maps.

comment:2 by stoecker, 11 years ago

Resolution: worksforme
Status: needinfoclosed

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 swe4329, 11 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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain swe4329.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.