I have 2 shapes - one representing line features of pipes, another of roads. I would like to create a separate shapefile consisting only of the pipes that lie within 20m of the roads. Only the segments of the pipe that lie within the 20m buffer should be returned. This means that some features have to be split.
I have tried adding a buffer of 20m to the road and then running an intersect query with the pipes. The problem of using this approach is that the output presents a full feature (pipe) if a part of it touches the buffer - I need to isolate only the parts of the pipes that are within the 20m buffer.