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<[email protected]> 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
mess up all my dependencies and so on...
Is there an alternative?
Alessandro,
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
call(['ogr2ogr'])
best regards
P
--
Alessandro Candini
MEEO S.r.l.
Via Saragat 9
I-44122 Ferrara, Italy
Tel: +39 0532 1861501
Fax: +39 0532 1861637
http://www.meeo.it
========================================
"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."
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev