[Qgis-user] Selecting polygons on attribute - Trying OGR
Andre Joost
andre+joost at nurfuerspam.de
Tue Jul 24 08:14:02 PDT 2012
Am 24.07.2012 17:07, schrieb Micha Silver:
>>
>
> This worked for me (on a *very* small shapefile. Some of the "Name" attributes
> where "rest 1", "rest 2" etc):
>
> ogr2ogr -f "ESRI Shapefile" -where "Name LIKE 'Rest%'" waypoints3.shp waypoints.shp
>
Using Windows 7 cmd box, the % will get misinterpreted. But this works
for me:
ogr2ogr -where "name LIKE '2200%%'" test.shp source.shp
HTH,
André Joost
More information about the Qgis-user
mailing list