Skip to content

Conversation

@Andy2003
Copy link
Collaborator

This PR adds a function spatial.convert.nativeToWkt to convert native points to WKT:

return spatial.convert.nativeToWkt(point({longitude: 1, latitude: 2})) as wkt

returns:

POINT ( 1 2 )

return spatial.convert.nativeToWkt([point({longitude: 1, latitude: 2}), point({longitude: 3, latitude: 4}) ]) as wkt

returns:

LINESTRING (1 2, 3 4)

@Andy2003 Andy2003 requested a review from jexp May 30, 2024 11:12
@Andy2003 Andy2003 force-pushed the feature/add-to-wkt-converter branch from 0324b62 to e7ca4bf Compare May 31, 2024 14:46
Copy link
Contributor

@craigtaverner craigtaverner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice feature, but feels like we need to think of more consistent names.

@Andy2003 Andy2003 requested a review from craigtaverner May 31, 2024 15:47
@Andy2003 Andy2003 force-pushed the master branch 5 times, most recently from 6844765 to bee28a4 Compare June 20, 2024 15:01
@Andy2003 Andy2003 force-pushed the feature/add-to-wkt-converter branch from c1ffa64 to 39488fc Compare February 17, 2025 16:58
@Andy2003 Andy2003 merged commit ccc291d into neo4j-contrib:master Feb 17, 2025
1 check passed
@Andy2003 Andy2003 deleted the feature/add-to-wkt-converter branch February 17, 2025 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants