original_docstring: 
          Return trajectory clipped by the given polygon.
  
          By default, the trajectory's line representation is clipped by the polygon.
          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
          
docstring: Return trajectory clipped by the given polygon.
  By default, the trajectory's line representation is clipped by the polygon.
  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
docstring_tokens: Return trajectory clipped by the given polygon . By default the trajectory ' s line representation is clipped by the polygon . 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
code: def clip(self, polygon, pointbased=False):
          """
          Return trajectory clipped by the given polygon.
  
          By default, the trajectory's line representation is clipped by the polygon.
          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)
code_tokens: def clip ( self , polygon , pointbased = False ) : return clip ( self , polygon , pointbased )
short_docstring: Return trajectory clipped by the given polygon.
short_docstring_tokens: Return trajectory clipped by the given polygon .
comment: """
          Return trajectory clipped by the given polygon.
  
          By default, the trajectory's line representation is clipped by the polygon.
          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
          """