Integer values for attributes
还没有人认领这个 Issue。
评估
调研方向
该 issue 未指明文件、测试或入口点;请先跟踪变量到 band 的映射以及当前对 -b <var name> <band no> 选项的处理。检查输出属性的编码方式,并比较提出的两种精度方案。由于该 issue 未选择方案,也未指定预期行为,因此尚未定义完成标准。
由索引模型根据 Issue 内容生成。
描述
Using integers for most output attributes might reduce vector tile file size in a number of ways. First off, an integer in and of itself is stored more efficiently than other, higher precision formats. Secondly, @yhahn indicated in conversation that if attributes are repeated across features within a vt, that value is effectively only stored once.
I see two ways to handle this:
- Always force integers. Downside of this is attributes with actual higher precisions (eg a field that ranges from -1 to 1, as do many pixel indices). Of course, this could be handled by the user scaling these values before encoding, but.
- Build into the variable --> band mapping. Right now, to specifically map a band, we pass an option like so:
-b <var name> <band no>
We could easily make this into:
-b <var name> <band no> <precision>
cc @ian29 @MateoV
- 主要语言
- Python
- 星标
- 91
- 派生
- 16
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
mapbox/make-surface 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 35/100
mapbox/make-surface#92 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 45/100
mapbox/make-surface#91 ·
-
难度 3/5 1-2 天 新手友好度 35/100
mapbox/make-surface#90 ·
-
难度 2/5 1-3 小时 新手友好度 25/100
mapbox/make-surface#89 ·
-
难度 4/5 3-5 天 新手友好度 25/100
mapbox/make-surface#84 · 1 条评论 ·
查看 mapbox/make-surface 的全部 Issue
相似的 Issue
-
python-version
难度 1/5 1 小时以内 新手友好度 88/100
-
bug
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
bug javascript P2-medium python release:v3.1
难度 2/5 1-3 小时 新手友好度 68/100
adrirubio/claude-deck#546 ·
维护者通常 1 天内回复
-
area: desktop area: website priority: P2 type: feature
难度 2/5 1-3 小时 新手友好度 62/100
appandflow/stim#3411 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1 小时以内 新手友好度 88/100
baptistehamon/lsapy#185 ·
维护者通常 1 天内回复