【文件属性】:
文件名称:node-s2:节点中s2的绑定
文件大小:378KB
文件格式:ZIP
更新时间:2021-05-15 15:01:40
banished C++
节点-s2
将绑定到。
S2是一个在世界范围内进行球形数学运算的库,并支持非常特别的Hilbert曲线相关的索引编制方案。 除了源注释和之外,S2没有任何文档。 值得注意的是,它用于的以及的数据库中。 还演示了该库的杀手级功能之一,即“ coverings”,它们是智能计算的单元格组,可用于索引几何形状。
例子
var s2 = require ( 's2' ) ;
var ll = new s2 . S2LatLng ( 0 , 0 ) ;
ll . isValid ( ) ; // true
var normalized = ll . normalized ( ) ; // true
var pt = ll . toPoint ( ) ;
建造
npm install
npm build . --build-from-source
npm test
Geojson
node-