Details Ticket 5326


Comment | Reply | Take | Open


Serial Number 5326
Subject g.region vect= shouldn't align to resolution
Area grass6
Queue grass
Requestors hamish_nospam@yahoo.com
Owner none
Status resolved
Last User Contact Sat Nov 25 19:44:31 2006 (2 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Mon Nov 27 07:16:20 2006 (2 yr ago)
Created Sat Nov 25 09:14:53 2006 (2 yr ago)

Transaction History Ticket 5326


Sat, Nov 25 2006 09:14:53    Request created by hbowman  
Subject: g.region vect= shouldn't align to resolution

#spearfish
> g.region rast=elevation.dem res=1000 -a
> g.region -p
projection: 1 (UTM)
zone:       13
datum:      nad27
ellipsoid:  clark66
north:      4928000
south:      4914000
west:       590000
east:       609000
nsres:      1000
ewres:      1000
rows:       14
cols:       19

> g.region vect=roads
> g.region -p
projection: 1 (UTM)
zone:       13
datum:      nad27
ellipsoid:  clark66
north:      4929000
south:      4914000
west:       589000
east:       610000
nsres:      1000
ewres:      1000
rows:       15
cols:       21


> v.info -g roads
north=4928063.39801461
south=4914006.33783702
east=609527.21021496
west=589434.85646865
top=0.000000
bottom=0.000000

> v.in.region roads_box
> d.vect roads_box type=boundary


g.region vect= should ignore resolution setting as it is meaningless for vectors.
(I was trying to use a v.in.region box + v.patch + v.clean to close contour
lines open at the edge of the region [created with r.contour] so I clould
extract closed polygons of e.g. 50-100m elevation)


thanks,
Hamish
Sat, Nov 25 2006 19:44:31    Mail sent by glynn@gclements.plus.com  
Return-Path <glynn@gclements.plus.com>
Delivered-To grass-bugs@lists.intevation.de
From Glynn Clements <glynn@gclements.plus.com>
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
Message-ID <17768.36605.743979.999253@cerise.gclements.plus.com>
Date Sat, 25 Nov 2006 18:44:13 +0000
To Request Tracker <grass-bugs@intevation.de>
Cc grass-dev@grass.itc.it
Subject Re: [GRASS-dev] [bug #5326] (grass) g.region vect= shouldn't align to resolution
In-Reply-To <20061125081453.63F491005A4@lists.intevation.de>
References <20061125081453.63F491005A4@lists.intevation.de>
X-Mailer VM 7.07 under 21.4 (patch 17) "Jumbo Shrimp" XEmacs Lucid
X-Virus-Scanned by amavisd-new at intevation.de
X-Spam-Status No, hits=-5 tagged_above=-999 required=3 tests=[BAYES_00=-5]
X-Spam-Level
Request Tracker wrote:

> this bug's URL: http://intevation.de/rt/webrt?serial_num=5326
> -------------------------------------------------------------------------
> 
> Subject: g.region vect= shouldn't align to resolution
> 
> #spearfish
> > g.region rast=elevation.dem res=1000 -a
> > g.region -p
> projection: 1 (UTM)
> zone:       13
> datum:      nad27
> ellipsoid:  clark66
> north:      4928000
> south:      4914000
> west:       590000
> east:       609000
> nsres:      1000
> ewres:      1000
> rows:       14
> cols:       19
> 
> > g.region vect=roads
> > g.region -p
> projection: 1 (UTM)
> zone:       13
> datum:      nad27
> ellipsoid:  clark66
> north:      4929000
> south:      4914000
> west:       589000
> east:       610000
> nsres:      1000
> ewres:      1000
> rows:       15
> cols:       21
> 
> 
> > v.info -g roads
> north=4928063.39801461
> south=4914006.33783702
> east=609527.21021496
> west=589434.85646865
> top=0.000000
> bottom=0.000000
> 
> > v.in.region roads_box
> > d.vect roads_box type=boundary
> 
> 
> g.region vect= should ignore resolution setting as it is meaningless for vectors.
The vect= case unconditionally calls G_align_window(). It should do
this either only if -a is given, or not at all.

-- 
Glynn Clements <glynn@gclements.plus.com>


Mon, Nov 27 2006 07:14:45    Mail sent by hamish_nospam@yahoo.com  
Return-Path <hamish_nospam@yahoo.com>
Delivered-To grass-bugs@lists.intevation.de
Date Mon, 27 Nov 2006 19:14:30 +1300
From Hamish <hamish_nospam@yahoo.com>
To grass-bugs@intevation.de
Cc grass-dev@grass.itc.it
Subject Re: [GRASS-dev] [bug #5326] (grass) g.region vect= shouldn't align to resolution
Message-Id <20061127191430.362bbc82.hamish_nospam@yahoo.com>
In-Reply-To <17768.36605.743979.999253@cerise.gclements.plus.com>
References <20061125081453.63F491005A4@lists.intevation.de> <17768.36605.743979.999253@cerise.gclements.plus.com>
X-Mailer Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-pc-linux-gnu)
X-Face M<EoB)"*Z~u!,vFhXmw}R_KbdBta*P_=T|rbBL'e1/CQ9;/1g\BU3&!=y8ria$2Uk!HT&BB 8i?|X_+7~1jsy}F~g$2va%3fV`*=L(*cem[@3\yg,G,@rg6/QMJ
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Virus-Scanned by amavisd-new at intevation.de
X-Spam-Status No, hits=-2.3 tagged_above=-999 required=3 tests=[BAYES_00=-5, FORGED_YAHOO_RCVD=2.7]
X-Spam-Level
> this bug's URL: http://intevation.de/rt/webrt?serial_num=5326
> -------------------------------------------------------------------------
> 
> Subject: g.region vect= shouldn't align to resolution

Glynn wrote:
> The vect= case unconditionally calls G_align_window(). It should do
> this either only if -a is given, or not at all.

fixed in 6.2 and 6.3-HEAD.



Hamish


Mon, Nov 27 2006 07:16:20    Status changed to resolved by hbowman  
Comment | Reply | Take | Open

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