编程语言/地图:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
Kangkk​(留言 | 贡献)
第13行: 第13行:


== topojson ==
== topojson ==
{{shc|<syntaxhighlight lang="bash">
npm install topojson -g</syntaxhighlight>|$|/home/kangkk}}


{{Shc_out|<syntaxhighlight lang="bash">
{{Shc_out|<syntaxhighlight lang="bash">
Insert comment here
npm install topojson -g
</syntaxhighlight>|<syntaxhighlight lang="bash">
</syntaxhighlight>|<syntaxhighlight lang="bash">
npm WARN deprecated topojson@3.0.2: Use topojson-client, topojson-server or topojson-simplify directly.
npm WARN deprecated topojson@3.0.2: Use topojson-client, topojson-server or topojson-simplify directly.
第28行: 第25行:
+ topojson@3.0.2
+ topojson@3.0.2
added 5 packages from 2 contributors in 2.564s
added 5 packages from 2 contributors in 2.564s
</syntaxhighlight>|$|/home/kangkk}}
验证安装结果
{{Shc_out|<syntaxhighlight lang="bash">
which topo2geo
</syntaxhighlight>|<syntaxhighlight lang="bash">
/usr/local/bin/topo2geo
</syntaxhighlight>|$|/home/kangkk}}
</syntaxhighlight>|$|/home/kangkk}}



2023年5月10日 (三) 03:41的版本

引言

地理空间数据抽象库(GDAL)

/home/kangkk
brew install gdal

验证安装结果

[jian@kang /home/kangkk]$
which ogr2ogr
/usr/local/bin/ogr2ogr

topojson

[jian@kang /home/kangkk]$
npm install topojson -g
npm WARN deprecated topojson@3.0.2: Use topojson-client, topojson-server or topojson-simplify directly.
/usr/local/bin/geo2topo -> /usr/local/lib/node_modules/topojson/node_modules/topojson-server/bin/geo2topo
/usr/local/bin/toposimplify -> /usr/local/lib/node_modules/topojson/node_modules/topojson-simplify/bin/toposimplify
/usr/local/bin/topo2geo -> /usr/local/lib/node_modules/topojson/node_modules/topojson-client/bin/topo2geo
/usr/local/bin/topoquantize -> /usr/local/lib/node_modules/topojson/node_modules/topojson-client/bin/topoquantize
/usr/local/bin/topomerge -> /usr/local/lib/node_modules/topojson/node_modules/topojson-client/bin/topomerge
+ topojson@3.0.2
added 5 packages from 2 contributors in 2.564s

验证安装结果

[jian@kang /home/kangkk]$
which topo2geo
/usr/local/bin/topo2geo

地图数据来源

标题文本
arcgis https://www.arcgis.com/ 示例
Natural Earth https://www.naturalearthdata.com/ 示例
示例 示例 示例

参考