Skip to content

Commit

Permalink
Lintage.
Browse files Browse the repository at this point in the history
  • Loading branch information
SpacemanPaul committed Jul 16, 2024
1 parent e78e67f commit f5741a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion odc/geo/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def __init__(self):
self.__class__._instance = self._load_from_url()

def _load_from_url(self):
# pylint: disable=import-outside-toplevel
import geopandas as gpd

with catch_warnings():
Expand All @@ -72,6 +73,9 @@ def _load_from_url(self):


class Countries(_CachedGeoDataFrame):
"""
Cache-wrapper around the Natural Earth low-res countries geodataset.
"""
_lock = threading.Lock()
_data_url = (
"https://naciscdn.org/naturalearth/110m/cultural/ne_110m_admin_0_countries.zip"
Expand All @@ -86,7 +90,6 @@ def country_geom(iso3: str, crs: MaybeCRS = None) -> Geometry:
"""
Extract geometry for a country from geopandas sample data.
"""
# pylint: disable=import-outside-toplevel
from ..converters import from_geopandas

countries = Countries()
Expand Down

0 comments on commit f5741a2

Please sign in to comment.