CodePlexProject Hosting for Open Source Software
if a point feature intersect a polygon feature ,i want to select the point feature how should i do?
the point feature is a picturesymbol!
any one helps?
thanks in advance!
I'm not sure I understand your question. Are you asking how to select a feature (which happens to be a point) or how to determine if a point lies on a polygon?
well it just like that two polygon features overlay on each other but it happen to be a point feature which symboliser is a picturesymbol! in this situation how to select the point feature?
What i understood from your question, the solution is very easy:
DotSpatial.Topology.Geometry gm1, gm2;
gm1 = (DotSpatial.Topology.Geometry)(feat1.BasicGeometry);// point
foreach (DotSpatial.Data.IFeature feat2 in layer2.DataSet.Features) // polygon layer
gm2 = (DotSpatial.Topology.Geometry)(feat2.BasicGeometry);
// code for whatever you want to do
Hope it helps
well this is very useful, if you know that the definite point feature intersect with the definite polygon feature, but in my situation I want to use the code map.functionmode=functionmode.select to select the point feature! can you tell
me more about it ?
thanks for your reply!
FunctionMode.Select lets the user select features, which will appear by default in Cyan when selected. This throws a
You can then access yourFeatureLayer.Selection, for example.
thanks for your reply, your suggest is very good!
Are you sure you want to delete this post? You will not be able to recover it later.
Are you sure you want to delete this thread? You will not be able to recover it later.