Skip to content

feat: added s_dwithin predicate - #166

Open
jkaniuka wants to merge 1 commit into
geopython:mainfrom
piappl:feat/cql2
Open

feat: added s_dwithin predicate#166
jkaniuka wants to merge 1 commit into
geopython:mainfrom
piappl:feat/cql2

Conversation

@jkaniuka

@jkaniuka jkaniuka commented Aug 29, 2026

Copy link
Copy Markdown

Adds support for s_dwithin predicate to query GeoJSON records whose feature.geometry is within a given distance from a specified point.

Here ➡️ pygeoapi/pull/2403 is a link to corresponding PR that modifies the Mongo provider in pygeoapi. Our goal is to enable queries like the one below:

{
    "filter-lang": "cql2-json",
    "filter": {
        "op": "s_dwithin",
        "args": [
            {"property": "feature.geometry"},
            {
                "type": "Point",
                "coordinates": [13.0, 65.0]
            },
            250000,
            "meters"
        ]
    }
}

Thanks to @Jacob7052 for the implementation 😎

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.

1 participant