Commit f7460b9e authored by Nicolas Garcia Ospina's avatar Nicolas Garcia Ospina
Browse files

Changed GADM source to geopackage

parent ff75bd64
Pipeline #25800 passed with stage
in 2 minutes and 33 seconds
......@@ -39,7 +39,9 @@ parser.add_argument(
nargs="+",
help="Bounds in order West,South,East,North",
)
parser.add_argument("-in_file", type=str, help="Shapefile with a given geometry to extract a bounding box")
parser.add_argument(
"-in_file", type=str, help="Shapefile with a given geometry to extract a bounding box"
)
parser.add_argument(
"-zoom",
nargs="?",
......
......@@ -73,7 +73,7 @@ parser.add_argument(
args = parser.parse_args()
# Get a country polygon by name from the GADM dataset and do small buffer
world = gpd.read_file("./gadm36_0.shp").to_crs("epsg:4326")
world = gpd.read_file("./gadm36.gpkg").to_crs("epsg:4326")
country = world[world["NAME_0"] == args.country]
logger.info("Setting a buffer on target geometry")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment