spatial.layerMeta

过程

返回给定图层 name 的图层详情

签名

spatial.layerMeta(name :: STRING) :: (name :: STRING, geometryType :: STRING, crs :: STRING, hasComplexAttributes :: BOOLEAN, extraAttributes :: MAP)

输入参数

名称 类型 默认 描述

名称 (name)

STRING

null

层的名称

输出参数

名称 类型 描述

名称 (name)

STRING

层的名称

geometryType

STRING

jts 几何对象的类名,例如 org.locationtech.jts.geom.Point

crs

STRING

Geotools 格式的坐标参考系(CRS),例如 WGS84(DD)

hasComplexAttributes

布尔值 (BOOLEAN)

如果为 true,则要素属性为复杂类型(由编码器定义),必须通过 spatial.extractAttributes 从节点读取

extraAttributes

MAP

图层的附加属性

示例

获取图层的元数据

CALL spatial.addPointLayer('meta_layer', 'rtree', 'wgs84') YIELD node
表 1. 结果
节点
(:SpatialLayer {
    geomencoder: "SimplePointEncoder",
    index_type: "rtree",
    layer: "meta_layer",
    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\"]]"
})

在相对角添加点

CREATE (n1:Point {latitude: 60.0, longitude: 15.0, name: 'southwest'})
WITH n1
CALL spatial.addNode('meta_layer', n1) YIELD node
RETURN node
CALL spatial.layerMeta('meta_layer') YIELD name, geometryType, crs, hasComplexAttributes, extraAttributes
表 2. 结果
crs extraAttributes geometryType hasComplexAttributes 名称 (name)

GEOGCS["WGS84(DD)", DATUM["WGS84", SPHEROID["WGS84", 6378137.0, 298.257223563]], PRIMEM["Greenwich", 0.0], UNIT["degree", 0.017453292519943295], AXIS["Geodetic longitude", EAST], AXIS["Geodetic latitude", NORTH], AUTHORITY["EPSG","4326"]]a

[源] ---- { "name" : "java.lang.String" } ----

org.locationtech.jts.geom.Pointa

[源] ---- false ----

meta_layer

© . This site is unofficial and not affiliated with Neo4j, Inc.