Add Homogenize
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 38/100
Direzione di ricerca
Start by reading the GeometryCollections methods and geometry type definitions in the repository; the issue does not name specific files or tests. Implement Homogenize() to follow the listed empty geometry, merging, and output ordering rules while keeping polygons separate. Done means those cases are covered by tests and the returned geometry types and ordering match the issue.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
It would be similar to https://postgis.net/docs/ST_CollectionHomogenize.html
ST_CollectionHomogogenize has a bad characteristic that it can return invalid MultiPolygons. That's not a good idea... Instead, we would return Polygons separately.
It should be a new method Homogenize() Geometry on GeometryCollections. It should:
- Empty geometries inside the geometry collection should be ignored.
- If after ignoring empty geometries there is nothing left, then it should return an empty GC.
- If the GC contains a single geometry, it should return it as a single geometry.
- All points (whether from singular points or multipoints) will be merged into a single multipoint.
- All linestrings (whether from singular linestrings or multilinestrings) will be merged into a single multilinestring.
- Polygons and Multipolygons will NOT be merged, to avoid invalid MultiPolygons.
- If there is just a single multi geometry (i.e. multipoint, multilinetring) or areal geometry (polygon or multipolygon) then they can be returned on their own.
- But if there are multiple, they get returned in a new GC (multipolygons first, then polygons, then multilinestrings/linestring, then multipoint/point).
- Lingua principale
- Go
- Stelle
- 176
- Fork
- 27
- Merge medio
- 1g 14h
- PR unite (30g)
- 4
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di peterstace/simplefeatures
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
peterstace/simplefeatures#726 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
peterstace/simplefeatures#725 ·
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
peterstace/simplefeatures#724 ·
-
cleanup
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
peterstace/simplefeatures#722 ·
-
bug
Difficoltà 3/5 Mezza giornata Idoneità per principianti 45/100
peterstace/simplefeatures#721 ·
Tutte le issue di peterstace/simplefeatures
Issue simili
-
area: import bug go good first issue priority: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
fukubie/StockLlama#69 ·
-
enhancement help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
cloverworks-hq/rumpty-cli#95 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
pulseaiclub/phi#615 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno