I'm trying a simple code to read a tif file using gdal in databricks but the output is NoneType. Is it dfbs limitation?
from osgeo import gdal
filepath = "dbfs:/FileStore/tables/myraster.tif"
raster = gdal.Open(filepath)
I get the below error:
RuntimeError: dbfs:/FileStore/tables/myraster.tif: No such file or directory
I have tested the file reading it as image and it works fine:
dfRaw = spark.read.format("image").load(filepath)