Re: [gdal-dev] ogr2ogr in python

2012-02-08 Thread Alessandro Candini
Yeah Paolo, your solution is probably the easiest way to reach my goal, I did't thought at it... Thanks! On Wed, Feb 8, 2012 at 11:38 AM, Alessandro Candini wrote: You are right: I have put ogr2ogr.py file inside /usr/bin and... user@office ~ $ ogr2ogr.py ERROR: Python bindings of GDAL 1.8.

Re: [gdal-dev] ogr2ogr in python

2012-02-08 Thread Paolo Corti
On Wed, Feb 8, 2012 at 11:38 AM, Alessandro Candini wrote: > You are right: I have put ogr2ogr.py file inside /usr/bin and... > > user@office ~ $ ogr2ogr.py > ERROR: Python bindings of GDAL 1.8.0 or later required > > The problem is that I cannot update my GDAL version at the moment, it will > mes

Re: [gdal-dev] ogr2ogr in python

2012-02-08 Thread Alessandro Candini
You are right: I have put ogr2ogr.py file inside /usr/bin and... user@office ~ $ ogr2ogr.py ERROR: Python bindings of GDAL 1.8.0 or later required The problem is that I cannot update my GDAL version at the moment, it will mess up all my dependencies and so on... Is there an alternative? Mayb

Re: [gdal-dev] ogr2ogr in python

2012-02-08 Thread Even Rouault
Selon Alessandro Candini : > Thanks. > > But is it already included in GDAL distribution? > > I have version 1.7.2 on my system and I did not found this file in the > whole system... It is relatively new (perhaps 1.8. don't remember). And anyways it is in the sample category that is generally not

Re: [gdal-dev] ogr2ogr in python

2012-02-08 Thread Alessandro Candini
Thanks. But is it already included in GDAL distribution? I have version 1.7.2 on my system and I did not found this file in the whole system... Maybe I can include that file into my python shared lib direcory such as /usr/share/pyshared/ Does it exist an analogue tool in python? Yes, see

Re: [gdal-dev] ogr2ogr in python

2012-02-08 Thread Even Rouault
> Does it exist an analogue tool in python? Yes, see http://svn.osgeo.org/gdal/trunk/gdal/swig/python/samples/ogr2ogr.py > Or should I open the file and launch several manipulation functions in > order to achieve the same result? > > Thanks in advance. > _

[gdal-dev] ogr2ogr in python

2012-02-08 Thread Alessandro Candini
Hi list. I have to perform the following command: ogr2ogr -t_srs EPSG:900913 output.shp input.shp but inside a python script. So I have included the OGR library with import ogr but I do not know what are the commands in python that substitute the ogr2ogr tool. Does it exist an analogue t