faculty_extras.geoplot.geojson.slice

faculty_extras.geoplot.geojson.slice(feature_collection, feature_selection, feature_index_property, ignore_missing_features=False)

Extract a slice from a GeoJSON FeatureCollection.

Parameters
feature_collectiondict

A GeoJSON FeatureCollection

feature_selectionarray-like, optional

A set of keys to select a slice from feature_collection (default: use whole feature_collection)

feature_index_propertystr, optional

The property of features in feature_collection to use when extracting a selection (default: ‘id’)

ignore_missing_featuresbool, optional

When True, quitely ignore features in feature_selection missing from feature_collection (default: False)