Allow parsing of WKT variants
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
Direzione di ricerca
Start by locating the WKT recursive descent parser and its grammar rules; the issue does not name files or tests. Compare how it handles the separate POINT and Z tokens with the single POINTZ variant, then check the project’s parser tests. Done means the parser accepts the described Z and M variants while continuing to accept the standard token form.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
There are variant WKTs for Z and M geometries that are invalid according to the official WKT grammar. These variants are parsed successfully by PostGIS, so we should parse them successfully as well. This follows the Robustness Principle.
For example, the token stream POINTZ ( 1 2 3 ) is invalid according to the official grammar. This is because POINT and Z should be separate tokens (i.e. the token stream POINT Z ( 1 2 3 ) is valid according to the official grammar, and we already accept it). We wish to also accept the token stream variant containing POINTZ as a single token.
PostGIS might accept POINTZ because it's building tokens in a slightly different way (and can split single words into multiple tokens based on pre-defined boundaries). Or maybe it's just allowing POINTZ by altering the grammar it accepts. The exact method that PostGIS uses doesn't actually matter too much for our purposes, since it's the behavior that's important.
Modifying our WKT tokenizer to split POINTZ into two tokens (POINT and Z) seems a bit complicated though. I think we should leave the WKT tokenizer the same, but modify the grammar used by the recursive descent parser to accept the variant grammar instead.
- 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
-
【文档错误】创建镜像空间步骤中的截图标注与文字描述不一致Apertaenhancement
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 62/100
DaoCloud/DaoCloud-docs#7839 ·
I maintainer di solito rispondono entro 1 giorno
-
Type: Enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
projectdiscovery/urlfinder#167 ·
I maintainer di solito rispondono entro 1 giorno
-
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
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
I maintainer di solito rispondono entro 10 giorni