Opened 17 years ago

Last modified 9 years ago

#192 assigned enhancement

ps.map: geogrid RGB color and ellipsoid

Reported by: hamish Owned by: hamish
Priority: normal Milestone: 6.4.6
Component: Ps.map Version: svn-trunk
Keywords: ps.map, geogrid, ellipsoid, RGB Cc: grass-dev@…
CPU: Unspecified Platform: Unspecified

Description

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?

Change History (14)

comment:1 by hamish, 16 years ago

Component: defaultps.map
CPU: Unspecified
Platform: Unspecified

comment:2 by hamish, 16 years ago

Milestone: 6.4.06.5.0

in reply to:  description comment:3 by annakrat, 14 years ago

Replying to 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

comment:4 by hamish, 14 years ago

Cc: grass-dev@… added
Owner: changed from grass-dev@… to hamish
Priority: trivialnormal
Status: newassigned

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

comment:5 by hamish, 14 years ago

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

in reply to:  5 comment:6 by annakrat, 14 years ago

Replying to 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

comment:7 by hamish, 13 years ago

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

comment:8 by hamish, 13 years ago

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

Hamish

comment:9 by hamish, 13 years ago

Milestone: 6.5.06.4.2

in reply to:  8 comment:10 by hamish, 13 years ago

Milestone: 6.4.26.4.3

Replying to hamish:

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

todo: backport to 6.4

Hamish

comment:11 by neteler, 12 years ago

Hamish, please backport to G6.4.

comment:12 by hamish, 12 years ago

Keywords: ps.map geogrid ellipsoid RGB → ps.map, geogrid, ellipsoid, RGB

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

please test(!).

Hamish

comment:13 by hamish, 12 years ago

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

comment:14 by neteler, 9 years ago

Milestone: 6.4.36.4.6
Note: See TracTickets for help on using tickets.