diff --git a/ext/IpaperArchGDALExt/IpaperArchGDALExt.jl b/ext/IpaperArchGDALExt/IpaperArchGDALExt.jl index f19ecb0..343b65b 100644 --- a/ext/IpaperArchGDALExt/IpaperArchGDALExt.jl +++ b/ext/IpaperArchGDALExt/IpaperArchGDALExt.jl @@ -12,7 +12,7 @@ using ArchGDAL.GDAL.GDAL_jll: gdalinfo_path, ogrinfo_path using Ipaper.sf import Ipaper.sf: write_gdal, read_gdal, gdalinfo, getgeotransform, gdal_polygonize, nband, nlayer -import Ipaper.sf: gdal_info, org_info +import Ipaper.sf: gdal_info, org_info, bandnames, set_bandnames # import Ipaper.sf: WGS84 include("gdal_basic.jl") diff --git a/src/sf/sf.jl b/src/sf/sf.jl index 2c61b04..b06848d 100644 --- a/src/sf/sf.jl +++ b/src/sf/sf.jl @@ -11,6 +11,7 @@ export range2bbox export st_bbox, st_dims, st_cellsize export write_gdal, read_gdal, st_write, st_read export gdal_polygonize, rm_shp, nlyr, nband, nlayer +export bandnames, set_bandnames export getgeotransform function nband end @@ -20,6 +21,8 @@ function read_gdal end function write_gdal end function gdal_info end function org_info end +function bandnames end +function set_bandnames end nlyr = nband st_write = write_gdal diff --git a/src/tools.jl b/src/tools.jl index ec69071..96841bf 100644 --- a/src/tools.jl +++ b/src/tools.jl @@ -130,7 +130,6 @@ function zip_continue(x::AbstractVector{<:Integer}) res end - # using Interpolations # function approx(x, y, xout) # interp_linear_extrap = linear_interpolation(x, y, extrapolation_bc=Line())