diff --git a/src/georegions/define.jl b/src/georegions/define.jl index 4289f526..96e266e3 100644 --- a/src/georegions/define.jl +++ b/src/georegions/define.jl @@ -96,7 +96,7 @@ function RectRegion( if isID(ID,path=path,throw=false) error("$(modulelog()) - The GeoRegion $(ID) has already been defined. Please use another identifier.") end - lon,lat = rect2shape(N,S,E,W) + N,S,E,W = bound; lon,lat = rect2shape(N,S,E,W) if isgeoshape(lon,lat,path=path) oID = isgeoshape(lon,lat,path=path,returnID=true) error("$(modulelog()) - The GeoRegion $(oID) in $path has the same shape. Use it instead.") diff --git a/src/georegions/remove.jl b/src/georegions/remove.jl index cb0d5eb4..aa2b4fbe 100644 --- a/src/georegions/remove.jl +++ b/src/georegions/remove.jl @@ -57,7 +57,7 @@ function rmID( @info "$(modulelog()) - Removing the GeoRegion $(geoID) ..." end - rvec,fvec,tvec,dvec = listall(path); isID(geoID,rvec) + rvec,fvec,tvec,dvec = listall(path); isID(geoID,path) ind = findall(geoID.==rvec)[1] fdefined = ["global.txt","giorgi.txt","srex.txt","ar6.txt"]