[GRASS5] scripting help

Kevin Slover kjslover at nhc.noaa.gov
Tue Mar 19 11:10:44 EST 2002


I am hoping that some of the scripters out there might be able to help
me with this:

I have exported a vector file using v.out.ascii.  What I am trying to do
is create a 3d vector file as can be used in GRASS5.1.  How would one go
about parsing the ascii vector file, using the L  5 as the splitter.
For example, I have this:
L  5
 27.041325    -81.988854
 27.04215     -81.988854
 27.04215     -81.988029
 27.041325    -81.988029
 27.041325    -81.988854
L  2
 27.042149    -81.988853
 27.039242    -81.985962

and want to add on the 3rd dimension as height.  Wouldn't be so
difficult, however...I need to create several heights at each point such
that it would look like:

27.041325    -81.988854 2

27.041325    -81.988854 3

etc etc...

I am basically wanting to create "barriers" as defined by the vector file.  Any thoughts??

--
LTJG Kevin Slover, NOAA
GIS Specialist/Meteorologist/Oceanographer
Tropical Prediction Center/Technical Support Branch
11691 SW 17th Street Miami FL 33165
(W) 305-229-4456  (F) 305-553-1264


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-dev/attachments/20020319/693855b2/attachment.html


More information about the grass-dev mailing list