geometric_features.feature_collection.FeatureCollection.difference

FeatureCollection.difference(maskingFC, show_progress=False)[source]

Use features from a masking collection to mask out (remove part of the geometry from) this collection.

Parameters
  • maskingFC (FeatureCollection`) – Another collection of one or more features to use as masks

  • show_progress (bool) – Show a progress bar

Returns

fc (FeatureCollection) – A new feature collection with a single feature with the geometry masked