Details Ticket 2822


Comment | Reply | Take | Resolve


Serial Number 2822
Subject v.to.points: better document lfield
Area grass6
Queue grass
Requestors jidanni@jidanni.org
Owner none
Status open
Last User Contact Sat Nov 4 18:23:50 2006 (2 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Sat Nov 4 18:23:50 2006 (2 yr ago)
Created Thu Dec 9 00:16:08 2004 (4 yr ago)

Transaction History Ticket 2822


Thu, Dec 9 2004 00:16:08    Request created by jidanni@jidanni.org  
Return-Path <jidanni@jidanni.org>
Delivered-To grass-bugs@lists.intevation.de
To grass-bugs@intevation.de
Subject v.to.points: better document lfield
From Dan Jacobson <jidanni@jidanni.org>
Date Thu, 09 Dec 2004 04:17:54 +0800
Message-ID <87acsozgr1.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
In the v.to.points documentation, mention what
lfield Line field default: 1
is all about.


Thu, Dec 9 2004 18:16:27    Mail sent by neteler@itc.it  
Return-Path <neteler@itc.it>
Delivered-To grass-bugs@lists.intevation.de
Date Thu, 9 Dec 2004 18:16:24 +0100
From Markus Neteler <neteler@itc.it>
To Request Tracker <grass-bugs@intevation.de>
Cc grass5@grass.itc.it
Subject Re: [GRASS5] [bug #2822] (grass) v.to.points: better document lfield
Message-ID <20041209171624.GD3487@thuille.itc.it>
Mail-Followup-To Request Tracker <grass-bugs@intevation.de>, grass5@grass.itc.it
References <20041208231608.E5E2D102C54@lists.intevation.de>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
In-Reply-To <20041208231608.E5E2D102C54@lists.intevation.de>
User-Agent Mutt/1.4.1i
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
On Thu, Dec 09, 2004 at 12:16:08AM +0100, Request Tracker wrote:
> this bug's URL: http://intevation.de/rt/webrt?serial_num=2822
> -------------------------------------------------------------------------
> 
> In the v.to.points documentation, mention what
> lfield Line field default: 1
> is all about.

Was changed a couple of days ago:

 v.to.points [-vit] input=name [type=name[,name,...]] output=name
   [llayer=value] [dmax=value]
...
  llayer   Line layer
           default: 1

So it refers to line layer one.

Markus


Mon, Dec 12 2005 12:31:45    Mail sent by msieczka  
Dan wrote:
>> In the v.to.points documentation, mention what
>> lfield Line field default: 1
>> is all about.

Markus wrote:

>Was changed a couple of days ago:
>
> v.to.points [-vit] input=name [type=name[,name,...]] output=name
>   [llayer=value] [dmax=value]
>...
>  llayer   Line layer
           default: 1

> So it refers to line layer one.

Is the "llayer" an output or input option?

I'm asking because it is mentioned after the "output=string" in help, but as
it refers to lines ("Line layer"), seems it is actually about the input.

Maciek
Mon, Dec 12 2005 12:31:52    Area changed to grass6 by msieczka  
Tue, Sep 26 2006 19:21:23    Mail sent by guest  
I think I've figured this out, after much experimentation.

I created a new vector using v.digit -n map=test_lines in Spearfish. I
digitized three separate lines, making sure that each line was assigned to
layers 1,2 and 3, respectively. I then ran v.to.points on test_lines 3 times,
each time making llayer equal to 1, 2, and 3 respectively.

Here are the results I found by querying each output vector in turn:

1) The layer value given in llayer selects which layer's attributes in the
input lines vector get assigned to layer one of the output points vector. 

2) If there are more than one layers in the input lines vector, all of the
layers NOT selected by llayer get assigned a layer number of "-1" in the
output points vector.

3) All lines from the input vector are converted to points, regardless of
which layer they're on. So llayer doesn't act as a geometry filter. It only
affects which layer's attributes get assigned to layer one of the output vector.
So, when I run: 

v.to.points input=test_lines output=llayer_one_out llayer=1 dmax=300

all of the attributes I created in v.digit for layer one can now be queried on
layer one of the output vector points. If I now do: 

v.to.points input=test_lines output=llayer_two_out llayer=2 dmax=300

Querying the points that came from lines on layer one of the input vector now
give a cat of -1, and points that came from lines on layer two of input vector
now show all of input vector attributes from layer two.

In all cases, layer two of output points vector show unique categories for
each point, as well as the cat of the input line, and the along distance.

Can you verify this before I update the docs?

~ Eric.
Tue, Sep 26 2006 19:30:51    Mail sent by guest  
Correction: Item #2 above should read: 

...all of the layers NOT selected by llayer get assigned a category number of
"-1" in the output points vector.

instead of:

..all of the layers NOT selected by llayer get assigned a layer number of "-1"
in the output points vector.

~ Eric.
Sat, Nov 4 2006 18:23:50    Mail sent by mneteler  
Was this ever added to the docs?

Markus

https://intevation.de/rt/webrt?serial_num=2822
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