How to select geometry from file shap depend on selected attributes

Topics: Algorithms, CompactFramework, Data Access, General Topics, SharpMap Project, Web Controls, WinForms Controls
Dec 23, 2009 at 2:46 PM
Edited Dec 24, 2009 at 10:47 AM

hello everyone ,

1-i want to know how to select geometry from file shape depend on selected attributes from dbf file

for example i have layer road with to file .shp and .dbf where ,.dbf contain some attributes like (StreetName,description,length)

i selected some streetName like(a,b,c) and i want to select geometry which match this attributes and draw it with different color on my map

2- i want to add point layer and polygon layer ,note i add layer but pologon as line and point not appear in my map

please anyone help me


Dec 23, 2009 at 11:17 PM

Hi ermanRefaat, you can attach a FilterMethod to the FilterDelegate property of the shapefile provider before requesting data. However to style based on feature you want to look at themes 

I am not sure I understand your second question.. To symbolize a point you need to set the Symbol property of the layer's style or the style returned from any applied theme

hth jd

Dec 24, 2009 at 6:57 PM

Thanks so much johndiss  for your reply .