[GRASS-dev] [GRASS GIS] #2018: Provide a way to edit the PERMANENT/MYNAME file

#2018: Provide a way to edit the PERMANENT/MYNAME file
-------------------------------------------+--------------------------------
Reporter: nikosa | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.4
Component: Default | Version: unspecified
Keywords: location, description, ps.map | Platform: Unspecified
      Cpu: Unspecified |
-------------------------------------------+--------------------------------
Besides _editing_ the PERMANENT/MYNAME file manually (later, not while
creating a Location), is there a "proper" way to do so? It is used for
example by the "header" instruction in ps.map.

I can't trace a single reference about it in any of the user-manuals
except for in ps.map's section about the header instruction
<http://grass.osgeo.org/grass64/manuals/ps.map.html#header&gt;:

{{{
%L - Location's text description
}}}

And, of course, in the Programmer's manual, i.e. in
<http://grass.osgeo.org/programming7/myname_8c.html&gt;\.

Maybe add an option to "g.proj" or an(other) environment variable
"LOCATION_DESCRIPTION" to be set with "g.gisenv"?

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

#2018: Provide a way to edit the PERMANENT/MYNAME file
-------------------------------------------+--------------------------------
Reporter: nikosa | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.4
Component: Default | Version: unspecified
Keywords: location, description, ps.map | Platform: Unspecified
      Cpu: Unspecified |
-------------------------------------------+--------------------------------

Comment(by hamish):

Currently it's settable at the time that you create the location, after
that you need to edit the text file by hand.

in grass6 I'd add editing it as an option to g.setproj, not g.proj. Code
should be very similar to several r.support options. Not sure about in
grass7, I feel g.proj is already a bit overloaded wrt functionality, but
it's not enough for its own g.support module.

it's generally set-and-forget, so doesn't belong in g.gisenv as a
variable.

Hamish

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

#2018: Provide a way to edit the PERMANENT/MYNAME file
-------------------------------------------+--------------------------------
Reporter: nikosa | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.4
Component: Default | Version: unspecified
Keywords: location, description, ps.map | Platform: Unspecified
      Cpu: Unspecified |
-------------------------------------------+--------------------------------

Comment(by hamish):

try new -n and descr= options in g.setproj with r56961 in devbr6.

> Not sure about in grass7, I feel g.proj is already a bit overloaded
> wrt functionality, but it's not enough for its own g.support module.

any ideas?

Hamish

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

#2018: Provide a way to edit the PERMANENT/MYNAME file
-------------------------------------------+--------------------------------
Reporter: nikosa | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.4
Component: Default | Version: unspecified
Keywords: location, description, ps.map | Platform: Unspecified
      Cpu: Unspecified |
-------------------------------------------+--------------------------------

Comment(by nikosa):

Replying to [comment:2 hamish]:
> try new -n and descr= options in g.setproj with r56961 in devbr6.

Works :slight_smile:

> > Not sure about in grass7, I feel g.proj is already a bit overloaded
> > wrt functionality, but it's not enough for its own g.support module.
>
> any ideas?

The ones who know the internals very well have a better idea on that.
Would it be really too much to add the "description=" to g.proj in G7?

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

#2018: Provide a way to edit the PERMANENT/MYNAME file
-------------------------------------------+--------------------------------
Reporter: nikosa | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.4
Component: Default | Version: unspecified
Keywords: location, description, ps.map | Platform: Unspecified
      Cpu: Unspecified |
-------------------------------------------+--------------------------------

Comment(by hamish):

backported to relbr64 with r57679.

trunk: todo

Hamish

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