[GRASS-dev] [GRASS GIS] #332: Uniform order for "at=" screen coordinates in d.* modules

#332: Uniform order for "at=" screen coordinates in d.* modules
-------------------------+--------------------------------------------------
Reporter: nikos | Owner: grass-dev@lists.osgeo.org
     Type: enhancement | Status: new
Priority: minor | Milestone: 6.4.0
Component: default | Version: unspecified
Keywords: | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
'''# from d.barscale help'''[[BR]]
at The screen coordinates for top-left corner of label ([0,0] is top-
left of frame)

'''# from d.legend help'''[[BR]]
at Placement as percentage of screen coordinates (0,0 is lower left)

  Is there a specific reason for not having those the same?

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/332&gt;
GRASS GIS <http://grass.osgeo.org>

#332: Uniform order for "at=" screen coordinates in d.* modules
--------------------------+-------------------------------------------------
  Reporter: nikos | Owner: grass-dev@lists.osgeo.org
      Type: enhancement | Status: new
  Priority: minor | Milestone: 7.0.0
Component: default | Version: unspecified
Resolution: | Keywords:
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by hamish):

  * milestone: 6.4.0 => 7.0.0

Comment:

d.legend at= settings were designed to mimic d.frame's convention.

for GRASS7 these should be standardized.
for GRASS 6 it is frozen.

see comments in grass64.svn/lib/display/cnversions.c if you want
to look deeper.

Hamish

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/332#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#332: Uniform order for "at=" screen coordinates in d.* modules
--------------------------+-------------------------------------------------
  Reporter: nikos | Owner: grass-dev@lists.osgeo.org
      Type: enhancement | Status: new
  Priority: minor | Milestone: 7.0.0
Component: default | Version: unspecified
Resolution: | Keywords:
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Comment (by glynn):

Replying to [comment:1 hamish]:

> see comments in grass64.svn/lib/display/cnversions.c if you want
> to look deeper.

Note: that file has changed a great deal in 7.0 (and may well change
further), so don't pay too much attention to anything contained in it.

In 7.0, the "U" coordinates aren't required to be cartographic
coordinates, e.g. d.graph uses percentages (i.e. coordinates range from
0,0 to 100,100). Also, physical coordinates (pixels, points) are hardly
used now by d.* commands. The only remaining vestige is that the
conversion factor is often used for sizing text and certain other elements
(e.g. symbols).

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/332#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#332: Uniform order for "at=" screen coordinates in d.* modules
-------------------------+--------------------------------------------------
Reporter: nikos | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: minor | Milestone: 7.0.0
Component: Default | Version: unspecified
Keywords: | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by nikos):

Is this still valid in grass 7? The "--help"s of the two reported modules
(above) describing "at=" still differ?

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/332#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#332: Uniform order for "at=" screen coordinates in d.* modules
--------------------------+-------------------------------------------------
  Reporter: nikos | Owner: grass-dev@…
      Type: enhancement | Status: closed
  Priority: minor | Milestone: 7.0.0
Component: Display | Version: svn-trunk
Resolution: fixed | Keywords: d.barscale, d.legend, d.text, d.graph
  Platform: All | Cpu: All
--------------------------+-------------------------------------------------
Changes (by hamish):

  * status: new => closed
  * component: Default => Display
  * platform: Unspecified => All
  * version: unspecified => svn-trunk
  * keywords: => d.barscale, d.legend, d.text, d.graph
  * resolution: => fixed
  * cpu: Unspecified => All

Comment:

all d.* modules seem updated now to use the convention (0%,0%) of the
display frame as meaning the lower-left.

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/332#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#332: Uniform order for "at=" screen coordinates in d.* modules
--------------------------+-------------------------------------------------
  Reporter: nikos | Owner: grass-dev@…
      Type: enhancement | Status: closed
  Priority: minor | Milestone: 7.0.0
Component: Display | Version: svn-trunk
Resolution: fixed | Keywords: d.barscale, d.legend, d.text, d.graph
  Platform: All | Cpu: All
--------------------------+-------------------------------------------------

Comment(by nikos):

Replying to [comment:3 nikos]:
> Is this still valid in grass 7? The "--help"s of the two reported
modules (above) describing "at=" still differ?

Sorry, I wanted to... "!" not "?" in the end. They still differ "here":

{{{
d.barscale --help
..
at The screen coordinates for top-left corner of label
                       (0,0) is lower-left of frame
}}}

and

{{{
d.legend --help
..
at Size and placement as percentage of screen coordinates (0,0 is lower
left)
                bottom,top,left,right
               options: 0-100
}}}

The "d.barscale" description referring to "top-left" is (still) confusing.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/332#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>