gdal2tiles-leaflet icon indicating copy to clipboard operation
gdal2tiles-leaflet copied to clipboard

Correct Tile row and col number

Open Why-Yu opened this issue 4 years ago • 1 comments

After using gdal2tiles2.py to cut tiles, the row and column number of the generated image starts from 0 and 0 by default. Can I input the longitude and latitude to make the row and column number correct? At the same time, in this case, the upper left corner of the image is taken as the starting point of slice by default. However, the upper left corner of any image is not exactly located in the upper left corner of a bounding rectangle under the leaflet slicing rule. Is there any way to crack it?

Why-Yu avatar Sep 28 '20 13:09 Why-Yu

In this coordinate system lat and lng are pixels. Tiles start at 0,0 from the upper left corner. I don't understand what is wrong with the numbering of the tiles? As well as I have not understood your problem you try to fix.

commenthol avatar Apr 09 '22 10:04 commenthol