[GRASS5] Re: [bug #2936] (grass) d.barscale doesn't work (bis)

Paul Kelly paul-grass at stjohnspoint.co.uk
Thu Feb 3 04:56:38 EST 2005


On Wed, 2 Feb 2005, Maciek Sieczka wrote:

> just in case. Please read below. Could that bug be easily fixed? It brings 
> troubles to all using EPSG codes in Grass.
>
[...]
>
> Yes - but only if creating a new location from EPSG code! And this way I
> found the reson that d.barscale doesn't work: the PROJ_INFO file syntax is
> different when a location is set up via the Grass interface and when
> automatically generated from EPSG code. See this:
>
> Via Grass set up:
>
> unit: meter
> units: meters
> meters: 1.0
>
> Automatic, from EPSG 2180:
>
> unit: metre
> units: metres
> meter: 1
>

Wow. What a long-standing bug you found---this has been in the automatic 
location generating code in r.in.gdal for 4 years and was propagated into 
the gproj library in 5.7. It should of course be meters: 1, not meter: 1.

I have fixed in CVS. Just goes to show how little-used PROJ_UNITS is I 
suppose.

Paul




More information about the grass-dev mailing list