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

Point-in-polygon for point-based geometries #6

Open
missinglink opened this issue Jul 11, 2019 · 1 comment
Open

Point-in-polygon for point-based geometries #6

missinglink opened this issue Jul 11, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@missinglink
Copy link
Member

missinglink commented Jul 11, 2019

The title is a bit of a misnomer...

The idea is that we can use point-based geometries in the PIP engine so that they are returned in results when they lie within a specified distance from the target point.

This is super useful for geographic areas where polygon data is not available, or for sources like OpenStreetMap where postcodes and suburbs are commonly just given a lat/lon (an OSM node).

Eg. https://www.openstreetmap.org/node/279655026

It's likely that all data sources will have some data which represents an area but is provided as a point.

There are two ways of achieving this:

  • 'Buffer' points into circles on import
  • Perform an additional 'distance from point' check at query-time

The former would probably be more performant but, regardless, it would be more flexible to do the latter since it allows dynamic selection of the buffer radius while the other approach would require a re-index of the database (time-consuming).

Related: #5
Related: #4

@missinglink missinglink added the enhancement New feature or request label Jul 11, 2019
@missinglink
Copy link
Member Author

Screenshot 2019-07-11 at 12 35 52

Screenshot of what that might look like

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant