-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
Slippy tile issue 997 #1007
Slippy tile issue 997 #1007
Conversation
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.
Lots of great clean up. Thanks for tackling this!
@@ -79,7 +79,7 @@ func TestReplaceTokens(t *testing.T) { | |||
sql: "SELECT id, !pixel_width! as width, !pixel_height! as height, !scale_denominator! as scale_denom FROM foo WHERE !BBOX!", | |||
layer: Layer{srid: tegola.WebMercator, geomField: "geom"}, | |||
tile: provider.NewTile(11, 1070, 676, 64, tegola.WebMercator), | |||
expected: `SELECT id, 76.43702827 as width, 76.43702827 as height, 272989.38669477 as scale_denom FROM foo WHERE "geom".ST_IntersectsRectPlanar(NEW ST_POINT($1, $3), NEW ST_POINT($2, $3)) = 1`, | |||
expected: `SELECT id, 76.43702829 as width, 76.43702829 as height, 272989.38673277 as scale_denom FROM foo WHERE "geom".ST_IntersectsRectPlanar(NEW ST_POINT($1, $3), NEW ST_POINT($2, $3)) = 1`, |
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.
Are these the old values before the change happened in the last version, or did you generate new values?
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.
I generated new values. Did not conform the values.
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.
Ok, maybe check the old values to see how close they line up.
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.
I looked at it's all within 0.00000001
of each other. Some of the number are close to what was there, but the numbers after are different. I think this is again due to the drift in floating numbers.
622dd46
to
743a4d8
Compare
Pull Request Test Coverage Report for Build e5a736695Details
💛 - Coveralls |
@gdey one nit on this PR, can you rename the commit titles? They're currently the same, but one commit is for vendoring the geom package, the other is for adopting it. |
updated geom to v0.1.0
Updated to use slippy tile from geom v0.1.0. This fixes the issues with slippy tile.
743a4d8
to
e5a7366
Compare
No description provided.