Skip to content

Commit

Permalink
Changing removeGeoRegion to rmID
Browse files Browse the repository at this point in the history
  • Loading branch information
natgeo-wong committed Sep 6, 2024
1 parent e7e1cff commit 580f22c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
7 changes: 5 additions & 2 deletions src/GeoRegions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ export
GeoRegion,
RectRegion, PolyRegion, TiltRegion,

add, rm, overwrite,
isGeoRegion, isID, addGeoRegion, removeGeoRegion,
isGeoRegion, isID,
add, addGeoRegion,
rm, rmID,
overwrite,

templateGeoRegions, readGeoRegions, addGeoRegions, resetGeoRegions,
tableGeoRegions, tableRectRegions, tableTiltRegions, tablePolyRegions,
isinGeoRegion,
Expand Down
8 changes: 4 additions & 4 deletions src/georegions/remove.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ rm(
geo :: GeoRegion;
path :: AbstractString = geodir
) = if isGeoRegion(geo,path=path)
removeGeoRegion(geo.ID,path=path)
rmID(geo.ID,path=path)
end

"""
removeGeoRegion(
rmID(
geoID :: AbstractString;
path :: AbstractString = geodir
)
Creates the GeoRegion associated with the ID `geoID`.
Removes any GeoRegion associated with the ID `geoID`. ID must be exact.
Arguments
=========
Expand All @@ -40,7 +40,7 @@ Keyword Arguments
- `path` : The path where the list of custom GeoRegions will be retrieved from.
Defaults to the `local` package variable `geodir`
"""
function removeGeoRegion(
function rmID(
geoID :: AbstractString;
path :: AbstractString = geodir
)
Expand Down

0 comments on commit 580f22c

Please sign in to comment.