pyinterp.geodetic.LineString.intersection#

LineString.intersection(*args, **kwargs)#

Overloaded function.

  1. intersection(self: pyinterp.core.geodetic.LineString, rhs: pyinterp.core.geodetic.LineString, wgs: Optional[pyinterp.core.geodetic.Spheroid] = None) -> pyinterp.core.geodetic.LineString

Computes the intersection between this linestring and another linestring.

Parameters:
  • rhs – The linestring to test.

  • wgs – The World Geodetic System to use. Defaults to WGS84.

Returns:

The intersection between this linestring and the other linestring.

  1. intersection(self: pyinterp.core.geodetic.LineString, rhs: pyinterp.core.geodetic.Polygon, wgs: Optional[pyinterp.core.geodetic.Spheroid] = None) -> List[pyinterp.core.geodetic.LineString]

Computes the intersection between this linestring and a polygon.

Parameters:
  • rhs – The polygon to use.

  • wgs – The World Geodetic System to use. Defaults to WGS84.

Returns:

The intersection between this linestring and the polygon.