pelias / pelias/spatial

Enclaves / Exclaves

Open
#37 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
32
Forks
8
Avg merge
13m
Merged PRs (30d)
1

Description

I noticed that Berlin shows as WITHIN Brandenburg when it's actually an enclave.

This issue is to add some tests for enclaves/exclaves and also to add some SQL comments to the spatial relationships queries.

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

Start by locating the spatial relationship queries and the existing relationship tests; the issue specifically calls out Berlin and Brandenburg as the failing enclave case. Add coverage for enclave and exclave relationships and document the relevant SQL, with the tests confirming that Berlin is not reported as simply WITHIN Brandenburg.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, sqlite
Domain
backend, databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.