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

overlapping pixel height not identical #8

Open
qtang3 opened this issue Sep 5, 2015 · 1 comment
Open

overlapping pixel height not identical #8

qtang3 opened this issue Sep 5, 2015 · 1 comment

Comments

@qtang3
Copy link

qtang3 commented Sep 5, 2015

Hello,

I am not sure if the program can generate overlapping tiles that meet the following criteria:

  • The tiles are 65x65 vertices and overlap their neighbors at their edges. In other words, at the root, the eastern-most column of heights in the western tile is identical to the western-most column of heights in the eastern tile.

I did the following change to your code:

  • set self.extrapixels = 1
  • add some extra code to save tiles to tif (SetGeoTransform, SetProjection, etc) before destroying dstiles.
  • specify a single tif file as input (datetype= Byte)

Then I open adjecent tiles in QGIS and found out the overlapping pixel'e height is not identical.

@giohappy
Copy link
Owner

giohappy commented Sep 9, 2015

Hi.
Are you sure overlapping pixels don't match? In one of the latest commits I fixed soem problems related to this. The only easy, robust, solution I found was setting self.extrapixels to 0, adding a post-processing phase (at the end of tile generation) which grabs and copies all the overlapping pixels between adjacent tiles. It solved all the corner cases I spot, in various geographical regions. Could you share a case where it still happen?

Repository owner deleted a comment from Soumya6Tiwari Feb 23, 2024
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