[GRASS-user] ps.map: add elevation scale?

Is there a way to add the elevation color bar for a DEM map to a ps.map?

TIA,

Rich

On Mon, 15 May 2023, Rich Shepard wrote:

Is there a way to add the elevation color bar for a DEM map to a ps.map?

Since I can add a raster elevation legend using the GUI map window (see
attached), why can't I add in in a .psmap file?

Rich

(attachments)

dem-with-legend.png

On Mon, 15 May 2023, Rich Shepard wrote:

Since I can add a raster elevation legend using the GUI map window (see
attached), why can't I add in in a .psmap file?

I stopped writing C code >20 years ago so I am not qualified to create a
ps_rlegend.c based on ps_vlegend.c and integrate it into ps.map. It would be
really helpful to be able to put an elevation legend on a map so it better
communicates to non-technical decision-makers.

Could someone quickly create a ps_rlegend.c and make it available to ps.map?

Rich

Hello Rich,

colortable ? : https://grass.osgeo.org/grass82/manuals/ps.map.html#colortable

Regards,

Frank

···

Le 16/05/2023 à 00:33, Rich Shepard a écrit :

On Mon, 15 May 2023, Rich Shepard wrote:

Is there a way to add the elevation color bar for a DEM map to a ps.map?

Since I can add a raster elevation legend using the GUI map window (see
attached), why can’t I add in in a .psmap file?

Rich

_______________________________________________
grass-user mailing list
[grass-user@lists.osgeo.org](mailto:grass-user@lists.osgeo.org)
[https://lists.osgeo.org/mailman/listinfo/grass-user](https://lists.osgeo.org/mailman/listinfo/grass-user)

On Tue, 16 May 2023, Frank David wrote:

colortable ? : https://grass.osgeo.org/grass82/manuals/ps.map.html#colortable

Frank,

Well, I completely missed that one. I used r.colors to set the colors of the
rater to 'elevation' and didn't notice the colortable command in ps.map. I
should have known the code was there someplace and overlooked that one each
time.

Mea culpa!

Many thanks ... close the feature requese please.

Best regards,

Rich

Rich,

On Tue, May 16, 2023 at 2:38 PM Rich Shepard <rshepard@appl-ecosys.com> wrote:

On Tue, 16 May 2023, Frank David wrote:

> colortable ? :
> https://grass.osgeo.org/grass82/manuals/ps.map.html#colortable

Frank,

Well, I completely missed that one.

Please suggest how to improve the documentation to make it more obvious.

Thanks
Markus

On Tue, 16 May 2023, Markus Neteler wrote:

Please suggest how to improve the documentation to make it more obvious.

Markus,

Reading the colortable manual page shows that it's the raster equivalent of
vlegend. Why not change 'colortable' to 'rlegend' as that's what it
produces?

When I saw 'colortable' I assumed it was a version of r.colors, defining the
map colors, not providing a legend.

Best regards,

Rich

On Tue, May 16, 2023 at 3:21 PM Rich Shepard <rshepard@appl-ecosys.com> wrote:

On Tue, 16 May 2023, Markus Neteler wrote:

> Please suggest how to improve the documentation to make it more obvious.

Markus,

Reading the colortable manual page shows that it's the raster equivalent of
vlegend. Why not change 'colortable' to 'rlegend' as that's what it
produces?
When I saw 'colortable' I assumed it was a version of r.colors, defining the
map colors, not providing a legend.

Do you mean in this manual page?
https://grass.osgeo.org/grass-stable/manuals/ps.map.html#colortable

For wording improvements, please (ideally) suggest them here:
https://github.com/OSGeo/grass/blob/main/ps/ps.map/ps.map.html#L214

Markus

On Tue, 16 May 2023, Markus Neteler wrote:

Do you mean in this manual page?
https://grass.osgeo.org/grass-stable/manuals/ps.map.html#colortable

For wording improvements, please (ideally) suggest them here:
https://github.com/OSGeo/grass/blob/main/ps/ps.map/ps.map.html#L214

Markus,

Okay. Earlier today you asked how I would change the colortable name and I
responded in the email. I'll put the same suggestion on the tracking page.

Regards,

Rich

Rich Shepard <rshepard@appl-ecosys.com> schrieb am Di., 16. Mai 2023, 23:27:

On Tue, 16 May 2023, Markus Neteler wrote:

Do you mean in this manual page?
https://grass.osgeo.org/grass-stable/manuals/ps.map.html#colortable

For wording improvements, please (ideally) suggest them here:
https://github.com/OSGeo/grass/blob/main/ps/ps.map/ps.map.html#L214

Markus,

Okay. Earlier today you asked how I would change the colortable name and I
responded in the email. I’ll put the same suggestion on the tracking page.

Please keep in mind that we cannot change the parameter names, only once GRASS GIS 9 comes out. The reason is that it would be a breaking change.

So “only” the description can be changed in a release cycle.

Regards,
Markus


grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user