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

Home » Public Forums » archive » Preserving coordinate transformation
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Preserving coordinate transformation [message #50823] Tue, 17 October 2006 03:47
Sverre Solberg is currently offline  Sverre Solberg
Messages: 18
Registered: February 2005
Junior Member
I plot a map (by the MAP_SET etc routines) inside a widget_draw area
using "/button_events". When the user is clicking on the map the
program use the event (x and y) and the "convert_coord" to compute the
geographical coordinates of the position. However, when making other
plots in between, opening other draw widgets, the built-in coordinate
transformations (device->data) changes and destroys the conversion to
geo. coord. next time this window is clicked on. How could I store the
coordinate transformation? If it was a simple 2D plot, without the map,
I could just save the !x and !y variables and compute the conversion
myself, but that dont work when there's a map projection. I then need
to know how idl converts from device coordinates (returned by widget
draw) to map coordinates (lat/long) and I havent been able to find out
that. Any hints?

Sverre
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Segmentation fault: IDL 6.3 on Debian SID
Next Topic: Re: Preserving coordinate transformation

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

Current Time: Wed Oct 08 17:38:33 PDT 2025

Total time taken to generate the page: 0.00550 seconds