-
Notifications
You must be signed in to change notification settings - Fork 653
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-379] Add RS_Base64 #993
Conversation
@@ -470,6 +470,12 @@ class rasteralgebraTest extends TestBaseScala with BeforeAndAfter with GivenWhen | |||
assert(writtenBinary1.length > writtenBinary2.length) | |||
} | |||
|
|||
it("Passed RS_Base64") { |
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.
This is not a correct output of Base64. I believe it should start with "data:PNG". Please double check.
docs/api/sql/Raster-writer.md
Outdated
Output: | ||
|
||
``` | ||
iVBORw0KGgoAAAA... |
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.
Fix here as well.
@@ -101,4 +104,11 @@ public static byte[] asArcGrid(GridCoverage2D raster, int sourceBand) { | |||
public static byte[] asArcGrid(GridCoverage2D raster) { | |||
return asArcGrid(raster, -1); | |||
} | |||
|
|||
public static String asBase64(GridCoverage2D raster) throws IOException { |
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 a test in Sedona-common to test it.
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.
BTW, I am adding tests for the other outputs as well. Don't merge rn.
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.
arc grid test is very slow, I didn't include it. You may merge.
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?