Question

Compare two polyline datasets and remove lines that don't intersect

  • 27 February 2017
  • 2 replies
  • 24 views

I have two polyline datasets for rivers and streams. Dataset A and Dataset B. Dataset A is very old and the line work is not spatially accurate. Dataset B was created using more accurate methods.

I wish to compare Dataset A with Dataset B, keeping only the lines in Dataset B that intersect or are located near Dataset A. I do not wish to merge the attributes. I have tried nearest neighbor, but that merges the attributes. I have tried line on line overlay and intersector, but that doesn't appear to do what I want either (unless I am doing something wrong). The datasets do share a common attribute field (NAME), but due to the existence of duplicate names of streams within the data, matching by list does not work.

Any help would be appreciated.


2 replies

Userlevel 4

Maybe try using the NeighborFinder with a group-by on NAME and setting a reasonable search radius?

Userlevel 2
Badge +12

I would try using the SpatialFilter transformer. First you could buffer dataset A to find "close by" features in dataset B.

Reply