[GRASS-dev] g.proj -p - units is : meters or metres ?

Glynn Clements glynn at gclements.plus.com
Sat Feb 6 13:18:37 EST 2010


Massimo Di Stefano wrote:

> i've old scripts that i'm using to parse the "g.proj" output
> 
> in it i have units == meters
> 
> but form recent svn 6.5 version i can see it use :   metres
> 
> GRASS 6.5.svn (spearfish60):~/wxpython/data_catalog > g.proj -p

> -PROJ_UNITS------------------------------------------------
> unit       : metre
> units      : metres
> meters     : 1
> 
> 
> 
> is it a typo, or need i to modify my scripts to use :    metre / metres ?

g.proj outputs whatever is in the PROJ_UNITS file. The textual
description of the unit can be whatever the user chooses it to be, or
in the case of "g.proj -c", whatever is obtained from the source
specified by georef=. GRASS itself only the unit/units fields for
display to the user; calculations use the numeric value in the meters
field.

What do your scripts use the "unit" or "units" field for?

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


More information about the grass-dev mailing list