Skip to content

Commit

Permalink
second patch
Browse files Browse the repository at this point in the history
  • Loading branch information
kongdd committed Jul 11, 2024
1 parent 848df14 commit e182ce2
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 306 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ TerraRastersExt = "Rasters"
[compat]
ArchGDAL = "0.10"
DocStringExtensions = "0.9"
Ipaper = "0.1.16, 0.1.17"
Ipaper = "0.1.16, 0.1.17, 0.2"
NCDatasets = "0.13, 0.14"
NetCDFTools = "0.1.10"
NetCDFTools = "0.1.10, 0.2"
Rasters = "0.11, 0.12"
Reexport = "1.2"
Statistics = "1.9, 1.10"
Expand Down
26 changes: 0 additions & 26 deletions src/GDAL/gdal_polygonize.jl
Original file line number Diff line number Diff line change
@@ -1,29 +1,3 @@
# const drivers = AG.listdrivers()
const shortnames = Dict(
(".tif", ".tiff") => "GTiff",
(".nc", ".nc4") => "netCDF",
(".img",) => "HFA",
(".xyz",) => "XYZ",
(".shp",) => "ESRI Shapefile",
(".geojson",) => "GeoJSON",
(".fgb",) => "FlatGeobuf",
(".gdb",) => "OpenFileGDB",
(".gml",) => "GML",
(".gpkg",) => "GPKG"
)

## corresponding functions
function find_shortname(fn::AbstractString)
_, ext = splitext(fn)
for (k, v) in shortnames
if ext in k
return v
end
end
error("Cannot determine GDAL Driver for $fn")
end


# file = "clusterIds_temporal-(perc_50%,1980-2015).tif"
"""
$(TYPEDSIGNATURES)
Expand Down
36 changes: 0 additions & 36 deletions src/GDAL/getgeotransform.jl

This file was deleted.

58 changes: 0 additions & 58 deletions src/Rasters/Raster.jl

This file was deleted.

119 changes: 0 additions & 119 deletions src/Rasters/st.jl

This file was deleted.

61 changes: 0 additions & 61 deletions src/Rasters/write_tiff.jl

This file was deleted.

4 changes: 1 addition & 3 deletions src/Terra.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ include("MFDataset/MFDataset.jl")
include("apply.jl")
include("tools_Ipaper.jl")

export Raster, brick,
rast_apply,
set_names
export rast_apply, set_names

end # module
2 changes: 1 addition & 1 deletion src/st_resample.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function st_resample(z::ZArray; fact=10, missingval=0)
end

function st_resample(zs::Vector{<:ZArray}; fact=10, missingval=0)
res = Vector{Raster}(undef, length(zs))
res = Vector{SpatRaster}(undef, length(zs))
Threads.@threads for i = eachindex(zs)
println("running $i")
z = zs[i]
Expand Down

0 comments on commit e182ce2

Please sign in to comment.