Implement MakeValid

Open
#435 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
18/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
go
Domain
backend, data

Research direction

Start by researching how PostGIS and GEOS implement MakeValid, as the issue requests; it does not name files, tests, or an entry point. First determine the algorithm and its behavior for invalid geometries, then map the findings to the simplefeatures Go code. Done means implementing native MakeValid after establishing that algorithm; the issue gives no specific tests or acceptance criteria.

Written by the indexing model from the issue text.

Description

feature jtsport

MakeValid is an operation that exists both in PostGIS and GEOS. It basically accepts an invalid geometry as input, and then "makes it valid" by returning a different geometry that is similar (but not identical!) to the original.

There will be a few steps to implement this in simplefeatures natively in Go:

  • Get a good understanding of how MakeValid actually works in PostGIS and GEOS, i.e. what is a description of the actual algorithm? Right now, it seems a little big "magical".
  • Implement MakeValid.
Dominant language
Go
Stars
176
Forks
27
Avg merge
1d 20h
Merged PRs (30d)
6

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No 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.

More from peterstace/simplefeatures

All issues in peterstace/simplefeatures

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.