JimShady commented on issue #1531:
URL: https://github.com/apache/sedona/issues/1531#issuecomment-2259877997
I cannot edit this variable.
sedona.conf.set("spark.databricks.unityCatalog.volumes.enabled", "true")
But it seems ok as it's correct anyway.

However I still fail to read a shapefile:
```
filename = "Albania 2-digit postcode areas 2023.shp"
temp_folder = "/Volumes/prod_sandbox/su_jim/volume/tests/temp"
os.makedirs(temp_folder, exist_ok=True)
# This takes the files I want to read and puts them into their own temp
folder so that I can then point the reader at it.
folder_path = "/Volumes/prod_sandbox/su_jim/volume/tests/"
file_list = [os.path.join(folder_path, file) for file in
os.listdir(folder_path)]
filtered_files = [file for file in file_list if Path(filename).stem in
os.path.basename(file)]
for file in filtered_files:
source_path = file
destination_path = os.path.join(temp_folder, os.path.basename(file))
shutil.copy(source_path, destination_path)
ShapefileReader.readToGeometryRDD(sc, "dbfs:" + temp_folder)
```
IllegalArgumentException: Cannot access the UC Volume path from this
location. Path was /Volumes/prod_sandbox/su_jim/volume/tests/temp
File <command-3459905630933814>, line 14
11 destination_path = os.path.join(temp_folder,
os.path.basename(file))
12 shutil.copy(source_path, destination_path)
---> 14 ShapefileReader.readToGeometryRDD(sc, "dbfs:" + temp_folder)
--
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]