spatial.neo4jGeometryToWkt

Function

Converts a point or point array to WKT

Signature

spatial.neo4jGeometryToWkt(data :: ANY) :: STRING

Input parameters

Name Type Default Description

data

ANY

null

The geometry to convert

Examples

Converting a point array to WKT

RETURN spatial.neo4jGeometryToWkt([point({longitude: 1, latitude: 2}), point({longitude: 3, latitude: 4}) ]) as wkt
Table 1. Result
wkt

LINESTRING (1 2, 3 4)

Converting a point to WKT

RETURN spatial.neo4jGeometryToWkt(point({longitude: 1, latitude: 2})) as wkt
Table 2. Result
wkt

POINT ( 1 2 )