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

[SEDONA-355] Add RS_BandPixelType #961

Merged
merged 29 commits into from
Aug 12, 2023

Conversation

iGN5117
Copy link
Contributor

@iGN5117 iGN5117 commented Aug 11, 2023

Did you read the Contributor Guide?

Is this PR related to a JIRA ticket?

What changes were proposed in this PR?

  • Add RS_BandPixelType
  • Slight refactoring of RS_BandNoDataValue
  • Fixed a bug in RS_MakeEmptyArray for short datatypes

How was this patch tested?

  • Added new tests

Did this PR include necessary documentation updates?

# Conflicts:
#	docs/api/sql/Raster-operators.md
…dPixelType

# Conflicts:
#	common/src/main/java/org/apache/sedona/common/raster/RasterBandAccessors.java
#	common/src/test/java/org/apache/sedona/common/raster/RasterBandAccessorsTest.java
#	sql/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/raster/RasterBandAccessors.scala
# Conflicts:
#	common/src/main/java/org/apache/sedona/common/raster/RasterBandAccessors.java
#	common/src/test/java/org/apache/sedona/common/raster/RasterBandAccessorsTest.java
#	docs/api/sql/Raster-operators.md
#	sql/common/src/main/scala/org/apache/sedona/sql/UDF/Catalog.scala
#	sql/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/raster/RasterBandAccessors.scala
#	sql/common/src/test/scala/org/apache/sedona/sql/rasteralgebraTest.scala
@@ -157,7 +157,7 @@ private static int getDataTypeCode(String s) {
return 0;
case "f":
return 4;
case "u":
Copy link
Member

Choose a reason for hiding this comment

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

Do you need to update the MakeEmptyRaster doc?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No the doc is correct, there was a bug in the code

@jiayuasu jiayuasu added this to the sedona-1.5.0 milestone Aug 12, 2023
@jiayuasu jiayuasu merged commit 60bd7af into apache:master Aug 12, 2023
39 checks passed
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.

None yet

2 participants