Opened 16 years ago
Closed 12 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 |
Description
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 :) 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)
follow-up: 2 comment:1 by , 16 years ago
CPU: | Unspecified → All |
---|---|
Milestone: | 6.4.0 → 7.0.0 |
Platform: | Unspecified → All |
Type: | defect → enhancement |
comment:2 by , 16 years ago
Replying to 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.
comment:3 by , 12 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Its not that hard. Adding a small python script could close this enhancement
comment:4 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Possible from the GUI [1]. For advanced user easy to write a script for that or to use Graphical Modeler. Closing this ticket.
(1) http://grasswiki.osgeo.org/wiki/File:WxGUI_vector_bulk_import2.png
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