Allow parsing of WKT variants
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Go
- Star
- 176
- Fork
- 27
- Merge trung bình
- 1 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của peterstace/simplefeatures
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
peterstace/simplefeatures#726 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
peterstace/simplefeatures#725 ·
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
peterstace/simplefeatures#724 ·
-
cleanup
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
peterstace/simplefeatures#722 ·
-
bug
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 45/100
peterstace/simplefeatures#721 ·
Tất cả issue của peterstace/simplefeatures
Issue tương tự
-
tld-snapshot
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
awslabs/ferret-scan#1064 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
【文档错误】创建镜像空间步骤中的截图标注与文字描述不一致Đang mởenhancement
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
DaoCloud/DaoCloud-docs#7839 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Ignore entry for RUSTSEC-2026-0002 no longer matches anything (`lru` is no longer in `Cargo.lock`)Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
influxdata/influxdb#27767 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Support AlienVault OTX API keysĐang mởType: Enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
projectdiscovery/urlfinder#167 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
gojue/ecapture#1100 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày