[GRASS5] [bug #3188] (grass) v.net.iso: some roads cost, others distance: sorry

this bug's URL: http://intevation.de/rt/webrt?serial_num=3188
-------------------------------------------------------------------------

v.net.iso afcolumn=cost allows us to use a cost instead of a distance
for segments.

OK, what if on some of my roads I want to use cost, and some I want to
use distance?

Surprise surprise, nope. It's either all cost, all distance, or close
the road with -1.

Forget about DELETE FROM table WHERE cat =
road_I_want_measured_by_distance, v.net.iso will go nuts.

OK, then what are you going to set its value to in the table, -1? 0?
-1 is for closed roads. 0 is for 0 cost roads.

Nope. "The software engineers never considered this possibility."!!!

The solution for now would be: if the row is not found in the table,
then measure distance. Better would be -2: use distance.

--- Headers Follow ---

From jidanni@jidanni.org Wed Apr 27 00:57:51 2005

Return-Path: <jidanni@jidanni.org>
Delivered-To: grass-bugs@lists.intevation.de
Received: from mail.intevation.de (aktaia [212.95.126.10])
  by lists.intevation.de (Postfix) with ESMTP id 602A5101EE8
  for <grass-bugs@lists.intevation.de>; Wed, 27 Apr 2005 00:57:51 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
  by mail.intevation.de (Postfix) with ESMTP id 320BB36CDC
  for <grass-bugs@lists.intevation.de>; Wed, 27 Apr 2005 00:57:51 +0200 (CEST)
Received: from frodo.hserus.net (frodo.hserus.net [204.74.68.40])
  by mail.intevation.de (Postfix) with ESMTP id CE4ED36CDA
  for <grass-bugs@intevation.de>; Wed, 27 Apr 2005 00:57:49 +0200 (CEST)
Received: from tc218-187-77-5.2-4.dynamic.apol.com.tw ([218.187.77.5]:32817 helo=jidanni1)
  by frodo.hserus.net with esmtpsa
  (Cipher TLSv1:AES256-SHA:256) (Exim 4.50 #1)
  id 1DQYzz-0003WV-Sq by authid <jidanni> with plain; Wed, 27 Apr 2005 04:27:48 +0530
To: GRASSLIST@baylor.edu
Cc: grass-bugs@intevation.de
Subject: v.net.iso: some roads cost, others distance: sorry
From: Dan Jacobson <jidanni@jidanni.org>
Date: Wed, 27 Apr 2005 05:00:27 +0800
Message-ID: <873btd6yok.fsf@jidanni.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Status: No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level:

-------------------------------------------- Managed by Request Tracker

Just for others, so that they don't get wrong impression.
If you need to use costs you can calculate them in the database (use postgres). In this special case something like:
v.to.db option=length
echo "update my set cost = length where costs is null" | db.execute.

Radim

Request Tracker wrote:

this bug's URL: http://intevation.de/rt/webrt?serial_num=3188
-------------------------------------------------------------------------

v.net.iso afcolumn=cost allows us to use a cost instead of a distance
for segments.

OK, what if on some of my roads I want to use cost, and some I want to
use distance?

Surprise surprise, nope. It's either all cost, all distance, or close
the road with -1.

Forget about DELETE FROM table WHERE cat =
road_I_want_measured_by_distance, v.net.iso will go nuts.

OK, then what are you going to set its value to in the table, -1? 0?
-1 is for closed roads. 0 is for 0 cost roads.

Nope. "The software engineers never considered this possibility."!!!

The solution for now would be: if the row is not found in the table,
then measure distance. Better would be -2: use distance.

--- Headers Follow ---

From jidanni@jidanni.org Wed Apr 27 00:57:51 2005

Return-Path: <jidanni@jidanni.org>
Delivered-To: grass-bugs@lists.intevation.de
Received: from mail.intevation.de (aktaia [212.95.126.10])
  by lists.intevation.de (Postfix) with ESMTP id 602A5101EE8
  for <grass-bugs@lists.intevation.de>; Wed, 27 Apr 2005 00:57:51 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
  by mail.intevation.de (Postfix) with ESMTP id 320BB36CDC
  for <grass-bugs@lists.intevation.de>; Wed, 27 Apr 2005 00:57:51 +0200 (CEST)
Received: from frodo.hserus.net (frodo.hserus.net [204.74.68.40])
  by mail.intevation.de (Postfix) with ESMTP id CE4ED36CDA
  for <grass-bugs@intevation.de>; Wed, 27 Apr 2005 00:57:49 +0200 (CEST)
Received: from tc218-187-77-5.2-4.dynamic.apol.com.tw ([218.187.77.5]:32817 helo=jidanni1)
  by frodo.hserus.net with esmtpsa (Cipher TLSv1:AES256-SHA:256) (Exim 4.50 #1)
  id 1DQYzz-0003WV-Sq by authid <jidanni> with plain; Wed, 27 Apr 2005 04:27:48 +0530
To: GRASSLIST@baylor.edu
Cc: grass-bugs@intevation.de
Subject: v.net.iso: some roads cost, others distance: sorry
From: Dan Jacobson <jidanni@jidanni.org>
Date: Wed, 27 Apr 2005 05:00:27 +0800
Message-ID: <873btd6yok.fsf@jidanni.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Status: No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level:

-------------------------------------------- Managed by Request Tracker

_______________________________________________
grass5 mailing list
grass5@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass5