vectordata.GeoVectorData

Base class for cached geospatial vector datasets.

Usage

Source

vectordata.GeoVectorData(cache_dir=None)

Attributes

Name Description
metadata Return dataset metadata.
processed_path Return the processed data path.
raw_path Return the raw data path.

metadata

Return dataset metadata.

metadata: DatasetMetadata


processed_path

Return the processed data path.

processed_path: Path


raw_path

Return the raw data path.

raw_path: Path

Methods

Name Description
__init__() Initialize the dataset.
__repr__() Return a string representation.
cleanup() Remove selected raw and processed cache files.
get_data() Return the processed data, preparing it if necessary.

__init__()

Initialize the dataset.

Usage

Source

__init__(cache_dir=None)
Parameters
cache_dir: str or Path or None = None
Cache root. See freezebase.utils.get_cache_dir().

__repr__()

Return a string representation.

Usage

Source

__repr__()

cleanup()

Remove selected raw and processed cache files.

Usage

Source

cleanup(*, raw=True, processed=False)

get_data()

Return the processed data, preparing it if necessary.

Usage

Source

get_data(*, download=False)