comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: map_proj_inverse question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: map_proj_inverse question [message #74383] Wed, 12 January 2011 11:10 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
nata writes:

> Thank you David, I can get the lat/lon values of the mouse position
> doing:
>
> result=CONVERT_COORD(event.X,event.Y,/DEVICE,/TO_DATA)
>
> The problem I have is that my map coordinate system is not set up. So
> when I call CONVERT_COORD I obtain the following message :
> % CONVERT_COORD: Window is closed and unavailable.

Yes, this is one reason I created the MapCoord object
in the Catalyst Library. I was doing a lot of map
projections in widget programs and I needed to be able
to make sure the map data coordinate system was "alive"
when I needed it. Simply calling the Draw method on the
MapCoord object restores the data coordinate system without
actually drawing anything.

WSet, info.mapWindow
info.mapCoord -> Draw

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Extracting cluster indices from a dendrogram
Next Topic: Re: FFT of gaussian

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 18:18:08 PDT 2025

Total time taken to generate the page: 2.39811 seconds