[gdal-dev] ogr2ogr in python

Alessandro Candini candini at meeo.it
Wed Feb 8 05:10:32 EST 2012

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 tool in python?
Or should I open the file and launch several manipulation functions in 
order to achieve the same result?

Thanks in advance.

More information about the gdal-dev mailing list