Dear Eli, Thanks for this. I tried your suggestion:
ogr2ogr -overwrite -f 'ESRI shapefile' clipped_roads.shp roads.shp -clipsrc province.shp -clipsrclayer province -clipsrcsql 'SELECT * FROM province WHERE provname='\''SomeName'\''' ERROR 6: GEOS support not enabled. ERROR 6: GEOS support not enabled. ERROR 6: GEOS support not enabled ... More than 1000 errors or warnings have been reported. No more will be reported from now I am using GDAL 1.9 Complete frameworks from KyngChaos which has includes GEOS 3.3.5-1 On Wed, Oct 10, 2012 at 12:14 AM, Eli Adam <[email protected]> wrote: > ogr2ogr -f "ESRI shapefile" output.shp input.shp -clipsrc > AdminPoly.shp -clipsrclayer AdminPoly -clipsrcsql "SELECT * FROM > AdminPoly WHERE AttributeName_in_AdminPoly='Some_value'" -- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------ _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
