[GRASS-user] winGrass and v.distance error

Hi,

I’m running winGrass build 6.4 r47775-1 on win XP and using v.distance to identify nearest area for about 7000 points.
Using the v.distance window to enter required parameter values creates and runs the following command…

v.distance from=txtloc@PERMANENT to=RA@PERMANENT to_type=line,area upload=cat column=cat to_column=RA_CODE

The v.distance Command Output window shows feedback of the type “More cats found in to_layer (area=9)” etc, but the command does not upload the cat values; in fact the command does not finish (left it running for 12 hours and nothing happened). v.distance.exe is showing in the windows process list but using no cpu. If you choose the “Abort Cmd” on the v.distance window, the command does not abort either. The only way to stop the process is exit winGrass and start again.

I’ve also tried running the command with the -p option and get the same non completion.

The GIS Layer Manager Command Console window shows the following feedback after running v.distance…

Exception in thread Thread-32:
Traceback (most recent call last):
File “C:\OSGeo4w\apps\Python25\lib\threading.py”, line
486, in __bootstrap_inner
self.run()
File “c:/osgeo4w/usr/src/grass64_release/dist.i686-pc-
mingw32/etc/wxpython/gui_modules/goutput.py”, line 114, in
run
self.resultQ.put((requestId, self.requestCmd.run()))
File “c:/osgeo4w/usr/src/grass64_release/dist.i686-pc-
mingw32/etc/wxpython/gui_modules/gcmd.py”, line 500, in run
self._redirect_stream()
File “c:/osgeo4w/usr/src/grass64_release/dist.i686-pc-
mingw32/etc/wxpython/gui_modules/gcmd.py”, line 529, in
_redirect_stream
self.stderr.write(line)
File “c:/osgeo4w/usr/src/grass64_release/dist.i686-pc-
mingw32/etc/wxpython/gui_modules/goutput.py”, line 930, in
write
self.message += line.split(‘:’, 1)[1].strip() + ‘\n’
IndexError: list index out of range

This feedback is confusing because I have wingrass installed in d:\gis, nothing installed at c:/osgeo4w

Any thoughts on what the issue is please? any workarounds?

Thanks in advance,

Sharon

hi,

v.distance from=txtloc@PERMANENT to=RA@PERMANENT to_type=line,area

upload=cat column=cat to_column=RA_CODE

try to choose another column than "cat",

I've tested with the nc-sample-dataset by
WinGRASS-6.4.SVN-r47802-1-Setup.exe:

g.copy vect=bridges@PERMANENT,mybrigdes
g.copy vect=lakes@PERMANENT,mylakes
v.db.addcol map=mybridges@g7 columns="areacat INT"

v.distance --overwrite --verbose from=mybridges@g7 to=mylakes@g7
to_type=area upload=cat column=areacat

Helmut

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/winGrass-and-v-distance-error-tp6714285p6715880.html
Sent from the Grass - Users mailing list archive at Nabble.com.

Hi,

Apologies for delay in responding.

It doesn’t matter whether I choose the cat column or another attribute column, the same issue occurs.

l haven’t had a chance to test using the NC data however before raising the issue I did test using spearfish and the “fields” and “archsites” maps - this worked, but there are only 25 records.

What I did discover when aborting the v.distance command and closing winGrass is it finally wrote the data to the dbf file. It seems the command had to be aborted and winGrass shutdown, then the data was written out - I hope this gives someone a lead on the issue.

Sharon

On Tue, Aug 23, 2011 at 9:28 PM, Helmut Kudrnovsky <hellik@web.de> wrote:

hi,

v.distance from=txtloc@PERMANENT to=RA@PERMANENT to_type=line,area
upload=cat column=cat to_column=RA_CODE

try to choose another column than “cat”,

I’ve tested with the nc-sample-dataset by
WinGRASS-6.4.SVN-r47802-1-Setup.exe:

g.copy vect=bridges@PERMANENT,mybrigdes
g.copy vect=lakes@PERMANENT,mylakes
v.db.addcol map=mybridges@g7 columns=“areacat INT”

v.distance --overwrite --verbose from=mybridges@g7 to=mylakes@g7
to_type=area upload=cat column=areacat

Helmut


View this message in context: http://osgeo-org.1803224.n2.nabble.com/winGrass-and-v-distance-error-tp6714285p6715880.html
Sent from the Grass - Users mailing list archive at Nabble.com.


grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user