当前位置: 首页 > 工具软件 > TopoJSON > 使用案例 >

TopoJSON数据转换

杭曦
2023-12-01
一、安装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
 类似资料: