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

2016-10-11 Thread Margherita Di Leo
On Fri, Oct 7, 2016 at 12:00 PM, Margherita Di Leo wrote: > Dear Even, all, > > On Thu, Oct 6, 2016 at 3:25 PM, Even Rouault > wrote: > >> Le jeudi 06 octobre 2016 14:47:05, Margherita Di Leo a écrit : >> > Dear Even, >> > >> > >> >> Try: >> >> export PYTHONPATH=$GDAL_INSTALL_DIR/lib/python2.7/s

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

2016-10-07 Thread Margherita Di Leo
Dear Even, all, On Thu, Oct 6, 2016 at 3:25 PM, Even Rouault wrote: > Le jeudi 06 octobre 2016 14:47:05, Margherita Di Leo a écrit : > > Dear Even, > > > > > > Try: > > export PYTHONPATH=$GDAL_INSTALL_DIR/lib/python2.7/site-packages > > ( adapt the path to the python version you use) > It didn'

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

2016-10-06 Thread Even Rouault
Le jeudi 06 octobre 2016 14:47:05, Margherita Di Leo a écrit : > Dear Even, > > On Wed, Oct 5, 2016 at 8:53 PM, Even Rouault > > wrote: > > Tiny Python script with GDAL 2.1 : > > > > from osgeo import gdal > > src_ds = gdal.OpenEx('your.shp') > > lyr = src_ds.GetLayer(0) > > minx, maxx, miny, m

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

2016-10-06 Thread Margherita Di Leo
Dear Even, On Wed, Oct 5, 2016 at 8:53 PM, Even Rouault wrote: > > > Tiny Python script with GDAL 2.1 : > > from osgeo import gdal > src_ds = gdal.OpenEx('your.shp') > lyr = src_ds.GetLayer(0) > minx, maxx, miny, maxy = lyr.GetExtent() > # Note the different order of bounds between previous and

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

2016-10-05 Thread Even Rouault
Le mercredi 05 octobre 2016 11:29:43, Margherita Di Leo a écrit : > 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

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

2016-10-05 Thread David J. Bakeman
On 10/05/2016 02:29 AM, Margherita Di Leo wrote: 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, s

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

2016-10-05 Thread Antonio Falciano
Il 05/10/2016 11:29, Margherita Di Leo ha scritto: 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 = xm

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

2016-10-05 Thread Margherita Di Leo
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 cal