Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

考虑使用 topojson 格式来降低数据大小 #71

Open
Clarmy opened this issue Aug 11, 2022 · 2 comments
Open

考虑使用 topojson 格式来降低数据大小 #71

Clarmy opened this issue Aug 11, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Clarmy
Copy link
Member

Clarmy commented Aug 11, 2022

经过比对,同为山西省的矢量数据,用 geojson 存储的文件大小是 360kb ,而用 topojson 存储的文件大小仅为 85kb,在QGIS中检查二者在精确程度上没有任何区别。

但 topojson 是一个小众的格式,对应的 python sdk 功能并不完善,如果使用 topojson 来存储的话,对于格式的各种转换会产生额外的开销,但同时 topojson 有另一个好处是它可以很方便对矢量数据进行精细度调整并不破坏其拓扑关系。

参考资料:

@Clarmy
Copy link
Member Author

Clarmy commented Aug 11, 2022

@ZhaJiMan

@Clarmy Clarmy added the enhancement New feature or request label Aug 11, 2022
@Clarmy Clarmy self-assigned this Aug 16, 2022
@Clarmy Clarmy added this to the v-1.2.* milestone Aug 16, 2022
@ringsaturn
Copy link

https://github.com/ringsaturn/cnmaps-compress

测试多边形文件用有损压缩并处理成 probuf 全国数据约 20MB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants