Skip to content

Commit

Permalink
Last fix
Browse files Browse the repository at this point in the history
  • Loading branch information
juliohm committed Jun 28, 2023
1 parent 790b923 commit 8347a0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GeoTables.jl
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ Optionally, specify keyword arguments accepted by
- `*.shp` via Shapefile.jl
- `*.geojson` via GeoJSON.jl
- `*.gpkg` via ArchGDAL.jl
- Other formats via ArchGDAL.jl
"""
function save(fname, geotable; kwargs...)
if endswith(fname, ".shp")
SHP.write(fname, geotable; kwargs...)
elseif endswith(fname, ".geojson")
GJS.write(fname, geotable; kwargs...)
elseif endswith(fname, ".gpkg")
else # fallback to GDAL
agwrite(fname, geotable; kwargs...)
else
error("file format not supported")
Expand Down

0 comments on commit 8347a0e

Please sign in to comment.