buffer_geoms#
- buffer_geoms(geojson: dict, geom_type: str, class_bufs: Dict[int, Optional[float]] = {}, default_buf: Optional[float] = 1) dict [source]#
Buffer geometries.
Geometries in features without a class_id property will be ignored.
- Parameters
geojson (dict) – A GeoJSON-like mapping of a FeatureCollection.
geom_type (str) – Shapely geometry type to apply the buffering to. Other types of geometries will not be affected.
class_bufs (Dict[int, Optional[float]]) – Optional mapping from class ID to buffer distance (in pixel units) for geom_type geometries.
- Returns
FeatureCollection with buffered geometries.
- Return type