pyinterp.geometry.cartesian.algorithms.buffer

Contents

pyinterp.geometry.cartesian.algorithms.buffer#

pyinterp.geometry.cartesian.algorithms.buffer(geometry: pyinterp.core.geometry.cartesian.Point, distance_strategy: pyinterp.core.geometry.cartesian.algorithms.DistanceSymmetric | pyinterp.core.geometry.cartesian.algorithms.DistanceAsymmetric, join_strategy: pyinterp.core.geometry.cartesian.algorithms.JoinRound | pyinterp.core.geometry.cartesian.algorithms.JoinMiter, end_strategy: pyinterp.core.geometry.cartesian.algorithms.EndRound | pyinterp.core.geometry.cartesian.algorithms.EndFlat, point_strategy: pyinterp.core.geometry.cartesian.algorithms.PointCircle | pyinterp.core.geometry.cartesian.algorithms.PointSquare) pyinterp.core.geometry.cartesian.MultiPolygon#
pyinterp.geometry.cartesian.algorithms.buffer(geometry: pyinterp.core.geometry.cartesian.LineString, distance_strategy: pyinterp.core.geometry.cartesian.algorithms.DistanceSymmetric | pyinterp.core.geometry.cartesian.algorithms.DistanceAsymmetric, join_strategy: pyinterp.core.geometry.cartesian.algorithms.JoinRound | pyinterp.core.geometry.cartesian.algorithms.JoinMiter, end_strategy: pyinterp.core.geometry.cartesian.algorithms.EndRound | pyinterp.core.geometry.cartesian.algorithms.EndFlat, point_strategy: pyinterp.core.geometry.cartesian.algorithms.PointCircle | pyinterp.core.geometry.cartesian.algorithms.PointSquare) pyinterp.core.geometry.cartesian.MultiPolygon
pyinterp.geometry.cartesian.algorithms.buffer(geometry: pyinterp.core.geometry.cartesian.Ring, distance_strategy: pyinterp.core.geometry.cartesian.algorithms.DistanceSymmetric | pyinterp.core.geometry.cartesian.algorithms.DistanceAsymmetric, join_strategy: pyinterp.core.geometry.cartesian.algorithms.JoinRound | pyinterp.core.geometry.cartesian.algorithms.JoinMiter, end_strategy: pyinterp.core.geometry.cartesian.algorithms.EndRound | pyinterp.core.geometry.cartesian.algorithms.EndFlat, point_strategy: pyinterp.core.geometry.cartesian.algorithms.PointCircle | pyinterp.core.geometry.cartesian.algorithms.PointSquare) pyinterp.core.geometry.cartesian.MultiPolygon
pyinterp.geometry.cartesian.algorithms.buffer(geometry: pyinterp.core.geometry.cartesian.Polygon, distance_strategy: pyinterp.core.geometry.cartesian.algorithms.DistanceSymmetric | pyinterp.core.geometry.cartesian.algorithms.DistanceAsymmetric, join_strategy: pyinterp.core.geometry.cartesian.algorithms.JoinRound | pyinterp.core.geometry.cartesian.algorithms.JoinMiter, end_strategy: pyinterp.core.geometry.cartesian.algorithms.EndRound | pyinterp.core.geometry.cartesian.algorithms.EndFlat, point_strategy: pyinterp.core.geometry.cartesian.algorithms.PointCircle | pyinterp.core.geometry.cartesian.algorithms.PointSquare) pyinterp.core.geometry.cartesian.MultiPolygon
pyinterp.geometry.cartesian.algorithms.buffer(geometry: pyinterp.core.geometry.cartesian.MultiPoint, distance_strategy: pyinterp.core.geometry.cartesian.algorithms.DistanceSymmetric | pyinterp.core.geometry.cartesian.algorithms.DistanceAsymmetric, join_strategy: pyinterp.core.geometry.cartesian.algorithms.JoinRound | pyinterp.core.geometry.cartesian.algorithms.JoinMiter, end_strategy: pyinterp.core.geometry.cartesian.algorithms.EndRound | pyinterp.core.geometry.cartesian.algorithms.EndFlat, point_strategy: pyinterp.core.geometry.cartesian.algorithms.PointCircle | pyinterp.core.geometry.cartesian.algorithms.PointSquare) pyinterp.core.geometry.cartesian.MultiPolygon
pyinterp.geometry.cartesian.algorithms.buffer(geometry: pyinterp.core.geometry.cartesian.MultiLineString, distance_strategy: pyinterp.core.geometry.cartesian.algorithms.DistanceSymmetric | pyinterp.core.geometry.cartesian.algorithms.DistanceAsymmetric, join_strategy: pyinterp.core.geometry.cartesian.algorithms.JoinRound | pyinterp.core.geometry.cartesian.algorithms.JoinMiter, end_strategy: pyinterp.core.geometry.cartesian.algorithms.EndRound | pyinterp.core.geometry.cartesian.algorithms.EndFlat, point_strategy: pyinterp.core.geometry.cartesian.algorithms.PointCircle | pyinterp.core.geometry.cartesian.algorithms.PointSquare) pyinterp.core.geometry.cartesian.MultiPolygon
pyinterp.geometry.cartesian.algorithms.buffer(geometry: pyinterp.core.geometry.cartesian.MultiPolygon, distance_strategy: pyinterp.core.geometry.cartesian.algorithms.DistanceSymmetric | pyinterp.core.geometry.cartesian.algorithms.DistanceAsymmetric, join_strategy: pyinterp.core.geometry.cartesian.algorithms.JoinRound | pyinterp.core.geometry.cartesian.algorithms.JoinMiter, end_strategy: pyinterp.core.geometry.cartesian.algorithms.EndRound | pyinterp.core.geometry.cartesian.algorithms.EndFlat, point_strategy: pyinterp.core.geometry.cartesian.algorithms.PointCircle | pyinterp.core.geometry.cartesian.algorithms.PointSquare) pyinterp.core.geometry.cartesian.MultiPolygon

Calculate the buffer of a geometry.

The buffer algorithm creates a polygon representing all points within a specified distance from the input geometry.

Parameters:
  • geometry – Input geometry (Point, LineString, Ring, Polygon, MultiPoint, MultiLineString, or MultiPolygon).

  • distance_strategy – Distance strategy object (DistanceSymmetric or DistanceAsymmetric). Controls the buffer distance.

  • side_strategy – Side strategy object (SideStraight). Controls side generation.

  • join_strategy – Join strategy object (JoinRound or JoinMiter). Controls corner generation.

  • end_strategy – End strategy object (EndRound or EndFlat). Controls linestring end generation.

  • point_strategy – Point strategy object (PointCircle or PointSquare). Controls point buffer shape.

Returns:

The buffered geometry.

Return type:

MultiPolygon