Grass ASCII Vector File Format????
Susan Huse
sue at ced.berkeley.edu
Wed Apr 20 22:11:01 EDT 1994
> Our printer choked when I tried to print the 560+ pages of the Grass
> manual so I'm without for the moment.
>
Try g.manual.
> Can anyone out there give me the Grass ASCII vector file format... I
> want to get busy and write a translation program from IRDRISI and ATLAS
> ASCII vector formats.
>
> Thanks in advance.
>
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> William W. (Boo) Bushing | "Life is too important to be
> 6500boo at ucsbuxa.bitnet | taken seriously"
> 6500boo at ucsbuxa.ucsb.edu |
> bushing at lifesci.ucsb.edu | - Einstein
> Marine Biotechnology Lab Univ. of Calif. Santa Barbara
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The ascii format actually isn't in the manual, though I have been told
that a file explaining it lives somewhere on moon.
The ascii attributes live in dig_att/ - exactly the same file as the
normal GRASS vector dig_att. Same is true of the dig_cats file.
The actual line work and header information is in the dig_ascii/ file.
I have included bits of a file below, just to give you a sense.
Basically
Lines 1-14 are reserved header information.
Each line, site, area edge is stored as a series of points, the
first node, all middle points, the last node. Sites require two
points specified (first node and last node) which are the exact
same.
Format
A #
n e
n e
n e
A means that it is an area edge, L is a line, P is a point (site)
# is the number of points comprising that line. A site would be P 2.
For areas and lines could be any length, depending on the data.
Then follows # number of lines of northings and eastings which are
the actual points.
Deleted lines are specified by a lower case (a, l, p)
EXAMPLE:
ORGANIZATION: UCB Spatial Info Systems Lab
DIGIT DATE: March 1990
DIGIT NAME: deck
MAP NAME: Output from v.patch
MAP DATE:
MAP SCALE: 100000
OTHER INFO: Delta Service Boundary
ZONE: 10
WEST EDGE: 597800
EAST EDGE: 638800
SOUTH EDGE: 4182000
NORTH EDGE: 4268000
MAP THRESH: 76.2
VERTI:
A 13
4206808.83 639931.9
4207376.05 640283.91
4207435.66 640351.46
4207608.23 640777.77
4208326.68 641913.48
4208440.61 641891.17
4208503.47 641854.5
4208696.05 641680.93
4208946.77 641635.91
4209203.36 641636.51
4209265.65 641566.83
4210082.76 640061.35
4210136.05 640057.88
A 8
4183290.01 631580.7
4183331.24 631620.73
4183418.23 631489.9
4183442.21 631220.28
4183352.5 630992.97
4183465.71 630917.64
4183581.49 630844.81
4183737.05 630712.97
A 3
4237999.48994801 604624.35109977
4237999.49468203 604624.35100115
4237957.06041752 605521.81067
A 2
4237957.06041752 605521.81067
4237957.06041752 605521.81067
A 2
4237999.48994801 604624.35109977
4237957.06041752 605521.81067
P 2
4237957.06041752 605521.81067
4237957.06041752 605521.81067
a 3
4237999.48994801 604624.35109977
4237999.49468203 604624.35100115
4237957.06041752 605521.81067
Hope that helps,
Sue Huse
CEDR - REGIS
University of California, Berkeley
More information about the grass-user
mailing list