You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sedona.apache.org by "chitra-psg (via GitHub)" <gi...@apache.org> on 2023/12/07 06:43:59 UTC

[I] RS_AsBase64 returns empty string [sedona]

chitra-psg opened a new issue, #1138:
URL: https://github.com/apache/sedona/issues/1138

   ## Expected behavior
   Expecting below command  to return string 
   SELECT RS_AsBase64(raster) from rasters
   
   ## Actual behavior
   It returns 1 row 1 column and its empty
   
   ## To replicate
   geotiff_df = sedona.read.format("binaryFile").load("data/samplefile.tif")
   geotiff_df.createOrReplaceTempView("binary_raster")
   
   raster_df = sedona.sql("SELECT RS_FromGeoTiff(content) as raster from binary_raster")
   raster_df.createOrReplaceTempView("raster_table")
   
   in SQL,
   SELECT RS_AsBase64(raster) from raster_table
   
   ## Settings
   Sedona version = 1.5.0
   Apache Spark version = 3.5.0
   API type = SQL
   Scala version = 2.12
   Environment = Azure Databricks
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@sedona.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] RS_AsBase64 returns empty string [sedona]

Posted by "jiayuasu (via GitHub)" <gi...@apache.org>.
jiayuasu closed issue #1138: RS_AsBase64 returns empty string
URL: https://github.com/apache/sedona/issues/1138


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@sedona.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] RS_AsBase64 returns empty string [sedona]

Posted by "furqaankhan (via GitHub)" <gi...@apache.org>.
furqaankhan commented on issue #1138:
URL: https://github.com/apache/sedona/issues/1138#issuecomment-1854720420

   Hi @chitra-psg, Thank you for pointing out the issue. Originally we didn't intend to include any floating datatypes to the `RS_AsBase64` function. However, I will add support to floating point datatypes.
   
   I would not recommend that you use `RS_AsBase64` on such a large file. This function should be used only with relatively small files. If you want to visualize it, you may use `RS_AsGeoTiff` and https://sedona.apache.org/1.5.0/tutorial/raster/?h=save+files#save-to-permanent-storage. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] RS_AsBase64 returns empty string [sedona]

Posted by "chitra-psg (via GitHub)" <gi...@apache.org>.
chitra-psg commented on issue #1138:
URL: https://github.com/apache/sedona/issues/1138#issuecomment-1851718351

   > @chitra-psg Would you please share the `samplefile.tif` with us?
   
   @jiayuasu please find the file attached
   [sample.zip](https://github.com/apache/sedona/files/13646660/sample.zip)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] RS_AsBase64 returns empty string [sedona]

Posted by "jiayuasu (via GitHub)" <gi...@apache.org>.
jiayuasu commented on issue #1138:
URL: https://github.com/apache/sedona/issues/1138#issuecomment-1845874928

   @chitra-psg Would you please share the `samplefile.tif` with us?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org