Share one bounding box accumulator across TWKB sub-writers
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Start with writeGeometryCollection and copytwkbWriter, which create the per-child TWKB writers, then look at writePointArray where each coordinate updates bboxValid, bboxMin and bboxMax. The widenBBox helper comes from PR #720, which is not on master, so confirm that PR's status before starting. Pick one option: share the parent's box state with sub-writers, or move the min/max update into a shared helper. Done means one place maintains the bounding box and the existing TWKB tests still pass.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
This issue assumes that #720 will be merged. It is about widenBBox, which that PR adds and which isn't on master yet. If #720 is closed without merging, this issue can be closed too. Nothing here is externally detectable.
writeGeometryCollection writes each child with its own twkbWriter (from copytwkbWriter), and each writer tracks its own bounding box in bboxValid, bboxMin and bboxMax. #720 adds widenBBox, which merges a child writer's box into the parent's after the child is written. That leaves two places that maintain the box: writePointArray for each coordinate, and widenBBox for each child.
Two ways to bring that back to one place:
- Have
copytwkbWritergive the sub-writer the parent's bounding box state, for example as a pointer to a small struct holding the three fields.writePointArraythen extends the collection's box directly andwidenBBoxcan be deleted. Sub-writers don't write a bounding box, and they use the parent's precision, so the values are already on the same integer scale. - Keep a box per writer and move the min/max update into one helper, such as
extendBBox(d, lo, hi), whichwritePointArraycalls withlo == hiandwidenBBoxcalls with the child's range.
Option 1 removes more code and handles nested collections without a merging step.
- 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 ·
-
bug
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 45/100
peterstace/simplefeatures#721 ·
-
jtsport
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
peterstace/simplefeatures#700 ·
Tất cả issue của peterstace/simplefeatures
Issue tương tự
-
【文档错误】创建镜像空间步骤中的截图标注与文字描述不一致Đ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
-
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
-
area: import bug go good first issue priority: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
fukubie/StockLlama#69 ·
-
Add `rumpty firewall create|rm`Đang mởenhancement help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
cloverworks-hq/rumpty-cli#95 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 10 ngày