spatial.layerMeta
Procedure
Returns the layer details for the given layer name
Signature
spatial.layerMeta(name :: STRING) :: (name :: STRING, geometryType :: STRING, crs :: STRING, hasComplexAttributes :: BOOLEAN, extraAttributes :: MAP)
Output parameters
Name | Type | Description |
---|---|---|
name |
STRING |
The name of the layer |
geometryType |
STRING |
The class name of the jts geometry, e.g. org.locationtech.jts.geom.Point |
crs |
STRING |
The CRS in geotools format, e.g. WGS84(DD) |
hasComplexAttributes |
BOOLEAN |
If true the feature-attributes are complex (defined by the encoder) and must be read form the node via |
extraAttributes |
MAP |
Additional attributes of the Layer |
Examples
Get metadata about a layer
CALL spatial.addPointLayer('meta_layer', 'rtree', 'wgs84') YIELD node
node |
---|
|
Add points at opposite corners
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 |
[source] ---- { "name" : "java.lang.String" } ---- |
org.locationtech.jts.geom.Pointa |
[source] ---- false ---- |
meta_layer |