Opened 4 years ago

Closed 3 years ago

#2866 closed enhancement (fixed)

Let r.import specify "title"

Reported by: pmav99 Owned by: grass-dev@…
Priority: normal Milestone: 7.2.0
Component: Raster Version: 7.0.2
Keywords: r.import Cc:
CPU: Unspecified Platform: Unspecified

Description

I think that it would be nice if r.import was able to specify the raster's "title". This is supported by r.in.gdal and AFAIK it shouldn't be too hard to implement.

#%option
#% key: title
#% key_desc: phrase
#% type: string
#% required: no
#% description: Title for resultant raster map
#% guisection: Metadata
#%end
def main():
    # [snip]
    title = options["title"]
    # [snip]
    parameters = dict(input=GDALdatasource, output=output,
                      memory=memory, flags='c', title=title,  
                      location=TMPLOC, quiet=True)
    # [snip]

Change History (6)

comment:1 Changed 4 years ago by martinl

Component: DefaultRaster
Type: defectenhancement

comment:2 Changed 4 years ago by neteler

Good idea. Can you please add the change as "svn diff" attachment for easier processing?

comment:3 Changed 4 years ago by neteler

Version: unspecified7.0.2

Implemented in r67698. To be backported if working as expected.

comment:4 Changed 4 years ago by martinl

Milestone: 7.0.47.0.5

comment:5 Changed 3 years ago by martinl

Milestone: 7.0.57.2.0

comment:6 Changed 3 years ago by neteler

Resolution: fixed
Status: newclosed

Job done, closing

Note: See TracTickets for help on using tickets.