spatial.layerMeta
过程
返回给定图层 name 的图层详情
签名
spatial.layerMeta(name :: STRING) :: (name :: STRING, geometryType :: STRING, crs :: STRING, hasComplexAttributes :: BOOLEAN, extraAttributes :: MAP)
输出参数
| 名称 | 类型 | 描述 |
|---|---|---|
名称 (name) |
STRING |
层的名称 |
geometryType |
STRING |
jts 几何对象的类名,例如 org.locationtech.jts.geom.Point |
crs |
STRING |
Geotools 格式的坐标参考系(CRS),例如 WGS84(DD) |
hasComplexAttributes |
布尔值 (BOOLEAN) |
如果为 true,则要素属性为复杂类型(由编码器定义),必须通过 |
extraAttributes |
MAP |
图层的附加属性 |
示例
获取图层的元数据
CALL spatial.addPointLayer('meta_layer', 'rtree', 'wgs84') YIELD node
| 节点 |
|---|
|
在相对角添加点
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
| 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 |