[GRASSLIST:8689] Import geodetic points

Ulrich Leopold uleopold at science.uva.nl
Wed Oct 19 05:52:00 EDT 2005


Dear list,

what is the correct geodetic format GRASS can import. I am trying to import
the following text file:

cat     long            lat             loc
1       5:46:01E        49:48:33N       PERLE
2       5:49:10E        49:47:39N       ROODT_REDANGE
3       5:50:32E        49:51:35N       ARSDORF
4       5:50:50E        50:00:33N       SCHIMPACH
5       5:52:28E        49:35:56N       CLEMENCY
6       5:52:53E        49:45:48N       REDANGE_ATTERT
7       5:54:04E        49:30:44N       OBERKORN
8       5:55:36E        50:03:38N       WINCRANGE
------------snip-------------------------------

with the following COMMAND:

> tail +2 georef_man.txt | v.in.ascii fs='\t' out=precip x=2 y=3 cat=1 \
columns='cat int, x double, y double, label varchar(20)'

I get the following ERROR message:

Maximum input row length: 40
Maximum number of columns: 4
Minimum number of columns: 4
ERROR: x column is not of number type

Apparently, the geographical coordinates are in the wrong format and the
column specification is probably also wrong (columns= x double, ...).

Which format do I have to use for degrees, minutes and seconds? And how can I
specify that in the columns option? (x long, y lat ??)

Thanks a lot,
Ulrich




More information about the grass-user mailing list