Comments (2)
I agree this is not a great error message. It comes directly from GDAL, and we probably catch it in GDAL.jl using out custom error handler: https://github.com/JuliaGeo/GDAL.jl/blob/v1.5.1/src/error.jl#L49-L63
Doing an isfile(path)
before handing it to GDAL prevents us from using URLs or virtual file systems however, so I don't see that working.
Only thing I can think of is to perhaps avoid the GDAL.jl aftercare
function called in https://github.com/yeesian/ArchGDAL.jl/blob/v0.10.1/src/dataset.jl#L536 (and similar), and instead directly use ccall. That would have to be done in ArchGDAL.jl
from geodataframes.jl.
Do you have the latest version installed? I fixed that in v0.3.2
, some months back.
julia> gdf = GeoDataFrames.read("doesnt_exist.gpkg")
ERROR: File not found.
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:35
[2] read(fn::String; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ GeoDataFrames ~/.julia/packages/GeoDataFrames/pHXgK/src/io.jl:32
[3] read(fn::String)
@ GeoDataFrames ~/.julia/packages/GeoDataFrames/pHXgK/src/io.jl:31
[4] top-level scope
@ REPL[4]:1
from geodataframes.jl.
Related Issues (20)
- read layer HOT 4
- support ArchGDAL v0.7.0 HOT 2
- Geometry column not showing the points explicitly in the README example and MERGING issue. HOT 7
- isempty export HOT 1
- can not write multip-layer to same the same geopackage HOT 2
- Implement Union of all geometries in a GeoDataFrame
- Add missing geometry operations from ArchGDAL
- ArchGDAL now has a vector dataset writer HOT 1
- Support metadata such as crs HOT 1
- Pointer 'hDS' is NULL in 'GDALDatasetH'.
- Store geometry column names in dataframe metadata
- Use AG.identifydriver instead of curated list of supported drivers HOT 2
- Detect empty columns
- Pointer 'hDefn' is NULL in 'OGR_F_Create' HOT 3
- Set empty crs to unknown engineering crs
- Exported 3D Point Geometeries Get Flattened (3D -> 2D) HOT 3
- Feature request: Reading from CSV HOT 4
- Can't write a geojson file HOT 2
- Convenience plotting method for use with GeoMakie?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geodataframes.jl.