[gdal-dev] ogr2ogr in python
candini at meeo.it
Wed Feb 8 05:48:50 EST 2012
Yeah Paolo, your solution is probably the easiest way to reach my goal,
I did't thought at it...
> On Wed, Feb 8, 2012 at 11:38 AM, Alessandro Candini<candini at meeo.it> wrote:
>> You are right: I have put ogr2ogr.py file inside /usr/bin and...
>> user at 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?
> maybe I am misunderstanding here, but if you need to run the ogr2ogr
> command, why don't you run the version included in your package as an
> external command from Python?
> You may use the subprocess library for doing this, like:
>>>> from subprocess import call
> best regards
Via Saragat 9
I-44122 Ferrara, Italy
Tel: +39 0532 1861501
Fax: +39 0532 1861637
"ATTENZIONE:le informazioni contenute in questo messaggio sono
da considerarsi confidenziali ed il loro utilizzo è riservato unicamente
al destinatario sopra indicato. Chi dovesse ricevere questo messaggio
per errore è tenuto ad informare il mittente ed a rimuoverlo
definitivamente da ogni supporto elettronico o cartaceo."
"WARNING:This message contains confidential and/or proprietary
information which may be subject to privilege or immunity and which
is intended for use of its addressee only. Should you receive this
message in error, you are kindly requested to inform the sender and
to definitively remove it from any paper or electronic format."
More information about the gdal-dev