I have a shapefile where each feature has a parcel number associated with it as a column value in the file. I want to select all features where the parcel number exists in a list of parcelnumbers I have in the program, to eventually add them to a highlight layer. Right now I have to spin through my list and do a GetFeaturesByColumnValue() call, which ends up being slow when there's thousands of parcelnumbers. Is there any way to do this faster?
Query features based on column values
Hi Kevin,
In GetFeaturesByColumnValue we infact GetAllFeatures and loop that.
If you think it’s so slow, I suggest you use InmemoryFeatureLayer instead of ShapeFileFeatureLayer, and so that you can query the features in memory but not from disk, so that it will speed up the query.
Regards,
Don