Displaying Bounding Box Selection

Topics: SharpMap v2.0
Dec 21, 2011 at 12:28 AM

Is there a way to display the bounding box as you click and drag?

Dec 21, 2011 at 11:44 PM
Edited Dec 21, 2011 at 11:44 PM

Figured it out. By the way this is a great tool.

Apr 11, 2012 at 6:19 AM

Kindly explain the code, How you achieved this functionality? Also, if I want to zoom to a box formed by dragging , how to achieve the same?

Apr 11, 2012 at 3:24 PM
Edited Apr 11, 2012 at 3:31 PM

I just searched on Google. Here is a link to one that helped me. The mouse events used were from the picturebox.

http://social.msdn.microsoft.com/forums/en-US/winforms/thread/3087655c-bd50-4408-9c55-dd179e442675/

http://www.farooqazam.net/draw-a-rectangle-in-c-sharp-using-mouse/

Apr 12, 2012 at 4:25 AM

Thanks for the link. Excuse me, without asking I am telling my scenario of use. I am designing a website which enables the user to see its shape-files on web with change detection enabled. This we have to achieve by using some Open Source program. I started with SharpMap (after considering other products) and suppose that it would help me achieve the results. If you can put throw some light on "change detection" (not on process but over coding perspective), it would be kind.

Regards,

Abhijat

Apr 12, 2012 at 4:22 PM

I am not sure what you mean by "change detection". Do you mean like some sort of versioning?