spatial.addPointLayerWithConfig

过程

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

签名

spatial.addPointLayerWithConfig(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

示例

创建具有 X 和 Y 属性的点图层

CALL spatial.addPointLayerWithConfig('geom','lon:lat')
表 1. 结果
节点
(:SpatialLayer {
    geomencoder: "SimplePointEncoder",
    geomencoder_config: "lon:lat",
    index_type: "rtree",
    layer: "geom",
    layer_type: "SimplePointLayer",
    layercrs: "GEOGCS[\"WGS84(DD)\", \n  DATUM[\"WGS84\", \n    SPHEROID[\"WGS84\", 6378137.0, 298.257223563]], \n  PRIMEM[\"Greenwich\", 0.0], \n  UNIT[\"degree\", 0.017453292519943295], \n  AXIS[\"Geodetic longitude\", EAST], \n  AXIS[\"Geodetic latitude\", NORTH], \n  AUTHORITY[\"EPSG\",\"4326\"]]"
})
© . This site is unofficial and not affiliated with Neo4j, Inc.