Where is SharpMap.Geometry.Point?

Topics: SharpMap Project, SharpMap v2.0, WinForms Controls
Aug 13, 2013 at 10:44 PM
Hello all,

I am trying to make a selection box based on SharpMap control. By searching for past discussion, I think I need to do is to create a starting point in MouseDown event and create a rectangle, What I am trying to do for clicking point is:
SharpMap.Geometry.Point P1 = mapBox1.Map.ImageToWorld(p1);
but I found the SharpMap.Geometry.Point is disappeared, I tried
GeoAPI.Geometry.Coordinate P1 = mapBox1.Map.ImageToWorld(p1);
NetTopologySuite.Geometries.Point P1 = mapBox1.Map.ImageToWorld(p1);
for the first one, it cannot implement P1 < P2 which I need to work on in later comparsion, and the second one does not work actually... Any guidance! Thanks in advance!
Aug 13, 2013 at 10:52 PM
Hi, just get the solution and it should work for me
            GeoAPI.Geometries.Coordinate P1 = mapBox1.Map.ImageToWorld(p1);
            GeoAPI.Geometries.Coordinate P2 = mapBox1.Map.ImageToWorld(p2);
            NetTopologySuite.Geometries.Point mp1 = new NetTopologySuite.Geometries.Point(P1);
            NetTopologySuite.Geometries.Point mp2 = new NetTopologySuite.Geometries.Point(P2);