[GRASSLIST:1689] importing .gen file? (v.in.arc.poly segmenation faults)

Keith J. Forbes listzemail at gmx.net
Wed Nov 5 09:44:52 EST 2003


Hi. I have been sent a couple of polygon maps in .gen format. I believe this 
to be arc/info ungenerate format. 

I tried 2 ways to import this as follows:

I
According to the Neteler and Mitasova book (p.125), I should use v.in.arc but 
to do this I need as input files, .pol, .pnt and .dat which i do not have. I 
think there is a command Ungenerate in Arc/info that can generate these 
files. Am I right?

II
Tried using v.in.arc.poly and it created the following files in the arc 
directory of the mapset I was using:
-rw-r--r--    1 keith    keith     4063634 Nov  5 14:38 temp.ply
-rw-r--r--    1 keith    keith           3 Nov  5 14:38 temp.pnt
-rw-r--r--    1 keith    keith           3 Nov  5 14:38 temp.txt



and produced some errors:

GRASS:~/Desktop > v.in.arc.poly nuts2_02.gen nuts202
start program execution
start extracting ply, pnt and txt information from  nuts2_02.gen
start eliminating double nodes in  nuts2_02.gen
/usr/local/grass5/scripts/v.in.arc.poly: line 47: 13214 Segmentation fault      
$bindir/permut $GISDBASE/$LOCATION_NAME/$MAPSET/arc/temp.ply $tempfile
rm: cannot lstat `/tmp/temp.ply': No such file or directory
/usr/local/grass5/scripts/v.in.arc.poly: line 51: return: can only `return' 
from a function or sourced script
start importing files into GRASS
v.in.arc: Coverage type = polygon
Cannot open ARC/INFO lines file <temp.ply>
/usr/local/grass5/scripts/v.in.arc.poly: line 58: return: can only `return' 
from a function or sourced script
start building topology information
ERROR: Vector [nuts202] not found in current mapset.
/usr/local/grass5/scripts/v.in.arc.poly: line 65: return: can only `return' 
from a function or sourced script
importing finished
GRASS:~/Desktop >
----------------------------------------


System Information
============================================================================
Platform                Unix
----------------------------------------------------------------------------
Operating System        Linux
----------------------------------------------------------------------------
OS Version              2.4.20-9
----------------------------------------------------------------------------
Processor Type (arch)   i686
----------------------------------------------------------------------------
Full OS ID              Linux-2.4.20-9-i686
----------------------------------------------------------------------------
Tcl Version/Patchlevel  8.3.5
----------------------------------------------------------------------------
Name of Executable      /usr/bin/wish
----------------------------------------------------------------------------
Name of current Script  /usr/local/grass5/tcltkgrass/main/tksys.tcl
----------------------------------------------------------------------------


I would appreciate any help.

Thanks,
Keith


-- 
k|J|f




More information about the grass-user mailing list