Allow parsing of WKT variants
まだ誰も着手していません。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Go
- スター
- 176
- フォーク
- 27
- 平均マージ
- 1日 14時間
- マージ済み PR(30日)
- 4
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
peterstace/simplefeatures のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
peterstace/simplefeatures#726 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
peterstace/simplefeatures#725 ·
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
peterstace/simplefeatures#724 ·
-
cleanup
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
peterstace/simplefeatures#722 ·
-
bug
難易度 3/5 半日 初心者へのやさしさ 45/100
peterstace/simplefeatures#721 ·
peterstace/simplefeatures の issue をすべて見る
似ている issue
-
enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
DaoCloud/DaoCloud-docs#7839 ·
メンテナーはふだん 1 日以内に返信
-
Type: Enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
projectdiscovery/urlfinder#167 ·
メンテナーはふだん 1 日以内に返信
-
area: import bug go good first issue priority: low
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
fukubie/StockLlama#69 ·
-
enhancement help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
cloverworks-hq/rumpty-cli#95 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 10 日以内に返信