Re: cursor,xi,yi/device [message #56574 is a reply to message #56527] |
Fri, 26 October 2007 11:51  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Dav writes:
> I want to understand how we can impose *cursor,xi,yi/device* to show
> us lat-long instead of row-col in an projected image ?and how we can
> find the UL(upper left) and LW of an image programmatically.
> Any help will be appreciated.
First of all, that DEVICE keyword in your CURSOR command will prevent
you from *ever* getting the results you want. So I would ditch that
first.
What you want to do is set up a data coordinate system for your image
so that you can ask for the cursor location in this *data* coordinate
system, which will be, naturally, in latitude/longitude.
You will display your image in a window, then you will have to set
up the proper map projection space for that image in the window. Here
is an article in which I describe one way this can be done.
http://www.dfanning.com/map_tips/precipmap.html
Once you have issued the MAP_SET command, any cursor command in
that window will return latitude and longitude.
Cheers,
David
|
|
|