-
-
Notifications
You must be signed in to change notification settings - Fork 221
atlas: remove usage of tegola.Tile #636
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
Conversation
Pull Request Test Coverage Report for Build 1795
💛 - Coveralls |
Since it wasn't much, I also removed the last use of Line 105 in d5f77ab
Line 138 in d5f77ab
I'm leaning towards the tile... |
@ear7h let's use the tile for SeedMapTile. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks really good, thanks for tackling it. I have a few comments inline. Also, if tegola tile is no longer being used, is there any reason to not purge it with the commit?
@ear7h this looks great. Please clean up the commit history and then I will rebase it into v0.11.x |
dab19f9
to
80031eb
Compare
3ff9ac6
to
78a4e9d
Compare
I had to rebase, but I was running into merge issues and simply applied the commit 3ff9ac6 to |
6be26e4
to
80c69f1
Compare
* added tests for clipped geometries in Encode and fix buffer bug * remove tegola.Tile from encode function * remove tegola.Tile from map and cmd packages * remove tile*.go files but keep default constants * use tile instead of zxy params in SeedMapTile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just remove encode-cleanup.patch from the commit and then we're good.
80c69f1
to
3895b9f
Compare
note: this pr had a different name because I originally wrote this as part of the changes in 46e9eeb
This pr has two major changes to remove the
tegola.Tile
from the encode function. The first is related to clipping and the second to the epsilon value. I've written the explicit changes below bc they can be hard to follow.This pr also has new tests for
Encode
that test the clipping mechanism. This required a change in the test provider to be able to specify the features it contains.clipping
tegola/tile.go
Lines 101 to 104 in 46e9eeb
tegola/tile.go
Lines 192 to 194 in 46e9eeb
tegola/atlas/map.go
Lines 208 to 213 in 46e9eeb
and the new:
tegola/atlas/map.go
Lines 208 to 211 in 428bd2c
epsilon
Current:
tegola/tile.go
Lines 209 to 225 in 46e9eeb
New:
tegola/maths/simplify/epislon.go
Lines 13 to 28 in 428bd2c