TopoJSON数据转换[亲测有效]

TopoJSON数据转换[亲测有效]一、安装Topojson-servernpminstall-gtopojson二、GeoJSON转换为TopoJSONgeo2topoinput.geojson>output.topojson参考:TopoJSONServer:https://github.com/topojson/topojson-server/blob/master/README.md#geo2topoC…

大家好,欢迎来到IT知识分享网。

一、安装Topojson-server

npm install -g topojson

二、GeoJSON转换为TopoJSON

之前:topojson -o output.json input.json

之后,topojson改为geo2topo,按以下方法转换:

geo2topo input.geojson > output.topojson

三、geo2topo的使用参数:

帮助:geo2topo -h  / –help

版本:geo2topo -V / –version

输入新行分割的JSON,一行一个要素:geo2topo -n/–newline-delimited

指定输出文件名,默认输出至“-“,表示到stdout:geo2topo -o/–out file

指定预量化参数(pre-quantization parameter),0表示禁用量化:geo2top -q/–quantization count

参考:
  1. TopoJSON
  2. topojson Command Line Reference
  3. geo2topo command-Line Reference
  4. TopoJSON Server TopoJSON Server
  5. Convert GeoJSON to TopoJSON Convert GeoJSON to TopoJSON
  6. How to run TopoJSON?
  7. Topojson client Topojson client
  8. Creating TopoJSON Files
  9. shapefile to Topojson conversion
  10. topojson wiki
  11. Converting shapefiles to TopoJSON
  12. Batch conversion of Shapefiles to Topojson

免责声明:本站所有文章内容,图片,视频等均是来源于用户投稿和互联网及文摘转载整编而成,不代表本站观点,不承担相关法律责任。其著作权各归其原作者或其出版社所有。如发现本站有涉嫌抄袭侵权/违法违规的内容,侵犯到您的权益,请在线联系站长,一经查实,本站将立刻删除。 本文来自网络,若有侵权,请联系删除,如若转载,请注明出处:https://yundeesoft.com/25021.html

(0)

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

关注微信