[gradsusr] How to use draw function

hersala hersala at gmail.com
Wed May 19 07:39:48 EDT 2010


Hi Sushant
I send you a little example that allow to draw a rectangle using world
coordinates, so you can change the size or change slightly the geographic
region selected for your plot and the rectangle will be "anchored" to its
geographic position. This small code shoul by used in a *.gs script.
Best regards.

Lic. Hernán Sala
Instituto Antártico Argentino


*Draw rectangle
'set line 7 1 6'
lon1= 135
lat1= -78
'q w2xy 'lon1' 'lat1
say result
x1 = subwrd(result,3)
y1 = subwrd(result,6)
lon2= 239
lat2= -70
'q w2xy 'lon2' 'lat2
say result
x2 = subwrd(result,3)
y2 = subwrd(result,6)
'draw rec 'x1' 'y1' 'x2' 'y2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100519/91f73a41/attachment-0003.html 


More information about the gradsusr mailing list