Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/utils_types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -541,11 +541,15 @@ function set_dsBB(D, all_bbs::Bool=true)
return D
end

# ---------------------------------------------------------------------------------------------------
function set_dsBB!(D, all_bbs::Bool=true)
_set_dsBB!(wrapDatasets("", D), all_bbs)
end
# ---------------------------------------------------------------------------------------------------
function _set_dsBB!(w::wrapDatasets, all_bbs::Bool)
D = unwrapDatasets(w::wrapDatasets)[2]
# Compute and set the global and individual BoundingBox for a Vector{GMTdataset} + the trivial cases.
# If ALL_BBS is false then assume individual BBs are already knwon.
isempty(D) && return nothing
((D === nothing) || isempty(D)) && return nothing

if (all_bbs) # Compute all BBs
if isa(D, GMTdataset)
Expand Down
Loading