parameters: (line, distance, length)
return_statement: return result
docstring: Cut a LineString from some distance along some length.
docstring_summary: Cut a LineString from some distance along some length.
docstring_tokens: Cut a LineString from some distance along some length .
function: def cut_piece_line_string(line, distance, length):
      """Cut a LineString from some distance along some length."""
      # http://stackoverflow.com/questions/31072945/shapely-cut-a-piece-from-a-linestring-at-two-cutting-points
      assert isinstance(line, LineString)
      try:
          precut = cut_line_string(line, distance)[1]
          result = cut_line_string(precut, length)[0]
      except IndexError:
          return line
      return result
function_tokens: def cut_piece_line_string ( line , distance , length ) : # http://stackoverflow.com/questions/31072945/shapely-cut-a-piece-from-a-linestring-at-two-cutting-points assert isinstance ( line , LineString ) try : precut = cut_line_string ( line , distance ) [ 1 ] result = cut_line_string ( precut , length ) [ 0 ] except IndexError : return line return result