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

HARMONY-1859: Add WKT POINT support in harmony-py. #94

Merged
merged 3 commits into from
Sep 9, 2024
Merged

Conversation

ygliuvt
Copy link
Member

@ygliuvt ygliuvt commented Sep 6, 2024

Jira Issue ID

HARMONY-1859

Description

Add WKT POINT support in harmony-py.

Local Test Steps

make examples
Then run tutorial notebook, modify the spatial parameter for the last test to use POINT or MULTIPOINT, e.g.
spatial=WKT('POINT(-40 10)'),
or
spatial=WKT('MULTIPOINT((-77 38.9),(-40 10))'),
Verify the harmony-py request is submitted as EDR position request in harmony and runs successfully.

PR Acceptance Checklist

  • Acceptance criteria met
  • Tests added/updated (if needed) and passing
  • Documentation updated (if needed)

Copy link
Contributor

@indiejames indiejames left a comment

Choose a reason for hiding this comment

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

Tested locally

@@ -340,6 +340,7 @@
"request = Request(\n",
" collection=collection,\n",
" spatial=WKT('POLYGON((-140 20, -50 20, -50 60, -140 60, -140 20))'),\n",
" # spatial=WKT('POINT(-40 10)'),\n",
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure if commented out code is likely to confuse people - maybe we could link to read-the-docs in a cell instead that shows an example of all of the supported WKT spatial strings?

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated documentation.

@ygliuvt ygliuvt force-pushed the harmony-1859 branch 2 times, most recently from 2c56856 to f4fc350 Compare September 9, 2024 14:31
@ygliuvt ygliuvt merged commit 7f91fcd into main Sep 9, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants