[GRASS-dev] [GRASS GIS] #240: import all files within a directory

#240: import all files within a directory
-------------------------+--------------------------------------------------
Reporter: timmie | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: default | Version: unspecified
Keywords: | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
This was discussed for shapefile vectors at:
http://news.gmane.org/gmane.comp.gis.grass.user
>> * I cannot just point the program to a directory of shapefiles and tell
>> it import all. QGIS, gvSIG and ArcGIS can do this.
>
> We could easily add v.in.ogr.all or v.external.all, I suppose two or
> three lines of shell script :slight_smile: Could be stored in the Addons wiki.

This chould be enabled for vector and raster files.
Examples:

- Import all landcover vector files from a folder

- Import all SRTM ASC/TIFF files from a folder

a nice option would be if one could run ogr2ogr/v.patch or
gdal_merge/r.patch while importing to generate a mosaik of all the tiles
within the folder with the same step.

This should also be implemented for the GUI.

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

#240: import all files within a directory
--------------------------+-------------------------------------------------
  Reporter: timmie | Owner: grass-dev@lists.osgeo.org
      Type: enhancement | Status: new
  Priority: major | Milestone: 7.0.0
Component: default | Version: unspecified
Resolution: | Keywords:
  Platform: All | Cpu: All
--------------------------+-------------------------------------------------
Changes (by neteler):

  * platform: Unspecified => All
  * type: defect => enhancement
  * cpu: Unspecified => All
  * milestone: 6.4.0 => 7.0.0

Comment:

An option may be to implement wildcard support in r.in.gdal|v.in.ogr.
Possibly a GDAL/OGR function could be called to merge before handing
the data block over to GRASS (within the modules).

Markus

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

#240: import all files within a directory
--------------------------+-------------------------------------------------
  Reporter: timmie | Owner: grass-dev@lists.osgeo.org
      Type: enhancement | Status: new
  Priority: major | Milestone: 7.0.0
Component: default | Version: unspecified
Resolution: | Keywords:
  Platform: All | Cpu: All
--------------------------+-------------------------------------------------
Comment (by glynn):

Replying to [comment:1 neteler]:

> An option may be to implement wildcard support in r.in.gdal|v.in.ogr.

It doesn't make any sense to implement this within the module.

If you are going to run the entire top-level of a module in a loop, you're
better off just running the module itself in a loop.

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