<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 10/05/2016 02:29 AM, Margherita Di
Leo wrote:<br>
</div>
<blockquote
cite="mid:CABa=8QokmFGtic+4Wwh3WMhYK=tKW4zpTuLcoURkdD1i8MewQQ@mail.gmail.com"
type="cite">
<div dir="ltr">Hi,
<div><br>
</div>
<div>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</div>
<div><br>
</div>
<div>ymax = ymax_current - DY</div>
<div>ymin = ymin_current + DY</div>
<div>xmax = xmax_current - DX</div>
<div>xmin = xmin_current + DX</div>
<div><br>
</div>
<div>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?</div>
</div>
</blockquote>
You could use ogrinfo to get the extents.<br>
<blockquote
cite="mid:CABa=8QokmFGtic+4Wwh3WMhYK=tKW4zpTuLcoURkdD1i8MewQQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><br>
</div>
<div>Any hints appreciated </div>
<div>Thanks<br clear="all">
<div><br>
</div>
-- <br>
<div class="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div><font color="#666666">Margherita Di Leo</font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/gdal-dev">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a></pre>
</blockquote>
<br>
</body>
</html>