Opened 9 years ago

Closed 8 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 by martinl, 9 years ago

Component: DefaultRaster
Type: defectenhancement

comment:2 by neteler, 9 years ago

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

comment:3 by neteler, 9 years ago

Version: unspecified7.0.2

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

comment:4 by martinl, 9 years ago

Milestone: 7.0.47.0.5

comment:5 by martinl, 8 years ago

Milestone: 7.0.57.2.0

comment:6 by neteler, 8 years ago

Resolution: fixed
Status: newclosed

Job done, closing

Note: See TracTickets for help on using tickets.