spatial.addNativePointLayerXY
过程 已弃用
使用给定的 x 和 y 坐标属性添加一个新的点图层,返回图层根节点
|
此过程已被以下过程取代:spatial.addPointLayerXY |
签名
spatial.addNativePointLayerXY(name :: STRING, xProperty :: STRING, yProperty :: STRING, indexType = rtree :: STRING, crsName = :: STRING, indexConfig = :: STRING) :: (node :: NODE)
输入参数
| 名称 | 类型 | 默认 | 描述 |
|---|---|---|---|
名称 (name) |
STRING |
null |
层的名称 |
xProperty |
STRING |
null |
x 坐标属性的名称 |
yProperty |
STRING |
null |
y 坐标属性的名称 |
indexType |
STRING |
"rtree" |
要使用的索引算法类型,有效值为: |
crsName |
STRING |
"" |
要使用的坐标参考系统(CRS),有效值为: |
indexConfig |
STRING |
"" |
新创建的索引的配置 |
示例
创建本地点层
CALL spatial.addNativePointLayerXY('geom','x','y')
| 节点 |
|---|
|
创建节点并将其添加到索引中
CREATE (n:Node {id: 42, x: 5.0, y: 4.0}) WITH n CALL spatial.addNode('geom',n) YIELD node RETURN node
在指定距离内查找节点
CALL spatial.withinDistance('geom',point({latitude:4.1,longitude:5.1}),100)
| 距离 | 节点 |
|---|---|
|
|