geovizir.features#

Module Contents#

Functions#

load_data(folder, filepath)

ne_countries(→ geopandas.GeoDataFrame)

Return a GeoDataFrame of the world countries.

ne_states(→ geopandas.GeoDataFrame)

Return a GeoDataFrame of the stats of a country.

geovizir.features.load_data(folder, filepath)[source]#
geovizir.features.ne_countries(scale: int = 10) geopandas.GeoDataFrame[source]#

Return a GeoDataFrame of the world countries.

Download the world countries shapefile from Natural Earth and return a GeoDataFrame of the countries.

Parameters:

scale (int, optional) – The scale of the shapefile, by default 10. The allowed values are 10, 50 and 110.

Returns:

A table of the world countries.

Return type:

GeoDataFrame

geovizir.features.ne_states(state: str, scale: int = 10) geopandas.GeoDataFrame[source]#

Return a GeoDataFrame of the stats of a country.

Download the counties shapefile from Natural Earth and return a GeoDataFrame of the countries.

Parameters:
  • state (str) – The country ISO3 code.

  • scale (int, optional) – The scale of the shapefile, by default 10. The allowed values are 10, 50 and 110.

Returns:

A table of the world countries.

Return type:

GeoDataFrame