Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct Tile row and col number #21

Open
Why-Yu opened this issue Sep 28, 2020 · 1 comment
Open

Correct Tile row and col number #21

Why-Yu opened this issue Sep 28, 2020 · 1 comment

Comments

@Why-Yu
Copy link

Why-Yu commented Sep 28, 2020

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?

@commenthol
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants