Is there a short code snippet available that uses MapMouseEvent for recording the coordinates of a point which is clicked on a Map. I am facing issues understanding how the class and its functions work. Please help.
Thank You.
Harshad Shrikhande
Researcher R&D
TCS Innovations Infra Lab, Chennai
Tata Consultancy Services
Cell:- 7200605821
Mailto: [email protected]
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________
-----Forwarded by Harshad S/TVM/TCS on 09/28/2011 10:54AM -----
To: Harshad S <[email protected]>
From: Michael Bedward <[email protected]>
Date: 09/27/2011 04:29PM
cc: [email protected]
Subject: Re: [Geotools-gt2-users] Reg Mouse Click eventsOn 27 September 2011 20:23, Harshad S <[email protected]> wrote:
> Hello all,
>
> How do I get the coordinates of a point in the shapefile that I
> display using Geotools. I want to select a point using the mouse and record
> its coordinates for use in my JAVA code. Is there a function for this?
MapMouseEvent is your friend for this:
http://docs.geotools.org/latest/javadocs/org/geotools/swing/event/MapMouseEvent.html
Michael
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1_______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
