spring-projects / spring-projects/spring-data-mongodb
GeoConverters does only support polygons with one hole?
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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