Closed arlowhite closed 1 month ago
Though it's strange, because this has a clear error:
ArchGDAL.read("C:\\foo")
ERROR: GDALError (CE_Failure, code 4): C:\foo: No such file or directory
Thanks for reporting! With adding : I overlooked Windows paths it seems. Would you like to make a PR?
GeoDataFrames version 0.3.10
In Windows, if you call
read
with an absolute path where file does not exist, you get a confusing error. This could confuse and frustrate Windows users.GeoDataFrames.read("C:\\foo")
This is due to the colon in the file path.
https://github.com/evetion/GeoDataFrames.jl/blob/master/src/io.jl#L52
:
infn
causes error to be skipped atoccursin(":", fn)
. ThenAG.nlayer(ds)
results in this confusing error.ds
typeof(ds)
Note: you could check for NULL Dataset with
ds.ptr == C_NULL