spring-projects / spring-projects/spring-data-mongodb

GeoConverters does only support polygons with one hole?

Open
#5,190 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: enhancement
Dominant language
Java
Stars
1.7k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

Hi all,

I currently try to read a GeoJsonPolygon with two holes from the database. In the db its correctly persisted with three items in the coordinates array (one outer and two inner rings).

However, when reading, it seems that only the first hole is considered. This issue was already discussed in https://github.com/spring-projects/spring-data-mongodb/issues/4104 with the same remark in the end. I am not sure if it was not implemented for a specific reason or missed?

Kind regards
Chris

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 tracing the GeoConverters polygon-reading path and compare it with the stored GeoJSON coordinates array containing one outer ring and two inner rings. Confirm where the second hole is lost; done means reading a polygon preserves both holes, with coverage for this two-hole case.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, mongodb, spring
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.