Share one bounding box accumulator across TWKB sub-writers
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Go
- Estrellas
- 176
- Forks
- 27
- Merge medio
- 1 d 14 h
- PR fusionados (30 d)
- 4
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de peterstace/simplefeatures
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
peterstace/simplefeatures#726 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
peterstace/simplefeatures#725 ·
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
peterstace/simplefeatures#724 ·
-
bug
Dificultad 3/5 Medio día Aptitud para principiantes 45/100
peterstace/simplefeatures#721 ·
-
jtsport
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
peterstace/simplefeatures#700 ·
Todos los issues de peterstace/simplefeatures
Issues similares
-
【文档错误】创建镜像空间步骤中的截图标注与文字描述不一致Abiertoenhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 62/100
DaoCloud/DaoCloud-docs#7839 ·
Los mantenedores suelen responder en 1 día
-
Support AlienVault OTX API keysAbiertoType: Enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
projectdiscovery/urlfinder#167 ·
Los mantenedores suelen responder en 1 día
-
area: import bug go good first issue priority: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
fukubie/StockLlama#69 ·
-
Add `rumpty firewall create|rm`Abiertoenhancement help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
cloverworks-hq/rumpty-cli#95 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
Los mantenedores suelen responder en 10 días