I want to know if a user has clicked on a shape I created. The shape is a polygon that has been added to a InMemoryFeatureLayer. So I get the shape. Convert the mouse point to PointShape take the corrdinates then check it with bs.Intersects(FS) and
I get an exception Topology Exception --> side location conflict [ (3921.43070409655, -755.548243954933, NaN) ]
HUH????
Here is a code snipet
// Get Shape
bs = InMem.InternalFeatures[zz].GetShape();
// Convert Mouse Point to world coordinates
Feature FS;
ScreenPointF S = new ScreenPointF((float)pt.X, (float)pt.Y);
PointShape PS = ExtentHelper.ToWorldCoordinate(winformsMap1.CurrentExtent, S, winformsMap1.Width, winformsMap1.Height);
// make it a Feature so I can compare
string Point = "POINT(" + PS.X.ToString() + " " + PS.Y.ToString() + ")";
FS = new Feature(Point);
//Do the compare Exception ???
if (bs.Intersects(FS))