Tri-Valley State Sen. Jerry McNerney has introduced legislation that would allow farmers and winegrape growers throughout the state to compost large amounts of agricultural waste onsite, instead of having to ship it to composting facilities hundreds of miles away.