----------
X-Sun-Data-Type: text
X-Sun-Data-Description: text
X-Sun-Data-Name: text
X-Sun-Content-Lines: 73

Alessandro,

It looks like you have a few problems with your input files...

1>  It appears that the first line in your .lab file is the universal polygon.
(I'm guessing that because the x- and y- coordinate values are so different
from the rest of those in the file).  You would want to remove this
from the file before importing your arc files into GRASS.

2>  Same thing applies towards the universal polygon in the .pol and .items
files.

3>  The first line of the .pol file should only contain the number "1",
with subsequent lines exactly as they appear in your file.

4>  What you have listed as the .items file should be referred to as a .txt
file instead - this is the file that GRASS wants as input as the file
containing text attribute information.  Having the area and perimeter info
is unnecessary, however.  You would also want to create the .txt file again,
this time also attaching the $recno attribute from ARC onto the file.

5>  You need a header on top of your .txt file that will aid you in
importing the attribute info into GRASS

I've included below the first few lines of a .lab, .pol, and .txt file:

.lab:
	 1     605511.687500    3515023.500000
         2     604559.062500    3515145.750000
         3     602905.625000    3514534.750000
         4     601038.187500    3513087.000000
         5     600815.000000    3513097.500000

.pol:
	 1
     604734.250000    3515102.000000
     604736.625000    3515107.250000
     604744.625000    3515113.500000
     604774.875000    3515130.750000
     604784.500000    3515143.000000
     604798.437500    3515167.500000

.txt:
  $RECNO NEWCOPY# NEWCOPY-ID INDEX CODE
       2     2     1                                            3
       3     3     2                                           30
       4     4     3                                            2
       5     5     4                                            1
       6     6     5                                            6

(I never filled in the attribute "index" in ARC, using instead the attribute
"code" as my target item in GRASS)

Take a look at the procedures in the attached file - they are the ones I 
use frequently to import data from ARC into GRASS.

If you have any questions, feel free to contact me.

Good luck!

Scott

--------------------------------------------------------
Scott Miller            e-mail: miller@tucson.ars.ag.gov
USDA - ARS SWRC         phone:  (602) 670-6481 ext. 342
2000 E. Allen Rd.       fax:  (602) 670-5550
Tucson, AZ  85729
--------------------------------------------------------





----------
X-Sun-Data-Type: default
X-Sun-Data-Description: default
X-Sun-Data-Name: conversions.txt
X-Sun-Content-Lines: 100



With sites information, simply put the x- and y- coordinate
locations into an ascii text file (ungenerate in ARC will do this),
and (optionally) attach attribute information to it.  The coordinate
data must be arranged as x-, y-, attribute, with one site per line in 
the text file.  Put this file into your site_lists directory, and
run s.in.ascii in GRASS.

Vector features in GRASS can be transformed as follows:

1>  Assure all numbers are dissimilar and ascending
	in tables:
		sel <filename.aat>
		calc <filename-id> = $recno
		list (look them over)
		q stop

2>  Prepare files for GRASS
	at ARC prompt
		idedit <filename> line
		ungenerate line <filename> <filename.lin>

3>  Make a text file containing attribute information
	in INFO
		sel <filename.aat>
		LIST
		CALC $COMMA-SWITCH = -1	 (removes commas)
		ITEMS
		OUTPUT /path/<filename.txt>  (careful now, because all 
output will go to the file and not to screen)
		DISPLAY $RECNO,<FILENAME#>,<FILENAME-ID>,ATTRIBUTE,ATTRIBUTE,
ETC. PRINT
		OUTPUT arcsnp
		q stop

	open a text editor
		open <filename.txt>
		insert a header relating to the items you printed into
the .txt file ($RECNO,FILENAME#,ETC.)	(Can cut & paste)
		save the file & quit

4>  Copy the files you have just created into the "arc" directory in your
GRASS mapset.

5>  Convert these ASCII files to GRASS
	in GRASS
		v.in.arc
		v.support


To convert polygon maps:

1>  Asuure all numbers are dissimilar and ascending
	in tables
		sel <filename.pat>
		calc <filename-id> = <filename#> - 1
		list
		q stop

2>  Prepare files for GRASS
	at ARC prompt
		idedit <filename> poly
		ungenerate line <filename> <filename.pol>
		ungenerate point <filename> filename.lab>

3>  Make your attribut text file
	in INFO
		sel <filename.pat>
		list
		CALC $COMMA-SWITCH = -1
		ITEMS
		OUTPUT /path/filename.txt
		DISPLAY $RECNO,<FILENAME#>,<FILENAME-ID>,ATTRIBUTE,ETC. PRINT
		OUTPUT arcsnp
		q stop

4>  Edit the text file
	open a text editor
		insert a header for the attribute information
		save

5>  copy the files into the "arc" directory in your mapset

6>  Import the files into GRASS
	v.in.arc
	v.support

7>  Change this lines file to a raster image
	v.to.rast
	r.support

Any questions, please feel free to contact me

----------------------------------------------------------------------
Scott Miller				email:miller@tucson.ars.ag.gov
USDA ARS SWRC				phone: (602) 670-6481 ext. 342
2000 E. Allen Rd.
Tucson, AZ  85716
----------------------------------------------------------------------		

