Function geoClipRectangle

  • Generates a clipping function transforming a stream such that geometries are bounded by a rectangle of coordinates [[x0, y0], [x1, y1]]. Typically used for post-clipping.

    Parameters

    • x0: number

      x0 coordinate.

    • y0: number

      y0 coordinate.

    • x1: number

      x1 coordinate.

    • y1: number

      y1 coordinate.

    Returns ((stream) => GeoStream)