[GRASS-dev] [GRASS GIS] #192: ps.map: geogrid RGB color and ellipsoid

#192: ps.map: geogrid RGB color and ellipsoid
------------------------------------------+---------------------------------
Reporter: hamish | Owner: grass-dev@lists.osgeo.org
     Type: enhancement | Status: new
Priority: trivial | Milestone: 6.4.0
Component: default | Version: svn-trunk
Keywords: ps.map geogrid ellipsoid RGB |
------------------------------------------+---------------------------------
Hi,

ps.map's geogrid command only accepts named colors currently. it should be
updated to accept R:G:B as well.

Also it is unclear to me which ellipsoid geogrid uses. I suspect it is the
current one, which is fine, but it would be nice to add an option to use
WGS84's instead, like "d.grid -w".

thanks
Hamish

ps- can we have "ps.map" added to the trac Component drop down list?

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

On Fri, Jun 20, 2008 at 4:14 PM, GRASS GIS <trac@osgeo.org> wrote:

ps- can we have "ps.map" added to the trac Component drop down list?

done.

Markus

#192: ps.map: geogrid RGB color and ellipsoid
--------------------------+-------------------------------------------------
  Reporter: hamish | Owner: grass-dev@lists.osgeo.org
      Type: enhancement | Status: new
  Priority: trivial | Milestone: 6.4.0
Component: ps.map | Version: svn-trunk
Resolution: | Keywords: ps.map geogrid ellipsoid RGB
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by hamish):

  * platform: => Unspecified
  * component: default => ps.map
  * cpu: => Unspecified

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

#192: ps.map: geogrid RGB color and ellipsoid
--------------------------+-------------------------------------------------
  Reporter: hamish | Owner: grass-dev@lists.osgeo.org
      Type: enhancement | Status: new
  Priority: trivial | Milestone: 6.5.0
Component: ps.map | Version: svn-trunk
Resolution: | Keywords: ps.map geogrid ellipsoid RGB
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by hamish):

  * milestone: 6.4.0 => 6.5.0

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

#192: ps.map: geogrid RGB color and ellipsoid
------------------------------------------+---------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: trivial | Milestone: 6.5.0
Component: Ps.map | Version: svn-trunk
Keywords: ps.map geogrid ellipsoid RGB | Platform: Unspecified
      Cpu: Unspecified |
------------------------------------------+---------------------------------

Comment(by annakrat):

Replying to [ticket:192 hamish]:
> Hi,
>
> ps.map's geogrid command only accepts named colors currently. it should
be updated to accept R:G:B as well.
>
> Also it is unclear to me which ellipsoid geogrid uses. I suspect it is
the current one, which is fine, but it would be nice to add an option to
use WGS84's instead, like "d.grid -w".
>
>
>
> thanks
> Hamish
>
>
> ps- can we have "ps.map" added to the trac Component drop down list?

R:G:B is not supported by other commands, too. Mapinfo (color, background,
border) and vlegend (border) are supported by the new GUI, so they should
be fixed first.

Other commands which accept only named colors are: grid, geogrid, header,
outline, setcolor. GUI does't support them yet, so these can wait.

Thanks

Anna

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

#192: ps.map: geogrid RGB color and ellipsoid
------------------------------------------+---------------------------------
Reporter: hamish | Owner: hamish
     Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.5.0
Component: Ps.map | Version: svn-trunk
Keywords: ps.map geogrid ellipsoid RGB | Platform: Unspecified
      Cpu: Unspecified |
------------------------------------------+---------------------------------
Changes (by hamish):

* cc: grass-dev@… (added)
  * owner: grass-dev@… => hamish
  * status: new => assigned
  * priority: trivial => normal

Comment:

Anna:
> R:G:B is not supported by other commands, too. Mapinfo (color,
background, border)
> and vlegend (border) are supported by the new GUI, so they should be
fixed first.

ok, will-do.

Hamish

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

#192: ps.map: geogrid RGB color and ellipsoid
------------------------------------------+---------------------------------
Reporter: hamish | Owner: hamish
     Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.5.0
Component: Ps.map | Version: svn-trunk
Keywords: ps.map geogrid ellipsoid RGB | Platform: Unspecified
      Cpu: Unspecified |
------------------------------------------+---------------------------------

Comment(by hamish):

RGB support added to mapinfo in 6.5&7 in r45774,5.
RGB support added to vlegend in 6.5&7 in r45776,7.

example showing mapinfo background working just until
the point where the mapinfo box does not overlap the
main map box: (change y=6.45 to 6.50 to see it fall off the edge)
{{{
#spearfish
g.region -d

ps.map out=test.ps << EOF
raster elevation.dem
mapinfo
   where 2 6.45
   color 200:10:200
   background 150:200:200
   border 250:220:50
   end
end
EOF
}}}

Hamish

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

#192: ps.map: geogrid RGB color and ellipsoid
------------------------------------------+---------------------------------
Reporter: hamish | Owner: hamish
     Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.5.0
Component: Ps.map | Version: svn-trunk
Keywords: ps.map geogrid ellipsoid RGB | Platform: Unspecified
      Cpu: Unspecified |
------------------------------------------+---------------------------------

Comment(by annakrat):

Replying to [comment:5 hamish]:
> RGB support added to mapinfo in 6.5&7 in r45774,5.
> RGB support added to vlegend in 6.5&7 in r45776,7.

Thanks, I made the correction you suggested (use named color in the
instruction file if possible).

> example showing mapinfo background working just until
> the point where the mapinfo box does not overlap the
> main map box: (change y=6.45 to 6.50 to see it fall off the edge)

I know about this, I suppose this behaviour is a bug. I forgot to mention
it.

Anna

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

#192: ps.map: geogrid RGB color and ellipsoid
------------------------------------------+---------------------------------
Reporter: hamish | Owner: hamish
     Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.5.0
Component: Ps.map | Version: svn-trunk
Keywords: ps.map geogrid ellipsoid RGB | Platform: Unspecified
      Cpu: Unspecified |
------------------------------------------+---------------------------------

Comment(by hamish):

full support fro RGB colors added to the grid and geogrid instructions in
devbr6 and trunk in r47689,90.

todo: PS.outline_color and hdr.color.

Hamish

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

#192: ps.map: geogrid RGB color and ellipsoid
------------------------------------------+---------------------------------
Reporter: hamish | Owner: hamish
     Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.5.0
Component: Ps.map | Version: svn-trunk
Keywords: ps.map geogrid ellipsoid RGB | Platform: Unspecified
      Cpu: Unspecified |
------------------------------------------+---------------------------------

Comment(by hamish):

header, outline, and setcolor instructions now accept full RGB colors.

Hamish

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

#192: ps.map: geogrid RGB color and ellipsoid
------------------------------------------+---------------------------------
Reporter: hamish | Owner: hamish
     Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.4.2
Component: Ps.map | Version: svn-trunk
Keywords: ps.map geogrid ellipsoid RGB | Platform: Unspecified
      Cpu: Unspecified |
------------------------------------------+---------------------------------
Changes (by hamish):

  * milestone: 6.5.0 => 6.4.2

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

#192: ps.map: geogrid RGB color and ellipsoid
------------------------------------------+---------------------------------
Reporter: hamish | Owner: hamish
     Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.4.3
Component: Ps.map | Version: svn-trunk
Keywords: ps.map geogrid ellipsoid RGB | Platform: Unspecified
      Cpu: Unspecified |
------------------------------------------+---------------------------------
Changes (by hamish):

  * milestone: 6.4.2 => 6.4.3

Comment:

Replying to [comment:8 hamish]:
> header, outline, and setcolor instructions now accept full RGB colors.

todo: backport to 6.4

Hamish

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

#192: ps.map: geogrid RGB color and ellipsoid
------------------------------------------+---------------------------------
Reporter: hamish | Owner: hamish
     Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.4.3
Component: Ps.map | Version: svn-trunk
Keywords: ps.map geogrid ellipsoid RGB | Platform: Unspecified
      Cpu: Unspecified |
------------------------------------------+---------------------------------

Comment(by neteler):

Hamish, please backport to G6.4.

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

#192: ps.map: geogrid RGB color and ellipsoid
---------------------------------------------+------------------------------
Reporter: hamish | Owner: hamish
     Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.4.3
Component: Ps.map | Version: svn-trunk
Keywords: ps.map, geogrid, ellipsoid, RGB | Platform: Unspecified
      Cpu: Unspecified |
---------------------------------------------+------------------------------
Changes (by hamish):

  * keywords: ps.map geogrid ellipsoid RGB => ps.map, geogrid, ellipsoid,
               RGB

Comment:

backported RGB support for a number of instructions and various small
bugfixes in r55176.

please test(!).

Hamish

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

#192: ps.map: geogrid RGB color and ellipsoid
---------------------------------------------+------------------------------
Reporter: hamish | Owner: hamish
     Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.4.3
Component: Ps.map | Version: svn-trunk
Keywords: ps.map, geogrid, ellipsoid, RGB | Platform: Unspecified
      Cpu: Unspecified |
---------------------------------------------+------------------------------

Comment(by hamish):

full RGB support for 'setcolor' backported to relbr64 in r55981. the rest
which were already backported tested ok.

still todo before closing this ticket:
> Also it is unclear to me which ellipsoid geogrid uses. I suspect it is
the
> current one, which is fine, but it would be nice to add an option to use
> WGS84's instead, like "d.grid -w".

Hamish

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