Re: device coords to map coords? The answer [message #5447] |
Fri, 15 December 1995 00:00 |
newman
Messages: 4 Registered: December 1995
|
Junior Member |
|
|
An anonymous donor shared the secrets of recovering a cursor
location in data space from multiple map_set windows:
Your code looks something like this:
Window, 1
Map_Set, /Grid, /Continents, /Orthographic
Cursor, x, y & Print, x, y ; Select Colorado!
xs = !X.S
ys = !Y.S
mapstuff = !Map
Window, 2
Map_Set, /Grid, /Continents, /Cylindrical, Limit=[20, -160, 80, -40]
Cursor, x, y & Print, x, y ; Select Colorado!
WSet, 1
!X.S = xs
!Y.S = ys
!Map = mapstuff
Cursor, x, y ; Back in Window 1 data space!
--
===============================================
Art Newman -
[not a spokesman for] Hughes Aircraft Company
take your pick: newman@dune.es.hac.com
amnewman@ccgate.hac.com
|
|
|