-
Notifications
You must be signed in to change notification settings - Fork 695
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
[SEDONA-354] Add RS_SkewX and RS_SkewY #960
Conversation
docs/api/sql/Raster-operators.md
Outdated
Spark SQL Exmaple: | ||
|
||
```sql | ||
SELECT RS_SkewX(raster) FROM rasters |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you use MakeEmptyRaster as the input?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure.
@iGN5117 Can you please review? |
@Test | ||
public void testSkewX() throws FactoryException { | ||
GridCoverage2D emptyRaster = RasterConstructors.makeEmptyRaster(10, 2, 4, 6, 4, 1, 1, 2, 7, 0); | ||
assertEquals(2, RasterAccessors.getSkewX(emptyRaster), 0.1d); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add tests testing the convenience constructor of MakeEmptyRaster with 0 skews
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay
docs/api/sql/Raster-operators.md
Outdated
Spark SQL Exmaple: | ||
|
||
```sql | ||
SELECT RS_SkewY(raster) FROM rasters |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use RS_MakeEmptyRaster in SQL examples so that the skew of the created raster in visible as well
Did you read the Contributor Guide?
Is this PR related to a JIRA ticket?
[SEDONA-XXX] my subject
.What changes were proposed in this PR?
How was this patch tested?
Did this PR include necessary documentation updates?
vX.Y.Z
format.