On Donnerstag, 19. Juni 2008 14:30:45 [EMAIL PROTECTED] wrote:
> >is there a way to tell GRASS to import all the shapefiles in a certain
> > folder (I've tried *.shp but it didn't work), and give each output map
> > the same name as the original shapefile?
>
> v.in.ogr 'dsn=C:\QGIS\species_shapefiles'
>
haven't tried this before, but sounds great, alternatively you can try it with
a script:
#!/bin/bash
echo "import shape files"
for i in *.shp ; do
base = ${i%.*} #I found this in my old code, no idea why ,-)
v.in.ogr input=$i output=$i
done
the shell need to be run in the folder with you shp files.
Martin
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user