[GRASS-dev] Re: [GRASS-user] Get current location projection in a Python Script

Glynn Clements glynn at gclements.plus.com
Mon May 31 23:46:22 EDT 2010


Markus Neteler wrote:

> >>     # faster/ easier way: use of the "grass.region()" function
> >>     rows = int(grass.region()['rows'])
> >>     cols = int(grass.region()['cols'])
> >
> > In 7.0, these fields are already integers; r40555 should be
> > backported.
> 
> AFAIK it has been backported some time ago.
> 
> http://trac.osgeo.org/grass/browser/grass/branches/releasebranch_6_4/lib/python/core.py#L503

Okay; change that to "I should 'svn update' the other branches more
often", then ;)

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


More information about the grass-dev mailing list