New answers tagged mac
My nose was right! It was a multiple path issue in OSX. I had multiple installs of ogr and gdal conflicting despite them not being on my path as defined by .bash_profile but this: http://stackoverflow.com/a/8841666/2062470 sorted me out.
Since GDAL/OGR 1.10, the SQLite "dialect" can be used as an alternate SQL dialect to the OGR SQL dialect. This assumes that GDAL/OGR is built with support for SQLite (>= 3.6), and preferably with Spatialite support too to benefit from spatial functions. Source: http://www.gdal.org/ogr/ogr_sql_sqlite.html So you need to build GDAL (>= 1.10) ...
Layer -> Open Attribute table -> Advanced search. Here in 'SQL where clause' field you enter field_name = 'tree name' and hit Ok. Now go Layer -> 'Save selection as a vector file'. P.S. I bet this question is duplicate
Top 50 recent answers are included