Skip to content

Fix GeometryToBingTiles for certain geometries#13645

Merged
mbasmanova merged 1 commit intoprestodb:masterfrom
jagill:bing-tile-geometry-fix
Nov 5, 2019
Merged

Fix GeometryToBingTiles for certain geometries#13645
mbasmanova merged 1 commit intoprestodb:masterfrom
jagill:bing-tile-geometry-fix

Conversation

@jagill
Copy link
Contributor

@jagill jagill commented Nov 4, 2019

Geometries that had a max longitude equal to BingTile.MIN_LONGITUDE
or min latitude equal to BingTile.MAX_LATITUDE would originally
not get tiled, and with 0.227 would throw an exception. This was due to
"trimming" a SE tile to negative tileX or tileY. This change ensures
that the SE tile cannot be west or north or the NW tile, preventing
those issues.

Fix #13639

== RELEASE NOTES ==

General Changes
* Fix geometry_to_bing_tile for geometries at -180 longitude or 85.05112878 latitude.

@jagill
Copy link
Contributor Author

jagill commented Nov 4, 2019

cc @mbasmanova

@mbasmanova mbasmanova self-assigned this Nov 4, 2019
@mbasmanova mbasmanova self-requested a review November 4, 2019 21:16
Geometries that had a max longitude equal to `BingTile.MIN_LONGITUDE`
or min latitude equal to `BingTile.MAX_LATITUDE` would originally
not get tiled, and with 0.227 would throw an exception.  This was due to
"trimming" a SE tile to negative tileX or tileY.  This change ensures
that the SE tile cannot be west or north or the NW tile, preventing
those issues.
@jagill jagill force-pushed the bing-tile-geometry-fix branch from 8599d27 to de7d875 Compare November 5, 2019 18:16
@mbasmanova mbasmanova merged commit ffed56f into prestodb:master Nov 5, 2019
@jagill jagill deleted the bing-tile-geometry-fix branch November 5, 2019 21:53
@caithagoras caithagoras mentioned this pull request Dec 18, 2019
14 tasks
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

Successfully merging this pull request may close these issues.

GeometryToBingTiles fails on certain degenerate geometries

3 participants