TopoJSON数据转换

一、安装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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值