opengeospatial / opengeospatial/ogcapi-features

How to implement filtering using point + range

Open
#820 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

CQL2 Future work
Dominant language
CSS
Stars
386
Forks
92
Avg merge
3d 4h
Merged PRs (30d)
15

Description

I couldn't find this in the spec (part 1 or 3) or in an earlier issue, apologies if I overlooked something.

Is there a way to implement a filter where the client sends a POINT geometry in the request and the server returns all features within a certain range of this POINT? The range could be e.g. a kilometer, in the case I'm asking about this is fixed on the server, the client cannot ask for a specific range.

It seems to me this is a common thing for users to want. Quoting the SDW-BP:

Support queries for Spatial Things based on user needs. For spatial data, typical needs that should be considered are neighborhood searches (e.g., "what is near me?" or "what is near this Spatial Thing?")

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the filtering requirements in specification parts 1 and 3 and compare them with the SDW-BP neighborhood-search guidance. Determine whether a POINT-plus-fixed-range query is already expressible; if not, define the API behavior needed and how the result will be documented and validated.

Written by the indexing model from the issue text.

Assessment

Domain
api, search
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.