[GRASSLIST:9160] Re: import shapefile with v.in.ogr and a
script , qgis
Helmut Kudrnovsky
hellik at web.de
Sun Nov 20 12:04:35 EST 2005
hola markus,
thanks for the information!
the script is o.k., is runnung.
another short question:
is such a batch-scripting also possible for v.proj and v.out.ogr?
-v.proj-batch-script: for batch-reprojection of grass-layers from
mapset/location xy with projection xy to mapset/location abc with
projection abc
and
- v.out.ogr-batch-script: for batch-export of grass-layers to shape-file
greetings
helli
At 14:48 20.11.2005, Markus Neteler 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 <hellik at web.de>
>...
> > 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
More information about the grass-user
mailing list