Re: [gdal-dev] clipping multiple shapefiles from a set of clipping polygons
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 ea...@co.lincoln.or.us 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 gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] clipping multiple shapefiles from a set of clipping polygons
I see, is there a scripting workaround using 1.9? On Mon, Oct 8, 2012 at 9:14 PM, Etienne Tourigny etourigny@gmail.com wrote: generally speaking new features do not go into current stable version (1.9), they will be incorporated into next stable version (probably 2.0). Etienne On Mon, Oct 8, 2012 at 9:57 AM, Ari Jolma ari.jo...@gmail.com wrote: On 10/08/2012 03:21 PM, maning sambale wrote: Thanks! Is this implemented already in the stable build? It's currently only in the trunk version. Ari Maning Sambale (mobile) On Oct 8, 2012 7:28 PM, Ari Jolma ari.jo...@gmail.com wrote: On 10/08/2012 02:13 PM, maning sambale wrote: HI, I have a shapefile polygon that contains administrative boundaries and a several shapefile of various features. I want to create separate shapefiles of each layer feature for each administrative boundaries in the clipping layer. For example, AdminPoly1 - AdminPoly1_point.shp - AdminPoly1_line.shp - AdminPoly1_poly.shp AdminPoly2 - AdminPoly1_point.shp - AdminPoly1_line.shp - AdminPoly1_poly.shp and so on. Any advice? Maning, The new layer methods may be what you're looking for: http://trac.osgeo.org/gdal/wiki/LayerAlgebra Ari ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev -- 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 gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] clipping multiple shapefiles from a set of clipping polygons
On Tue, Oct 9, 2012 at 3:41 AM, maning sambale emmanuel.samb...@gmail.com wrote: I see, is there a scripting workaround using 1.9? ogr2ogr has various -clip. options. It looks like you could specify using a particular feature in the AdminPoly to do this (presumably GEOS support is required?). ogr2ogr -f ESRI shapefile output.shp input.shp -clipsrc AdminPoly.shp -clipsrclayer AdminPoly -clipsrcsql SELECT * FROM AdminPoly WHERE AttributeName_in_AdminPoly='Some_value' If you don't have other requirements for the stable release, there are lots of binaries including nightly builds for some platforms, http://trac.osgeo.org/gdal/wiki/DownloadingGdalBinaries HTH, Eli On Mon, Oct 8, 2012 at 9:14 PM, Etienne Tourigny etourigny@gmail.com wrote: generally speaking new features do not go into current stable version (1.9), they will be incorporated into next stable version (probably 2.0). Etienne On Mon, Oct 8, 2012 at 9:57 AM, Ari Jolma ari.jo...@gmail.com wrote: On 10/08/2012 03:21 PM, maning sambale wrote: Thanks! Is this implemented already in the stable build? It's currently only in the trunk version. Ari Maning Sambale (mobile) On Oct 8, 2012 7:28 PM, Ari Jolma ari.jo...@gmail.com wrote: On 10/08/2012 02:13 PM, maning sambale wrote: HI, I have a shapefile polygon that contains administrative boundaries and a several shapefile of various features. I want to create separate shapefiles of each layer feature for each administrative boundaries in the clipping layer. For example, AdminPoly1 - AdminPoly1_point.shp - AdminPoly1_line.shp - AdminPoly1_poly.shp AdminPoly2 - AdminPoly1_point.shp - AdminPoly1_line.shp - AdminPoly1_poly.shp and so on. Any advice? Maning, The new layer methods may be what you're looking for: http://trac.osgeo.org/gdal/wiki/LayerAlgebra Ari ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev -- 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 gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
[gdal-dev] clipping multiple shapefiles from a set of clipping polygons
HI, I have a shapefile polygon that contains administrative boundaries and a several shapefile of various features. I want to create separate shapefiles of each layer feature for each administrative boundaries in the clipping layer. For example, AdminPoly1 - AdminPoly1_point.shp - AdminPoly1_line.shp - AdminPoly1_poly.shp AdminPoly2 - AdminPoly1_point.shp - AdminPoly1_line.shp - AdminPoly1_poly.shp and so on. Any advice? -- 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 gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] clipping multiple shapefiles from a set of clipping polygons
On 10/08/2012 02:13 PM, maning sambale wrote: HI, I have a shapefile polygon that contains administrative boundaries and a several shapefile of various features. I want to create separate shapefiles of each layer feature for each administrative boundaries in the clipping layer. For example, AdminPoly1 - AdminPoly1_point.shp - AdminPoly1_line.shp - AdminPoly1_poly.shp AdminPoly2 - AdminPoly1_point.shp - AdminPoly1_line.shp - AdminPoly1_poly.shp and so on. Any advice? Maning, The new layer methods may be what you're looking for: http://trac.osgeo.org/gdal/wiki/LayerAlgebra Ari ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] clipping multiple shapefiles from a set of clipping polygons
Thanks! Is this implemented already in the stable build? Maning Sambale (mobile) On Oct 8, 2012 7:28 PM, Ari Jolma ari.jo...@gmail.com wrote: On 10/08/2012 02:13 PM, maning sambale wrote: HI, I have a shapefile polygon that contains administrative boundaries and a several shapefile of various features. I want to create separate shapefiles of each layer feature for each administrative boundaries in the clipping layer. For example, AdminPoly1 - AdminPoly1_point.shp - AdminPoly1_line.shp - AdminPoly1_poly.shp AdminPoly2 - AdminPoly1_point.shp - AdminPoly1_line.shp - AdminPoly1_poly.shp and so on. Any advice? Maning, The new layer methods may be what you're looking for: http://trac.osgeo.org/gdal/**wiki/LayerAlgebrahttp://trac.osgeo.org/gdal/wiki/LayerAlgebra Ari __**_ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/**mailman/listinfo/gdal-devhttp://lists.osgeo.org/mailman/listinfo/gdal-dev ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] clipping multiple shapefiles from a set of clipping polygons
On 10/08/2012 03:21 PM, maning sambale wrote: Thanks! Is this implemented already in the stable build? It's currently only in the trunk version. Ari Maning Sambale (mobile) On Oct 8, 2012 7:28 PM, Ari Jolma ari.jo...@gmail.com mailto:ari.jo...@gmail.com wrote: On 10/08/2012 02:13 PM, maning sambale wrote: HI, I have a shapefile polygon that contains administrative boundaries and a several shapefile of various features. I want to create separate shapefiles of each layer feature for each administrative boundaries in the clipping layer. For example, AdminPoly1 - AdminPoly1_point.shp - AdminPoly1_line.shp - AdminPoly1_poly.shp AdminPoly2 - AdminPoly1_point.shp - AdminPoly1_line.shp - AdminPoly1_poly.shp and so on. Any advice? Maning, The new layer methods may be what you're looking for: http://trac.osgeo.org/gdal/wiki/LayerAlgebra Ari ___ gdal-dev mailing list gdal-dev@lists.osgeo.org mailto:gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] clipping multiple shapefiles from a set of clipping polygons
generally speaking new features do not go into current stable version (1.9), they will be incorporated into next stable version (probably 2.0). Etienne On Mon, Oct 8, 2012 at 9:57 AM, Ari Jolma ari.jo...@gmail.com wrote: On 10/08/2012 03:21 PM, maning sambale wrote: Thanks! Is this implemented already in the stable build? It's currently only in the trunk version. Ari Maning Sambale (mobile) On Oct 8, 2012 7:28 PM, Ari Jolma ari.jo...@gmail.com wrote: On 10/08/2012 02:13 PM, maning sambale wrote: HI, I have a shapefile polygon that contains administrative boundaries and a several shapefile of various features. I want to create separate shapefiles of each layer feature for each administrative boundaries in the clipping layer. For example, AdminPoly1 - AdminPoly1_point.shp - AdminPoly1_line.shp - AdminPoly1_poly.shp AdminPoly2 - AdminPoly1_point.shp - AdminPoly1_line.shp - AdminPoly1_poly.shp and so on. Any advice? Maning, The new layer methods may be what you're looking for: http://trac.osgeo.org/gdal/wiki/LayerAlgebra Ari ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev