RE: [GRASS-dev] RE: [GRASS-user] Error importing DMS into standar dformat usingv. in.ascii

Again, it fails even if W and N are omitted:

echo "66.5|44.25" | v.in.ascii -n output=DMS_test format=standard --o

Error reading ascii file:
66.5|44.25
Building topology ...
0 primitives registered
0 areas built
0 isles built
Attaching islands:
Attaching centroids: Topology was built.
Number of nodes : 0
Number of primitives: 0
Number of points : 0
Number of lines : 0
Number of boundaries: 0
Number of centroids : 0
Number of areas : 0
Number of isles : 0

I tried reversing Long and Lat, but get the same error. Interestingly, the
"Error reading ascii file" line disappears if I run the same command without
the -n flag, but still fails:

echo "66.5|44.25" | v.in.ascii output=DMS_test format=standard --o

Building topology ...
0 primitives registered
0 areas built
0 isles built
Attaching islands:
Attaching centroids: Topology was built.
Number of nodes : 0
Number of primitives: 0
Number of points : 0
Number of lines : 0
Number of boundaries: 0
Number of centroids : 0
Number of areas : 0
Number of isles : 0

-----Original Message-----
From: grass-dev-bounces@grass.itc.it
To: ''grassuser@grass.itc.it' '; ''grass-dev@grass.itc.it' '
Sent: 9/27/2006 11:29 AM
Subject: Re: [GRASS-dev] RE: [GRASS-user] Error importing DMS into
standardformat usingv. in.ascii

Hi,

I think that decimal degree go without W and N since
the minus is used for West/South.

Markus

On Wed, Sep 27, 2006 at 12:18:54PM -0300, Patton, Eric wrote:

Trying again after converting DMS to deciaml degrees:

echo "L 4 1
66.5W|44.25N
66.0W|44.25N
66.0W|44.0N
66.5W|44.0N
1 1 " | v.in.ascii -n output=DMS_test format=standard --o
Error reading ascii file:
66.5W|44.25N
Building topology ...
0 primitives registered
0 areas built
0 isles built
Attaching islands:
Attaching centroids: Topology was built.
Number of nodes : 0
Number of primitives: 0
Number of points : 0
Number of lines : 0
Number of boundaries: 0
Number of centroids : 0
Number of areas : 0
Number of isles : 0

The above command also fails if the coodinates are given to 6 decimals
places, which probably doesn't even matter.

~ Eric.

Patton, Eric wrote:

Again, it fails even if W and N are omitted:

echo "66.5|44.25" | v.in.ascii -n output=DMS_test format=standard --o

format=standard wants

L n
x1 y1 [z1]
..
xN yN [zN]

so " " not "|" and you need to start with the "L n" line.

Hamish