ARiisgaard / Thesis

0 stars 0 forks source link

Tiles doesn't get properly rendered #23

Closed ARiisgaard closed 4 years ago

ARiisgaard commented 4 years ago

While I'm able to load some of my tiles into the openlayer file it does not place them correctly as shown in the figure.

image

It could be a result of issue #22

This could also be because there is a missmatch between the way that gdal2tiles organise the tiles and how openlayer does. gdal2tiles are creating TSM tile, whereas I think openlayers is using xyz. However the suggested fix doesn't product any good results for me.

crstn commented 4 years ago

Have you tried loading the tiles in QGIS? if that doesn't work either, I'm quite sure it's issue #22.

ARiisgaard commented 4 years ago

I can load them into QGIS, but they do lose their geo data.

It looks like the data in the tiff is still correct though

Gdal2tiles tile 2/0/2 image

TestRaster: image

ARiisgaard commented 4 years ago

Another interesting thing is that the black part in the top of the first picture are outside of the scope of the big raster (pic 2) - meaning that the black part isn't the result of lack of data, but instead cutting the tiles wrong, so it is looking for data outside of the raster

ARiisgaard commented 4 years ago

image

Turned out that the difference between xyz and tsm was the source for the majority of the mess. Somebody had been tinkering with gdal2tiles to allow it to create xyz-tiles. I changed his version to be able to handle 32b and vola

It is still broken but I handle that in seperate issues, so I'm closing this one for now