spatial.addNativePointLayerWithConfig

过程

使用给定的配置添加一个新的原生点层,返回该层的根节点

签名

spatial.addNativePointLayerWithConfig(name :: STRING, encoderConfig :: STRING, indexType = rtree :: STRING, crsName =  :: STRING, indexConfig =  :: STRING) :: (node :: NODE)

输入参数

名称 类型 默认 描述

名称 (name)

STRING

null

层的名称

encoderConfig

STRING

null

该层用于对索引节点的几何形状进行编码/解码的编码器配置

indexType

STRING

"rtree"

要使用的索引算法类型,有效值为:rtreegeohashzorderhilbert

crsName

STRING

""

要使用的坐标参考系统(CRS),有效值为:wgs84

indexConfig

STRING

""

新创建的索引的配置

输出参数

名称 类型 描述

节点

NODE

示例

使用配置创建原生点层

CALL spatial.addNativePointLayerWithConfig('geom','pos:mbr','hilbert')
表 1. 结果
节点
(:SpatialLayer {
    geomencoder: "NativePointEncoder",
    geomencoder_config: "pos:mbr",
    index_type: "hilbert",
    layer: "geom",
    layer_type: "SimplePointLayer"
})
© . This site is unofficial and not affiliated with Neo4j, Inc.