[GRASS-dev] [grass-code I][314] r.in.xyz: estimated region half unit off

Hamish hamish_nospam at yahoo.com
Sun Feb 25 16:36:00 EST 2007


grass-codei at wald.intevation.org wrote:
> code I item #314, was opened at 2007-02-25 17:59
> Status: Open
> Priority: 3
> Submitted By: Maciej Sieczka (msieczka)
> Assigned to: Hamish Bowman (hamish)
> Summary: r.in.xyz: estimated region half unit off 
> Issue type: module bug
> Issue status: None
> GRASS version: CVS HEAD
> GRASS component: raster
> Operating system: all
> Operating system version: 
> GRASS CVS checkout date, if applies (YYMMDD): 070225
> 
> 
> Initial Comment:
> The region estimated by r.in.xyz -s is half column and half row off.
> In Spearfish:
> 
> $ g.region rast=elevation.dted -ag
> n=4927700
> s=4913700
> w=590000
> e=609000
> nsres=100
> ewres=100
> rows=140
> cols=190
> cells=26600
> 
> $ r.out.xyz in=elevation.dted out=points.xyz
> 
> $ r.in.xyz -s in=points.xyz out=points_re.xyz
> Range:     min         max
> x: 590050.000000 608950.000000
> y: 4913750.000000 4927650.000000
> z:    1.000000  255.000000
> 
> While, according to g.region -g output above, it should be:
> 
> x: 590000.000000 609000.000000
> y: 4913700.000000 4927700.000000
> z:    1.000000  255.000000
> 
> Maciek
> 
> 
> ----------------------------------------------------------------------
> 
> You can respond by visiting: 
> http://wald.intevation.org/tracker/?func=detail&atid=204&aid=314&group_id=21


ok, apparently the map's region isn't being adjusted for resolution
size. I'll look into it.


Hamish




More information about the grass-dev mailing list