Opened 11 years ago

Last modified 4 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 Changed 11 years ago by hamish

Component: defaultps.map
CPU: Unspecified
Platform: Unspecified

comment:2 Changed 11 years ago by hamish

Milestone: 6.4.06.5.0

comment:3 in reply to:  description Changed 9 years ago by annakrat

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 Changed 9 years ago by hamish

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 Changed 9 years ago 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

comment:6 in reply to:  5 Changed 9 years ago by annakrat

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 Changed 8 years ago 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

comment:8 Changed 8 years ago by hamish

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

Hamish

comment:9 Changed 8 years ago by hamish

Milestone: 6.5.06.4.2

comment:10 in reply to:  8 Changed 8 years ago by hamish

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 Changed 7 years ago by neteler

Hamish, please backport to G6.4.

comment:12 Changed 7 years ago by hamish

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

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

please test(!).

Hamish

comment:13 Changed 7 years ago 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

comment:14 Changed 4 years ago by neteler

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