Opened 8 years ago

Last modified 5 years ago

#3157 new enhancement

support for "offset" and "num_digits" in r.import

Reported by: veroandreo Owned by: grass-dev@…
Priority: normal Milestone: 7.6.2
Component: Raster Version: svn-trunk
Keywords: r.import Cc:
CPU: Unspecified Platform: Unspecified

Description

It would be nice to have the options "offset" and "num_digits" from G7:r.in.gdal also in G7:r.import. These options make it easier to work with multiband maps, as those provided for example in ECAD dataset, given that the zero padding in the imported map names allows then for ordered listing of resulting maps.

Change History (9)

in reply to:  description comment:1 by mmetz, 8 years ago

Replying to veroandreo:

It would be nice to have the options "offset" and "num_digits" from G7:r.in.gdal also in G7:r.import. These options make it easier to work with multiband maps, as those provided for example in ECAD dataset, given that the zero padding in the imported map names allows then for ordered listing of resulting maps.

The purpose of the [r|v].import modules is to provide a simplified interface for easy import of spatial data, combining r.in.gdal + r.proj and v.in.ogr + v.proj. That means a reduced number of options to keep the interface simple and some checks if the data can indeed be reprojected if need be.

Despite the existence of [r|v].import, it is always safer to use r.in.gdal + r.proj and v.in.ogr + v.proj separately because [r|v].import do not catch all problems that can occur when 1) importing data, 2) reprojecting data.

Therefore I propose to have a nice GUI interface for r.import/v.import similar to the current GUI interface for r.in.gdal/v.in.ogr. At the very least, the selection of the input type (file, directory, database, protocol) should be available. The default GUI interface for r.in.gdal/v.in.ogr can then be again what you get with e.g. r.in.gdal --ui. We would then have a relatively simple and comfortable method + interface for importing "easy" data provided by [r|v].import and the full options, also in the GUI interface of r.in.gdal/v.in.ogr for the not-so-easy data to be imported.

IOW, [r|v].import should IMHO provide a simple (simplified) interface to easily import data with reprojection on-the-fly. If [r|v].import fails, or if you want more control over the import process, you should have access to all the options of r.in.gdal/v.in.ogr also through the GUI.

BTW, the default answers of r.import for extent=input and resolution=estimated seem dangerous to me.

comment:2 by neteler, 7 years ago

Milestone: 7.2.07.2.1

Ticket retargeted after milestone closed

comment:3 by martinl, 7 years ago

Milestone: 7.2.17.2.2

comment:4 by martinl, 7 years ago

Milestone: 7.2.27.4.0

All enhancement tickets should be assigned to 7.4 milestone.

comment:5 by neteler, 6 years ago

Milestone: 7.4.07.4.1

Ticket retargeted after milestone closed

comment:6 by neteler, 6 years ago

Milestone: 7.4.17.4.2

comment:7 by martinl, 6 years ago

Milestone: 7.4.27.6.0

All enhancement tickets should be assigned to 7.6 milestone.

comment:8 by martinl, 5 years ago

Milestone: 7.6.07.6.1

Ticket retargeted after milestone closed

comment:9 by martinl, 5 years ago

Milestone: 7.6.17.6.2

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.