-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathqgxinfo.gsf
56 lines (50 loc) · 1.04 KB
/
qgxinfo.gsf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
* id = last
* pagex, pagey
* xmin, xmax
* ymin, ymax
* xaxis, yaxis
* mproj
function qgxinfo( id )
ret = ''
'q gxinfo'
if( id = 'last' )
line = sublin( result, 1 )
ret = subwrd( line, 4 )
endif
if( id = 'pagex' )
line = sublin( result, 2 )
ret = subwrd( line, 4 )
endif
if( id = 'pagey' )
line = sublin( result, 2 )
ret = subwrd( line, 6 )
endif
if( id = 'xmin' )
line = sublin( result, 3 )
ret = subwrd( line, 4 )
endif
if( id = 'xmax' )
line = sublin( result, 3 )
ret = subwrd( line, 6 )
endif
if( id = 'ymin' )
line = sublin( result, 4 )
ret = subwrd( line, 4 )
endif
if( id = 'ymax' )
line = sublin( result, 4 )
ret = subwrd( line, 6 )
endif
if( id = 'xaxis' )
line = sublin( result, 5 )
ret = subwrd( line, 3 )
endif
if( id = 'yaxis' )
line = sublin( result, 5 )
ret = subwrd( line, 6 )
endif
if( id = 'mproj' )
line = sublin( result, 6 )
ret = subwrd( line, 3 )
endif
return ret