[GRASS-user] Re: grass-user Digest, Vol 25, Issue 17

Michael Barton michael.barton at asu.edu
Tue May 13 11:09:05 EDT 2008


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 at lists.osgeo.org"
<grass-user-request at lists.osgeo.org> wrote:

> Message: 4
> Date: Tue, 13 May 2008 15:52:17 +0800
> From: "maning sambale" <emmanuel.sambale at gmail.com>
> Subject: [GRASS-user] batch import/sql shapefiles
> To: grass-user <grass-user at lists.osgeo.org>
> Message-ID:
> <f902f9840805130052u6ed3e6dbq78af48133f186805 at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
> 
> 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
> 
> I'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




More information about the grass-user mailing list