ThinkGeo.com    |     Documentation    |     Premium Support

FeatureLayer.FeatureSource.GetFeaturesByColumnValue

I really need to be able to obtain features when they match 2 or more criteria. There may not be one unique identifier but with a combination of column values this would be ok. Is there any way to do this currently? Has anyone else ran into this situation?



Nelson, 
  
 We don’t have the built-in method but you can implement it yourself. You can make it an extension method or create a new class by inheriting the FeatureSource, neither of them is very difficult I think. Let me know if you need any help with your concrete scenario.  
  
 Thanks, 
  
 Ben

Hi Nelson,


I bounced a similar problem off David a while ago and he came up with the folowing solution:-


gis.thinkgeo.com/Support/Dis...fault.aspx


I does work and allows you to use multiple columns.


Regards


John


 



Yes, that’s pretty cool. Thanks for reminding John! 
  
 Nelson, if that doesn’t meet your scenario, still let me know with your concrete scenario. 
  
 Thanks, 
  
 Ben

Thanks both of you. Our scenario basically involves needing to look through attribute data to uniquely identify a feature. I am being passed a stand alone dbf file location as a parameter that is read on load. This dbf is created by a seperate peice of software and contains search results. Because of the many variables between our customers, we typically use a map,block,lot scheme to uniquely identify, but as we atomize the fields we would then need to identify three fields.


 


We may just impose on them that they need a concatonated version or some other unique identifier for us as we move on to new features. The FleeStyle stuff is interesting, though. I'll have to take a look.


 


Thanks again.



I think FleeStyle is fine for your case, Nelson. Let us know if you have any problems.