Skip to content

Commit

Permalink
Remove conditions on GMTdevdate
Browse files Browse the repository at this point in the history
  • Loading branch information
joa-quim committed Feb 12, 2024
1 parent 7395427 commit 24a6549
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gmt_main.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,7 @@ function ogr2GMTdataset(in::Ptr{OGR_FEATURES}, drop_islands=false)::Union{GMTdat

n = 1
attrib = DictSvS(); # For the case there are no attribs at all.
have_Feature_ID = (GMTdevdate > Date("2023-12-10")) # Feature_ID is available only in >= GMT6.5.0
have_Feature_ID = (GMTver >= v"6.5.0") # Feature_ID is available only in >= GMT6.5.0
for k = 1:n_max
OGR_F = unsafe_load(in, k)
if (k == 1)
Expand Down
2 changes: 1 addition & 1 deletion src/grdpaste.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ To see the full documentation type: ``@? grdpaste``
"""
function grdpaste(G1::GItype, G2::GItype; kwargs...)

(GMTver < v"6.5.0" || GMTdevdate < Date("2023-04-12")) && (@warn("This module doesn't work for the installed GMT version. Run 'upGMT(true)' to update it."); return nothing)
(GMTver < v"6.5.0") && (@warn("This module doesn't work for the installed GMT version. Run 'upGMT(true)' to update it."); return nothing)
(G1.layout != "" && G1.layout[2] == 'R') && error("Pasting row oriented grids (such those produced by GDAL) is not implemented.")
d = init_module(false, kwargs...)[1] # Also checks if the user wants ONLY the HELP mode
cmd, = parse_common_opts(d, "", [:G :V_params :f])
Expand Down

0 comments on commit 24a6549

Please sign in to comment.