[GRASS5] [bug #939] (grass) d.barscale ignores PROJ_UNITS

Helena hmitaso at unity.ncsu.edu
Sun Mar 3 16:05:49 EST 2002


Glynn

I believe that the error was only in the untis that it has written out -
so everything should have stayed the same except it should have written
ft insted
of m. So I had a barscale showing 5000m but its length was in fact
5000ft.
So looking into PROJ_UNITS and choosing whether to write ft or m should
be
the fix. The length of the bar should be OK, drawing a longer bar may
make it difficult
to place it (it is already pretty long)..

In addition to this problem,  I have an area where I need to combine data
provided in
state plane ft and state plane meters and when I try to project between
the
two locations proj complains that the map is not in my region. So it
looks like
it interprets ft as meters for both locations - I will try to go through
lat-long location
to see what is going on, but if anybody has done anything like this and
can confirm
or deny the problem that would help.

Also some other modules need to be checked for units (e.g. r.profile and
area
measurements). The numbers would be probably correct, it is just the unit

written on the screen which is wrong and assumes that everything is
meter.
I will check some of the modules and report what I find.

thanks for looking into this - the life would be for sure easier if we
could finally
switch to meters, however the latest and greatest and newest and most
high tech state data that I am
working with are again in feet.

Helena


Clements wrote:

> Request Tracker wrote:
>
> > Subject: d.barscale ignores PROJ_UNITS
>
> > Helena reported to me (and I tend to agree) that d.barscale
> > ignores PROJ_UNITS. In case one work in a feet State Plane
> > coordinate system, d.barscale will report nonsense.
>
> I've fixed this (well, I think so; either that or I've squared the
> error factor).
>
> I'm presuming that the bug treated units as metres, resulting in the
> bar being too small (e.g. a "5km" bar was really 5000 ft). The bar now
> gets larger as the "meters" setting in PROJ_UNITS gets smaller.
>
> --
> Glynn Clements <glynn.clements at virgin.net>
> _______________________________________________
> grass5 mailing list
> grass5 at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass5




More information about the grass-dev mailing list