Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
juliohm committed Jul 24, 2023
2 parents 5c9c49f + d2874cb commit a32ee79
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -235,17 +235,28 @@ savedir = mktempdir()
end

@testset "save" begin
fnames = ["points.geojson", "points.gpkg", "points.shp",
"lines.geojson", "lines.gpkg", "lines.shp",
"polygons.geojson", "polygons.gpkg", "polygons.shp",
"land.shp", "path.shp", "zone.shp",
"field.kml", "issue32.shp"]
fnames = [
"points.geojson",
"points.gpkg",
"points.shp",
"lines.geojson",
"lines.gpkg",
"lines.shp",
"polygons.geojson",
"polygons.gpkg",
"polygons.shp",
"land.shp",
"path.shp",
"zone.shp",
"field.kml",
"issue32.shp"
]

# saved and loaded tables are the same
for fname in fnames, fmt in [".shp", ".geojson", ".gpkg"]
# input and output file names
f1 = joinpath(datadir, fname)
f2 = joinpath(savedir, first(splitext(fname))*fmt)
f2 = joinpath(savedir, first(splitext(fname)) * fmt)

# load and save table
# t1 = GeoTables.load(f1)
Expand Down

0 comments on commit a32ee79

Please sign in to comment.