[GRASS-user] batch import/sql shapefiles
maning sambale
emmanuel.sambale at gmail.com
Tue May 13 06:37:52 EDT 2008
Wolf,
Aha! It works now!
Salamat!
maning
On Tue, May 13, 2008 at 5:59 PM, Wolf Bergenheim
<wolf+grass at bergenheim.net> wrote:
> On 13.05.2008 10:52, maning sambale wrote:
>
> > Hi,
> >
> > This simple script doesn't seem to work on my cygwin bash
> >
> > for i in *.shp; do
> > ogr2ogr -f "ESRI Shapefile" -where "ELEVATION>10" $i_elev $i;
> > done
> >
> >
>
> You have two errors:
>
> 1) (as Hamish pointed out) $i_elev is a legal variable name so you want
> {$i}_elev
> 2) {i}_elev will become shapefile.shp_elev, which ogr2ogr might have a
> problem with..
>
> so instead try: $i_elev ==> elev_$i
>
> --Wolf
>
> --
>
> <:3 )---- Wolf Bergenheim ----( 8:>
>
>
--
|---------|----------------------------------------------------------|
| __.-._ |"Ohhh. Great warrior. Wars not make one great." -Yoda |
| '-._"7' |"Freedom is still the most radical idea of all" -N.Branden|
| /'.-c |Linux registered user #402901, http://counter.li.org/ |
| | /T |http://esambale.wikispaces.com|
| _)_/LI
|---------|----------------------------------------------------------|
More information about the grass-user
mailing list