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

Support GeoSPARQL functions #17

Open
1ec5 opened this issue Jul 3, 2020 · 1 comment
Open

Support GeoSPARQL functions #17

1ec5 opened this issue Jul 3, 2020 · 1 comment

Comments

@1ec5
Copy link
Member

1ec5 commented Jul 3, 2020

Sophox currently provides the geof:distance function but none of the other GeoSPARQL functions. These functions would expand Sophox’s use cases to the point where it might begin to be a tool of choice for some OSM analysis needs. For example:

  • geof:buffer would enable visualizing radii around features’ centroids in the map view.
  • geof:within would make it possible to query for features whose centroids fall within a given nonrectangular, noncircular region.

Combined with access to full geometries (#16), these functions would enable a much wider range of use cases, for example:

  • How long is U.S. Route 50?
  • What is the largest building (by square footage or volume)?
  • How many long-distance cycling routes travel through a given bounding box?
  • How many miles of bike lanes are there in a given bounding box?
  • What are the most common height restrictions for underpasses that go under railroads?
  • Give me the fixmes inside national parks.

These use cases currently require the Overpass API, which can easily run into memory or runtime limits over large or dense enough areas.

This Phabricator ticket tracks enabling the same functions in the Wikidata Query Service.

@camelCaseNick
Copy link

geof:within would be especially helpful in conjunction with a limited to region property, in contrast to P48, directly linking to the boundary relations. (see Talk:Data items → Geographical regions as qualifiers)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants