[Thread Prev][Thread Next][Index]
POLYGON Solutions
Solutions for a question about POLYGON
If you want to draw polygons with few points, you could use
yes? plot/vs/line {0,0,1,0,,5,6,7,5}, {0,1,1,0,,5,7,5,5}
or
yes? polygon/line {0,0,1,0,,5,6,7,5}, {0,1,1,0,,5,7,5,5}
as Steve Hankin mentionned to me.
If you have polygons with lots of points
you could use that file format for exemple:
0 0
0 1
1 1
1 0
0 0
999 999
5 5
6 7
7 5
5 5
etc...
you could then use something like that to read it:
DEFINE AXIS/Y=1:nbrs_of_lines_in_my_file:1 myaxis
DEFINE GRID/Y=myaxis mygrid
FILE/VAR="lon,lat"/G=mygrid "mydata.txt"
SET VARIABLE/BAD=999 lon
SET VARIABLE/BAD=999 lat
PLOT/VS/LINE=8 lon,lat
I use 999 to separate each different polygons.
Guillaume
[Thread Prev][Thread Next][Index]
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement