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

Negative values for tile_row #506

Closed
tim-terry-otm opened this issue Jul 17, 2023 · 2 comments
Closed

Negative values for tile_row #506

tim-terry-otm opened this issue Jul 17, 2023 · 2 comments

Comments

@tim-terry-otm
Copy link

I'm trying to get to the bottom of an error whilst converting mbtiles to pmtiles. It seems my mbtiles file has some negative row values for zoom level 4

select tile_row from tiles where zoom_level = 4 and tile_column = 8;

-48
-1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

Why would these occur?

The mbtiles file and the script used to generate it can be seen here: protomaps/go-pmtiles#56

@systemed
Copy link
Owner

Not something I've seen before. I wonder if there's some weird data in the planet that's breaking the projection.

@tim-terry-otm
Copy link
Author

tim-terry-otm commented Jul 19, 2023

Thanks, i worked around the issue by just deleting the odd rows with

DELETE FROM tiles WHERE tile_row < 0

I checked the tilemaker source, but found not mention of rows with -48, the data for these rows was empty. So guessing they were created when some warnings were fixed during generation.

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