[GRASS-dev] Re: [GRASS GIS] #1159: v.in.ascii points import fails in
WinGRASS-6.4.0-1
GRASS GIS
trac at osgeo.org
Tue Sep 21 16:27:37 EDT 2010
#1159: v.in.ascii points import fails in WinGRASS-6.4.0-1
------------------------+---------------------------------------------------
Reporter: lponti | Owner: grass-dev@…
Type: defect | Status: new
Priority: blocker | Milestone: 6.4.1
Component: Vector | Version: 6.4.0
Keywords: v.in.ascii | Platform: MSWindows 7
Cpu: x86-32 |
------------------------+---------------------------------------------------
Comment(by lponti):
Replying to [comment:14 hamish]:
> patch to replace G_fatal_error() with G_debug() message applied to
6.5svn with r43550. please test..
>
> is this failing in grass7 as well?
>
>
> Hamish
Applied Glynn's patch
http://osgeo-org.1803224.n2.nabble.com/v-in-ascii-fails-with-long-text-
file-in-WinGRASS-6-4-0-1-tp5530779p5553622.html
to changeset 4359 releasebranch_6_4, compiled following instructions at
<http://trac.osgeo.org/grass/wiki/CompileOnWindows>, and it works for the
your simple test (see
<http://trac.osgeo.org/grass/ticket/1159#comment:13>):
{{{
GRASS 6.4> echo "10|10|abcd" | v.in.ascii out=test
Scanning input for column types...
Maximum input row length: 11
Maximum number of columns: 3
Minimum number of columns: 3
Column: 1 type: double
Column: 2 type: double
Column: 3 type: string length: 4
Importando punti ...
100%
Populating table...
Building topology for vector map <test>...
Registering primitives...
1 primitives registered
1 vertices registered
Building areas...
100%
0 areas built
0 isles built
Attaching islands...
Attaching centroids...
100%
Number of nodes: 1
Number of primitives: 1
Number of points: 1
Number of lines: 0
Number of boundaries: 0
Number of centroids: 0
Number of areas: 0
Number of isles: 0
v.in.ascii completo.
}}}
The point can be displayed, and the dbf table seems ok. Also works using a
longer sample text file I previously linked
{{{
GRASS 6.4> v.in.ascii --overwrite input=Bloomday_Olive_11set10_Avg
output=test_US_import fs=tab
ATTENZIONE: Vector map <test_US_import> already exists and will be
overwritten
Scanning input for column types...
Maximum input row length: 31
Maximum number of columns: 3
Minimum number of columns: 3
Column: 1 type: double
Column: 2 type: double
Column: 3 type: double
Importando punti ...
100%
Populating table...
Building topology for vector map <test_US_import>...
Registering primitives...
1157 primitives registered
1157 vertices registered
Building areas...
100%
0 areas built
0 isles built
Attaching islands...
Attaching centroids...
100%
Number of nodes: 1154
Number of primitives: 1157
Number of points: 1157
Number of lines: 0
Number of boundaries: 0
Number of centroids: 0
Number of areas: 0
Number of isles: 0
v.in.ascii completo.
}}}
Related ticket 1158 <http://trac.osgeo.org/grass/ticket/1158> seems to
persist:
{{{
GRASS 6.4> v.in.ascii --overwrite
input=C:/cygwin/home/andy/models_temp/Bloomd
ay_Olive_11set10_Avg output=test_US_import fs=tab
ATTENZIONE: Vector map <test_US_import> already exists and will be
overwritten
ATTENZIONE: Unable to delete file
'C:\cygwin\home\andy/latlong/luigi/vector/test_US_import/hist'
ERRORE: Unable to delete vector map <test_US_import>
}}}
Still not entirely clear to me which variable I am supposed to set in
order to get full English messages.
Thanks and regards,
Luigi
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1159#comment:15>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list