geometric_features.geometric_features.GeometricFeatures¶
-
class
geometric_features.geometric_features.
GeometricFeatures
(cacheLocation=None, remoteBranchOrTag=None)[source]¶ An object for keeping track of where geometric features are cached and downloading missing features as needed.
- Variables
allFeaturesAndTags (dict of dict) – A cache of all the feature names and tags in the
geometric_features
repo used to determine which featues need to be downloaded into the local cacheremoteBranch (str, optional) – The branch or tag from the
geometric_features
repo to download from if files are missing from the local cache
-
__init__
(cacheLocation=None, remoteBranchOrTag=None)[source]¶ The constructor for the GeometricFeatures object
- Parameters
cacheLocation (str, optional) – The location of the local geometric features cache. If not specified, the environment variable
$GEOMETRIC_DATA_DIR
is used if it is set and./geometric_data
is used otherwise.remoteBranchOrTag (str, optional) – The branch or tag from the
geometric_features
repo to download from if files are missing from the local cache, with default to a tag the same as this version ofgeometric_features
Methods
__init__
([cacheLocation, remoteBranchOrTag])The constructor for the GeometricFeatures object
read
(componentName, objectType[, …])Read one or more features from the cached collection of geometric features.
split
(fc[, destinationDir])Split a feature collection into individual files for each feature.