Labeling Areas-Part 2

Leslie Apollon la at las.com
Tue Feb 3 12:48:12 EST 1998


At 12:12 PM 2/3/98 -0200, you wrote:
>Hello,
>
>	I'm reposting this message because I got some major problems with my
>mail server and my Linux box (and I have lot of messages not delivered
>for a couple of months).
>
>	Sorry if this message is being repeated or quite out of date.
>
>	Adalberto
>
>#####Original Message#####	
>
>	In a couple of days I'll put a large geologic map on top of my digital 
>terrain model. And this is not a matter of a half-dozen pretty good
>rectangles.
>My primary source is Autocad drawings and I may get a huge dxf file with
>as many
>as we can realise polygons with very strange forms...
>
>	How can I edit the vector ascii file in order to convince Grass that my
>former Autocad areas are real & good closed areas that I can attach a
>label?
>
>	Many thanks,

Hello.

you could work directly on a dig_ascii file, with the following command
line (usind the sed command on unix:

sed 's/L  /A  /' Your_dig_ascii_file > the_new_file


this will replace the L<space><space> sequence in your file by a
A<space><space> sequence. Including the spaces will prevent any operations
on the header section of your file. The "A" will indicate that the lines
are part of an area. Note that you need to have an attribute file in the
format:
A coord coord  attribute
in order to create the correct topology.

-------------------
dig_ascii (line) file format:

ORGANIZATION: ESRI    DLG DATA - CHARACTER
DIGIT DATE:   1988      
DIGIT NAME:   grass
MAP NAME:     Output from Patch.vect
MAP DATE:     1988      
MAP SCALE:    24000
OTHER INFO:   S. DAKOTA SPEARFISH MODEL
          
ZONE:         13
WEST EDGE:       589438.87
EAST EDGE:       609544.37
SOUTH EDGE:     4913925.00
NORTH EDGE:     4928110.00
MAP THRESH:          24.00
VERTI:
L  2
   4927940.00    598624.75
   4927951.00    599374.31
L  4
   4927940.00    598624.75
   4927937.00    598399.31
   4927937.00    598376.12
   4927929.00    597850.62
L  2
   4927929.00    597850.62
   4927929.00    597830.62



More information about the grass-user mailing list