Details Ticket 3188


Comment | Reply | Take | Resolve


Serial Number 3188
Subject v.net.iso: some roads cost, others distance: sorry
Area grass6
Queue grass
Requestors jidanni@jidanni.org
Owner none
Status open
Last User Contact Wed Apr 27 08:55:43 2005 (3 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Wed Aug 31 20:51:11 2005 (3 yr ago)
Created Wed Apr 27 00:57:51 2005 (3 yr ago)

Transaction History Ticket 3188


Wed, Apr 27 2005 00:57:51    Request created by jidanni@jidanni.org  
Return-Path <jidanni@jidanni.org>
Delivered-To grass-bugs@lists.intevation.de
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
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.


Wed, Apr 27 2005 08:55:43    Mail sent by blazek@itc.it  
Return-Path <blazek@itc.it>
Delivered-To grass-bugs@lists.intevation.de
Message-ID <426F376B.1030807@itc.it>
Date Wed, 27 Apr 2005 08:55:39 +0200
From Radim Blazek <blazek@itc.it>
User-Agent Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113
X-Accept-Language en-us, en
MIME-Version 1.0
To Request Tracker <grass-bugs@intevation.de>
Cc grass5@grass.itc.it
Subject Re: [GRASS5] [bug #3188] (grass) v.net.iso: some roads cost, others distance: sorry
References <20050426225751.838AE101EE9@lists.intevation.de>
In-Reply-To <20050426225751.838AE101EE9@lists.intevation.de>
Content-Type text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding 7bit
X-OriginalArrivalTime 27 Apr 2005 06:55:39.0360 (UTC) FILETIME=[1F11D600:01C54AF6]
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
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


Thu, May 5 2005 00:14:16    Mail sent by jidanni@jidanni.org  
Return-Path <jidanni@jidanni.org>
Delivered-To grass-bugs@lists.intevation.de
To Radim Blazek via RT <grass-bugs@intevation.de>
Subject Re: [bug #3188] (grass) v.net.iso: some roads cost, others
References <20050427065544.07FF11006B0@lists.intevation.de>
From Dan Jacobson <jidanni@jidanni.org>
Date Wed, 04 May 2005 12:22:22 +0800
Message-ID <87k6mfk4ch.fsf@jidanni.org>
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Spam-Status No, hits=-4.2 tagged_above=-999.0 required=3.0 tests=BAYES_00, DATE_IN_PAST_12_24
X-Spam-Level
H> Just for others, so that they don't get wrong impression.

Mention it on the man page, and then nobody will get the wrong impression.

H> If you need to use costs you can calculate them in the database (use
H> postgres). In this special case something like:

postgres? why not use a dbf example so we don't have to delay the
project to learn postgres.


Sat, Aug 20 2005 12:51:16    Area changed to grass6.1 by msieczka  
Wed, Aug 31 2005 20:51:11    Area changed to grass6 by mneteler  
Comment | Reply | Take | Resolve

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request