PiRSquared17 / tilers-tools

Automatically exported from code.google.com/p/tilers-tools
0 stars 0 forks source link

Wrong dir structure in HTML files #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. gdal_tiler.py -z 1:18 --tps -q -r -s -p xyz file.kap -t outputdir

What is the expected output? What do you see instead?

outputdir contains directories up to the number 18, some json files and some 
HTML files (that allows to have a quick overview of the generated tiles).

But there is one problem: directories are numbers (1, 2, 3, ... 18) while the 
HTML files have links to z<zoom level>

For example, while we have a dir 10, the HTML will generate a link to z10 (thus 
making the tiles not found)

See for example this in viewer-google.html:

var url = 'z'+zoom+"/"+y+"/"+x+"."+tilemap.tiles.ext;

Or the directories should be updated to z<number> or the HTML should have the 
"z" removed.

Original issue reported on code.google.com by nao...@gmail.com on 15 Jul 2014 at 1:53

GoogleCodeExporter commented 9 years ago
The thing is that viewer-google.html and viewer-openlayers.html are designed to 
work with ZYX profile which is a quite different from XYZ profile which you are 
using at your report. 

So I'd suggest you'd try ZYX profile if it fits you needs. I'll have a look if 
I could do anything more on this.

Original comment by vadp.d...@gmail.com on 16 Jul 2014 at 3:34

GoogleCodeExporter commented 9 years ago
Fixed in release 483f3799e96c: 

viewer-google.html and viewer-openlayers.html are created only in ZYX profile

Original comment by vadp.d...@gmail.com on 1 Aug 2014 at 10:11