| Filename | linedraw.pl |
| Author | Marvin Simkin |
| Program Created | 2002-10-21 |
| Last Updated | Jan 28 13:05 |
| Purpose | turn GMT "pscoast" maps into 3D VRML images |
| syntax | pscoast -Rw/e/s/n -W -M | linedraw.pl [Zdefault] [| drawchop.pl -Rw/e/s/n] |
| pscoast...-M | your favorite pscoast command(s) and option(s), output with -M |
| Zdefault |
The Z plane (height) at which you want these lines plotted. For the normal case where you are using pscoast to plot Earth coastlines, use Earth radius in your units of measure, typically ~6368 km. If some other data you want to plot on the same map uses the anthropocentric value of "depth" from the "surface" then take the default of 0 to plot coastlines at the "surface". |
| drawchop.pl | should almost always be used to postprocess linedraw.pl output |
| -Rw/e/s/n |
give the same REGION to drawchop.pl that you gave to pscoast Use this to discard lines that cross outside your REGION. |
This is mainly intended to read GMT coastline data files and draw coastlines,
but it could be used to draw any kind of lines from a similar input format.
This will read data in pscoast ASCII format and output line instructions
that drawiv.pl can turn into a VRML 1.0 world
or drawwrl.pl can turn into a VRML 2.0 world.
pscoast dumps lines that might not really be in the requested region.
Also there may be lines crossing your region boundaries. pscoast does not
cut them at the edge of your boundary and neither does this program.
That's what drawchop.pl is for.
An input line beginning with '>'
signifies the end of a line and start of another line.
Otherwise, points are connected.
Input format examples:
# Data from the intermediate resolution GMT shoreline, borders, and rivers database
> Shore Bin # 1514, Level 1
12.171{tab}-15
12.1704{tab}-15.0201
12.1387{tab}-15.0575
12.155{tab}-15.0738
12.1387{tab}-15.07
12.117{tab}-15.1167
12.115{tab}-15.1363
12.1463{tab}-15.1308
|
|
|