I have loaded OpenStreetMap shape files into SQL Server 2008.
I have implemented an OSMFeatureLayer and OSMFeatureSource which extend MsSql2008FeatureLayer and MsSql2008FeatureSource respectively.
In the OSMFeatureSource I have overridden the GetFeaturesForDrawingCore to intercept the feature request and query it by not only position, but also for values in a specific column.
I see many useful functions for getting features by position. I also see function for getting features by a column value. Where are methods that will let me get by position and value.
For instance give me all Features in this bounding box, where [Type] = "Hospital"
Right now I am using base.GetFeaturesForDrawingCore passing in the column I want returned, and doing a for each loop to find the values that I want. This seems very inefficient, when SQL Server is so good at queries.
What am I missing.
Thanks,
Brian