jiayuasu commented on issue #1054:
URL: https://github.com/apache/sedona/issues/1054#issuecomment-1767382621

   @JimShady 
   
   I don't think anything is wrong here.
   
   1. `SedonaRegistrator.registerAll()` has been deprecated since Sedona 1.4.1. 
Now we recommend `SedonaContext` and `from sedona.spark import *`: 
https://sedona.apache.org/1.5.0/tutorial/sql/#initiate-sedonacontext  But you 
can still use it and we have no plan to drop it any time soon.
   2. `geotiff` data source was implemented in a way that is against our 
design. It has been deprecated in Sedona 1.4.1 and we fully dropped it in 
Sedona 1.5.0. We now have a totally redesigned (and better!) raster ETL tool 
chain.
   
   Please read here: 
https://sedona.apache.org/1.5.0/tutorial/raster/#load-data-from-files
   
   In short, to read raster data files:
   
   ```
   rawDf = sedona.read.format("binaryFile").load(path_to_raster_data)
   rawDf.createOrReplaceTempView("rawdf")
   rawDf.show()
   ```
   
   If the files are geotiff, then `SELECT RS_FromGeoTiff(content) AS rast, 
modificationTime, length, path FROM rawdf`
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to