[gdal-dev] v.in.ogr in grass with where condition
Markus Neteler
neteler at osgeo.org
Thu Jun 26 10:36:33 EDT 2008
On Thu, Jun 26, 2008 at 4:24 PM, Flavio Rigolon
<flavio.rigolon at gmail.com> wrote:
> Hi all,
> sorry for my bad english.
> I'm trying to import some shp files into GRASS via "v.in.ogr".
> The shp contain contour data (lines) with attribute storing z values.
> Is there a way to tell "v.in.ogr" a SQL string to import only contours
> referred do z value ending by zero?
> I.e.: I don't want to import contour with z value that are multiple of "5".
To give some background to this list, the thread come from the gfoss.it
list):
v.in.ogr uses OGR for the "where" parameter:
OGR_L_SetAttributeFilter (Ogr_layer, where_opt->answer );
http://www.gdal.org/ogr/ogr__api_8h.html#4000d426bf26ad7cc7d4012634c93f09
Does OGR_L_SetAttributeFilter() support a subset of SQL?
Markus
More information about the gdal-dev
mailing list