Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
If pointbased=True, the trajectory's point representation is used instead, leading to shorter
segments.
Parameters
----------
polygon : shapely Polygon
Polygon to clip with
pointbased : bool
Clipping method
Returns
-------
list
Clipped trajectory segments
"""
return clip(self, polygon, pointbased)