Adding external properties to TopoJSON file

僤鯓⒐⒋嵵緔 提交于 2019-12-08 03:02:33

问题


I have TopoJSON file and want to add some external fields in it by id (and preserve old) without any other changes (like simplification or quantization) . So I used command like in the example in TopoJSON wiki. The command was like:

topojson -o world-110m_ext.json -e world-country-names.tsv --id-property +id -p nameENG=name world-110m.json.

But I got file smaller than the source and without any id properties. I tried to preserve id's like so:

topojson -o world-110m_ext.json -p -e world-country-names.tsv --id-property +id -p nameENG=name world-110m.json.

It did not work for me and many other ways too. What am I doing wrong?

For input I am using Mike's files from this gist.

来源:https://stackoverflow.com/questions/17450273/adding-external-properties-to-topojson-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!