1) are you sure you have the ogr2ogr gdal utility?
2) you might try Python instead of bash
Michael
On 5/13/08 1:20 AM, "grass-user-request@lists.osgeo.org"
<grass-user-request@lists.osgeo.org> wrote:
Message: 4
Date: Tue, 13 May 2008 15:52:17 +0800
From: "maning sambale" <emmanuel.sambale@gmail.com>
Subject: [GRASS-user] batch import/sql shapefiles
To: grass-user <grass-user@lists.osgeo.org>
Message-ID:
<f902f9840805130052u6ed3e6dbq78af48133f186805@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8Hi,
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;
doneI'm trying to extract elevation contour lines from a couple of shapefiles
I know it worked before on my linux.cheers,
maning
__________________________________________
Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University
phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton