Opened 16 years ago

Closed 11 years ago

#240 closed enhancement (fixed)

import all files within a directory

Reported by: timmie Owned by: rashadkm
Priority: major Milestone: 7.0.0
Component: Default Version: unspecified
Keywords: Cc:
CPU: All Platform: All


This was discussed for shapefile vectors at:

  • 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 or v.external.all, I suppose two or three lines of shell script :) 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.

Change History (4)

comment:1 by neteler, 16 years ago

CPU: UnspecifiedAll
Platform: UnspecifiedAll
Type: defectenhancement

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


in reply to:  1 comment:2 by glynn, 16 years ago

Replying to neteler:

An option may be to implement wildcard support in|

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.

comment:3 by rashadkm, 11 years ago

Owner: changed from grass-dev@… to rashadkm
Status: newassigned

Its not that hard. Adding a small python script could close this enhancement

comment:4 by martinl, 11 years ago

Resolution: fixed
Status: assignedclosed

Possible from the GUI [1]. For advanced user easy to write a script for that or to use Graphical Modeler. Closing this ticket.


Note: See TracTickets for help on using tickets.