Question

Matching IDs In Shapefiles

  • 20 August 2013
  • 3 replies
  • 1 view

I have 4 shapefiles with polygons and a unique identifier. I need to find and export the ones who's ID's are in a flat file. There are a few hundred in this file. My workbench reads the 4 shapefiles (~ 80,000 polygons) and the textfile which use ListBuilder to populate a validation list and try to use with ListSearcher and the polygon features to match but get none. I believe it is because the polygons get read before the list of valid IDs.

3 replies

Userlevel 4
Badge +13
Hi,

 

You can influence the reading priority by rearanging the order of the readers in the navigator window. Top reader gets read first.

 

 

An alternative way can be to read shp and file and use the feature merger on the unique id, merged are the ones found in both inputs.

 

 

Hope this helps,

 

Itay

 

Userlevel 4
Hi,

 

 

if I understand your question correctly, the easiest solution might be to use a FeatureMerger:

 

 

Send the polygons to the Requestor port and the validation IDs (from the flat file) to the Supplier port. The features exiting the Merged port should be the ones that you want.

 

 

David
Thanks guys, the FeatureMerger worked great :)

Reply