Skip to content

Closest point returning unexpected results for polygons #28

@mapsam

Description

@mapsam

The visual tests show that the results from closest point aren't completely expected. Some polygons' results are along the expected edge, but others are on the opposite side of the polygon. This appears related to where the query point is so perhaps this is a result of winding order or a negative value origin point?

Here's a gif showing the results from vtquery flipping as the point gets closer to the polygons on the lower portion of the image (this is not on a tile border, FYI):

tilequery-flipping-results

My expectations:

screenshot-localhost-5000 2017-10-25 08-38-13-111

These are Mapbox Streets tiles and I can recreate the issue at z15 with any buildings.

cc @flippmoke

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions