Im letting the user draw polygons on the map by manipulating winformsMap1_MapClick. They click on the map to form x number of points, then when they click on the first point (to close the polygon), the polygon should be drawn. The points plotted on the screen is declared as:
InMemoryFeatureLayer markerLayer = new InMemoryFeatureLayer();
markerLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle.PointType = PointType.Bitmap;
markerLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle.Image = new GeoImage("dot.gif");
When i compare the first and last points (on the map they do overlap), it always evaluate to false:
BaseShape currentShape = myFeature.GetShape();
BaseShape firstShape = drawLayer.InternalFeatures[0].GetShape();
if (currentShape.Intersects(firstShape))
Someone know why is that so?