ogr_proc() performs various geoprocessing operations on vector layers (intersection, union, clip, etc). It provides an interface to the GDAL API methods for these operations (OGRLayer::Intersection(), etc). Inputs are given as objects of class GDALVector, which may have spatial and/or attribute filters applied. The output layer will be created if it does not exist, but output can also be appended to an existing layer, or written to an existing empty layer that has a custom schema defined. The ogr_proc() interface is basically a port of the ogr_layer_algebra utility in the GDAL Python bindings.
ogr_proc()
performs various geoprocessing operations on vector layers (intersection, union, clip, etc). It provides an interface to the GDAL API methods for these operations (OGRLayer::Intersection()
, etc). Inputs are given as objects of classGDALVector
, which may have spatial and/or attribute filters applied. The output layer will be created if it does not exist, but output can also be appended to an existing layer, or written to an existing empty layer that has a custom schema defined. Theogr_proc()
interface is basically a port of theogr_layer_algebra
utility in the GDAL Python bindings.