qw2gr.gsf
Name
qw2gr() - Convert from world coordinate on the drawing display to grid coordinate in the data.
Synopsis
ret = qw2gr( wx, wy )
Options and Return values
- wx, wy
- World coordinate.
- ret
- Grid coordinate in the data.
Examples
(1) Obtain data grid coordinate at 90E, equator.
-
test.gs
'reinit' rc = gsfallow( 'on' ) 'open t' 'd t' say qw2gr( 90, 0 )
-
console
ga-> test 37 37
Script source code
- qw2gr.gsf (necessary)
- qgxinfo.gsf (necessary)