Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add function to convert neo4j native point(s) to WKT format #409

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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
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