Mar 12, 2012 at 2:13 PM
Edited Mar 12, 2012 at 2:17 PM
Hi all, I would ask you about this function.
The first overload is GeometryFeatureProvider.ExecuteIntersectionQuery(BoundingBox box, FeatureDataSet ds)
But this function doesn't help me to find on which I clicked in my map, because it returns all the geometries contained in the BoundingBox
The second overload is GeometryFeatureProvider.ExecuteIntersectionQuery(Geometry geom, FeatureDataSet ds)
Seems like the same result: in the code, each geometry is converted into BoundingBox, so I lose the shape of my geometry
So I tried an alternate way:
But following the code:
1) Geometry.Contains(Geometry geom)
2) SpatialRelations.Contains(Geometry sourceGeometry, Geometry otherGeometry)
3) Geometry.Within(Geometry geom)
4) SpatialRelations.Within(Geometry g1, Geometry g2)
5) Point.Contains(Geometry geom)
So the function Point.Contains(Geometry geom) returns false.
How can I know the ID of the geometry clicked on my map (with a GeometryFeatureProvider)?