[GRASSLIST:9162] Re: import shapefile with v.in.ogr and a script , qgis
Feras O
feras_o at yahoo.com
Sun Nov 20 15:09:55 EST 2005
Hello:
I am trying to use r3.mkdspf and I couldn't find r3.showdspf
please tell me what to do ...many thanks
Feras
Markus Neteler <neteler at itc.it> wrote: On Sun, Nov 20, 2005 at 12:35:43PM +0100, Stephan Holl wrote:
> On Sun, 20 Nov 2005 11:52:56 +0100 Helmut Kudrnovsky
...
> just write a short shell-script for batch-import
>
> untested:
> ---script begins---
> #/bin/bash
please fix to
#!/bin/bash
> for i in `ls *.shp`
> do
> echo "importing shape $i..."
> v.in.ogr dsn=$i out=`echo $i|cut -d"." -f1`
>
> done
> ---script end---
You may modify this to
---script begins---
#!/bin/sh
for i in *.shp
do
echo "importing shape $i..."
NAME=`basename $i .shp`
v.in.ogr dsn=$i out=$NAME
done
---script end---
Markus
---------------------------------
Yahoo! FareChase - Search multiple travel sites in one click.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20051120/467476a9/attachment.html
More information about the grass-user
mailing list