SpatialDatabase:JavaScript 中的空间数据库

时间:2024-08-03 14:14:29
【文件属性】:

文件名称:SpatialDatabase:JavaScript 中的空间数据库

文件大小:34KB

文件格式:ZIP

更新时间:2024-08-03 14:14:29

JavaScript

空间数据库 JavaScript 中的 2D 空间数据库。 有效地找到对象之间的交集。 不是永久存储引擎。 不适用于并发访问。 然而。 示例用法 var db = new SpatialDatabase(); // Put objects in the database db.put({type: "point", x:10, y:20}); db.put({type: "point", x:55, y:65, MyCustomAttribute: "abc"}); // Find all objects that are intersecting a circle var results = db.query({intersecting: {type: "circle", x: 100, y: 100, r: 50}}); 视觉演示: : 对象类型和属性 点 - x, y d


【文件预览】:
SpatialDatabase-master
----src()
--------SpatialDatabase.js(20KB)
----lib()
--------sylvester.js(13KB)
--------rtree.min.js(15KB)
----examples()
--------index.html(7KB)
----README.md(5KB)
----dist()
--------spatialdatabase.min.js(37KB)
--------spatialdatabase.nodepend.min.js(9KB)

网友评论