Source code for spatialcells.spatial._getShrunkenBoundary

from ._bufferBoundary import bufferBoundary


[docs] def getShrunkenBoundary(boundaries, offset=200): """ Shrink the boundary of the communities of interest. Wrapper of bufferBoundary with negative offset. :param boundaries: the boundaries of components :param offset: the offset to shrink the boundary :returns: the shrunken boundaries of components. """ return bufferBoundary(boundaries, -offset)