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

configurable tile buffer #107

Closed
ARolek opened this issue Apr 10, 2017 · 8 comments
Closed

configurable tile buffer #107

ARolek opened this issue Apr 10, 2017 · 8 comments
Milestone

Comments

@ARolek
Copy link
Member

ARolek commented Apr 10, 2017

One of the issues being reported during geometry clipping (#56) is a rendering fragment due to the lack of tile buffer. Vector tiles use a "hack" where the tile buffer extends beyond the tile extent. This allows for a smooth transition between tiles. An example of the issue can be seen in the attached screenshot.
fa79546e-1b6a-11e7-966e-656cbec01aec

@ARolek ARolek modified the milestone: v0.4.0 Apr 25, 2017
@ARolek ARolek modified the milestones: v0.4.0, v0.5.0 Nov 1, 2017
@sagarr
Copy link

sagarr commented Nov 22, 2017

I hope it also solves problem like this (road cuts at adjoining tiles)

fireshot capture 1 - - http___localhost_8080_index html 16 39_49 58995_6 14185

@gdey
Copy link
Member

gdey commented Nov 29, 2017

Yes, I would say those issues are related to the title buffer. The buffer is not big enough.

@gdey
Copy link
Member

gdey commented Dec 4, 2017

I no longer think it's because the tile buffer is not big enough. I think this has to do with the geometries we are grabbing before clipping. These geometries are the ones within a bounding box defined by the z/x/y tile. We then expand that bounding box the buffer size and clip the geometries to that new bounding box. Unfortunately, this means we don't grab all possible geometries that could be there in the newly expanded bounding box. (The Purple geometries in the figure.) I believe this is leading to the jagged edges we see as alluded to by this StackOverflow post.

explain_107

What we should be doing is expanding the bounding box by the buffer, and grab all the geometries in that new bounding box. We just clip to that bounding box as well.

@gdey
Copy link
Member

gdey commented Dec 6, 2017

Anyone have an isolated dataset for this issue? I think I have a solution; that I need to test.

@sagarr
Copy link

sagarr commented Dec 6, 2017

@gdey Do you have a solution on github branch which I can pull from? I want to test it.

@gdey
Copy link
Member

gdey commented Dec 6, 2017

@sagarr Not yet, I'll push up as soon as I have figured out a bug (that I introduced when making changes for this issue), then ping you.

@ARolek ARolek modified the milestones: v0.5.0, v0.6.0 Dec 11, 2017
gdey added a commit that referenced this issue Dec 12, 2017
This fix does not make the size of the tile buffer available in the
config file.

We believe the reason for some of the jagged lines that occurs has to
do with features that are missing from the buffer region of the tile.
When grabbing features to display, we were only grabbing feature that
intersected the bounding box of the tile, instead of the bounding box
of the tile plus a buffer zone. We query for all the features we need,
including the ones that only intersect with the buffer
zone.

Some of the issues reported in #107, we believe is caused by these
miscalculated bounding boxes.

Additional clean up is required to remove unused code.
gdey added a commit that referenced this issue Dec 12, 2017
This fix does not make the size of the tile buffer available in the
config file.

We believe the reason for some of the jagged lines that occurs has to
do with features that are missing from the buffer region of the tile.
When grabbing features to display, we were only grabbing feature that
intersected the bounding box of the tile, instead of the bounding box
of the tile plus a buffer zone. We query for all the features we need,
including the ones that only intersect with the buffer
zone.

Some of the issues reported in #107, we believe is caused by these
miscalculated bounding boxes.

Additional clean up is required to remove unused code.
gdey added a commit that referenced this issue Dec 12, 2017
This fix does not make the size of the tile buffer available in the
config file.

We believe the reason for some of the jagged lines that occurs has to
do with features that are missing from the buffer region of the tile.
When grabbing features to display, we were only grabbing feature that
intersected the bounding box of the tile, instead of the bounding box
of the tile plus a buffer zone. We query for all the features we need,
including the ones that only intersect with the buffer
zone.

Some of the issues reported in #107, we believe is caused by these
miscalculated bounding boxes.

Additional clean up is required to remove unused code.
@gdey
Copy link
Member

gdey commented Dec 12, 2017

@sagarr I just pushed up a branch called issue-107. Please try that branch out. I still have a few failing tests there, and some clean up to do.

But you should be able to test it.

@ARolek
Copy link
Member Author

ARolek commented Jan 4, 2018

This issue has been merged into the v0.6.0 branch and will be included in the next release. You can give it a test by pulling down the branch and building from source.

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

3 participants