Add WrapX

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

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
go
Domain
backend

Research direction

Read the linked PostGIS ST_WrapX documentation and inspect the geometry type APIs and constructor options. Add WrapX methods for each geometry type, returning an error when a shifted geometry is invalid; the issue notes that some types, such as Point, may not need options or an error. Done means the methods handle each type and invalid shifted geometries are reported.

Written by the indexing model from the issue text.

Description

algorithm feature

See https://postgis.net/docs/ST_WrapX.html

  • Add new methods to each geometry type, WrapX(opts ...ConstructorOption) (T, error). For some geometry types (e.g. Point) it can just be WrapX() T without any problems.
  • The error is in case the shifted geometry is invalid.
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.