[GRASS-dev] pygrass: region do not align to raster

Martin Landa landa.martin at gmail.com
Sun Apr 19 06:37:08 PDT 2015


2015-04-19 15:32 GMT+02:00 Martin Landa <landa.martin at gmail.com>:
> region = Region()
> print region.rows            -> is 977
> region.align(rast)
> print region.rows            -> should be 11682, but prints 977
>
> Or do I overlooked anything? Thanks, Martin

ah, it's just align just to resolution, not bounds. My original
question: is how to read raster using RasterRow() using raster's
region not the current region?

Martin

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa


More information about the grass-dev mailing list