earthkit.geo.cartography.country_polygons¶
- earthkit.geo.cartography.country_polygons(country_names, resolution=110000000.0)¶
Get the combined geometry of one or more countries by name from Natural Earth’s shapefiles.
- Parameters:
country_names (
strorlistofstr) – The name(s) of the country or countries to get the geometry for.resolution (
float, optional) – The desired resolution, in metres, of the shapefile to use. Will return the closest available resolution from Natural Earth. Default is 110e6.
- Returns:
A list of lists of coordinates, where each sublist represents a polygon in the combined geometry of the specified countries.
- Return type:
list