Opened 15 years ago

Last modified 6 years ago

#836 reopened enhancement

quiet processing in v.net.path

Reported by: 09091968 Owned by: grass-dev@…
Priority: normal Milestone: 7.6.2
Component: Vector Version: 6.4.2
Keywords: v.net.path Cc:
CPU: All Platform: All

Description

Hello,

I am new to grass, but with the book and the web I am about to succeed in calculating millions of paths using v.net.path, great stuff!!!

In my datasets a lot of "not reachable" messages pop up, slowing the processing by a factor 5 to 10 (about 20 % of the from or to are within pedestrian areas, with no car access or vice versa). Preselecting the from/to is not easy to administer (5 different modes, a lot of scenario stuff...)

The quiet option does not prohibits this message. Is it possible to modify this ?

Thanks,

Luc

Change History (11)

comment:1 by hamish, 15 years ago

It uses G_warning(), which can not be surpressed at run-time.

if you run GRASS with a MSys terminal you could redirect the error messages to a file or to the dustbin with something like:

 v.net.path ... options ... 2> v.net.path.err

or from the dos prompt with something like

 v.net.path ... > nul:

In general throwing away all warning and error messages can be quite counter productive as you might miss the real ones.

I don't think there will be a way to shut them off from the GUI right now.

Q: are those messages (from v.net.path/path.c) informational (and so should use G_message()) or actually quite important to know (so stay with G_warning()) ?

I don't know enough about the module to answer that.

Hamish

comment:2 by neteler, 12 years ago

Resolution: fixed
Status: newclosed

The v.net modules have been massively improved, please try 6.4.svn (upcoming 6.4.3) or later. Closing, feel free to reopen if the problem persists.

in reply to:  2 comment:3 by mmetz, 12 years ago

CPU: UnspecifiedAll
Milestone: 6.4.07.0.0
Platform: MSWindows XPAll
Resolution: fixed
Status: closedreopened
Version: 6.4.0 RCs6.4.2

Replying to neteler:

The v.net modules have been massively improved, please try 6.4.svn (upcoming 6.4.3) or later. Closing, feel free to reopen if the problem persists.

The problem, if you will so, persists. The ticket was opened 3 years ago, since then bugs in the GRASS routing library have been fixed and at the moment there are no known bugs in this library.

But the description of the ticket lets suggest that the unreachable warnings were correct in the sense that some nodes were indeed unreachable. This is important information for the user since the user wants to find the shortest path between nodes A and B, but there is no path at all between these nodes. Since this is no bug in the module itself, the warning could be converted to an important message, which can be suppressed by setting GRASS_VERBOSE to 0 or -1. OTOH, it could be left as a warning because it could indicate an error in the network preparation.

Markus M

comment:4 by martinl, 9 years ago

Milestone: 7.0.07.0.5

comment:5 by martinl, 8 years ago

Milestone: 7.0.57.3.0

comment:6 by martinl, 8 years ago

Milestone: 7.3.07.4.0

Milestone renamed

comment:7 by neteler, 7 years ago

Milestone: 7.4.07.4.1

Ticket retargeted after milestone closed

comment:8 by neteler, 6 years ago

Milestone: 7.4.17.4.2

comment:9 by martinl, 6 years ago

Milestone: 7.4.27.6.0

All enhancement tickets should be assigned to 7.6 milestone.

comment:10 by martinl, 6 years ago

Milestone: 7.6.07.6.1

Ticket retargeted after milestone closed

comment:11 by martinl, 6 years ago

Milestone: 7.6.17.6.2

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.