gplately.load_feature_collection

gplately.load_feature_collection(source: FeatureCollection | str | Path | Feature | Sequence[str] | Sequence[Path] | Sequence[Feature]) FeatureCollection[source]

Load and return a pygplates.FeatureCollection object.

Parameters:

source (str/os.PathLike, or a sequence (eg, list or tuple) of instances of pygplates.Feature, or a single instance of pygplates.Feature, or an instance of pygplates.FeatureCollection, or a sequence of any combination of those four types) – Can be a filename, a sequence of features, a single feature, a feature collection, or a sequence (eg, a list or tuple) of any combination of those four types.

Returns:

A feature collection containing all features. If loading fails, an empty feature collection is returned instead.

Return type:

pygplates.FeatureCollection