[GRASS-dev] r.info title quesion
Markus Neteler
neteler at osgeo.org
Sat May 14 02:43:10 PDT 2016
On Fri, May 13, 2016 at 3:45 PM, Anna Petrášová <kratochanna at gmail.com> wrote:
> On Fri, May 13, 2016 at 9:18 AM, Anna Petrášová <kratochanna at gmail.com> wrote:
>> Hi,
>>
>> anyone has an idea why r.info prints the title in this way:
>>
>> compose_line(out, "Title: %s ( %s )",
>> cats_ok ? cats.title : "??",
>> hist_ok ? Rast_get_history(&hist, HIST_TITLE) : "??");
>>
>> most raster maps then show:
>>
>> ( elevation )
>>
>> because cats.title is empty which looks pretty confusing. Is this some
>> legacy issue, should it be changed?
>
>
> I can see now several C modules set the 'cats' title, but there is no
> way to set it through r.support or r.category so it can't be used from
> scripts unless you use ctypes. I am still unclear what's the point of
> these 2 titles.
Maybe check the old GRASS 4 programmer's manual:
https://grass.osgeo.org/grass43/manuals/progman42.pdf
eg on page 72 is some discussion.
Markus
More information about the grass-dev
mailing list