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

Glynn Clements glynn at gclements.plus.com
Sun May 30 21:50:09 EDT 2010


[CC to grass-dev]

Nikos Alexandris 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.

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


More information about the grass-user mailing list