[GRASS-dev] [bug #5326] (grass) g.region vect= shouldn't align to resolution

Glynn Clements glynn at gclements.plus.com
Sat Nov 25 13:44:13 EST 2006


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 at gclements.plus.com>




More information about the grass-dev mailing list