[gdal-dev] Need suggestion on clipping vectors in batch

Margherita Di Leo diregola at gmail.com
Wed Oct 5 02:29:43 PDT 2016


Hi,

I need a suggestion on the use of ogr2ogr for clipping vector files
(points) in batch. For all them I need to reduce the spatial extent of a
certain quantity DX, DY, so it would be

ymax = ymax_current - DY
ymin = ymin_current + DY
xmax = xmax_current - DX
xmin = xmin_current + DX

I could calculate ymax, ymin, xmax, xmin if I could read the current values
in a FAST way. Or perhaps is there an option to put directly DX and DY in
ogr2ogr which I didn't spot?

Any hints appreciated
Thanks

-- 
Margherita Di Leo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20161005/bb44affa/attachment.html>


More information about the gdal-dev mailing list