<HTML dir=ltr><HEAD><TITLE>[Qgis-developer] problem with ogr2ogr</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16640" name=GENERATOR><BASE href=http://mailstore.rossoalice.alice.it/exchange/Alice000000001264700/Bozze/R:%20[Qgis-developer]%20problem%20with%20ogr2ogr.EML/1_text.htm></HEAD>
<BODY>
<DIV id=idOWAReplyText51190 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Hi PikO,</FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2>actually ogr2ogr (such as all the othe GDAL and proj utilities) are available in my build; however I didn't included them in the release: some weeeks I started a thread [1]about the *extra bins* to include in the qgis release, but I had no response. It was my first release, I tried to fix many issues about dependencies build,&nbsp;GRASS (that's my best knowledge in qgis)&nbsp;and python-plugins, but I don't know what is actually needed to let qgis be&nbsp;fully functional; I think the best thing should be to write down few lines (in the wiki) about the extra-binary needed in the windows binary release.</FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2>[1] <A href="http://lists.osgeo.org/pipermail/qgis-developer/2008-April/003652.html">http://lists.osgeo.org/pipermail/qgis-developer/2008-April/003652.html</A></FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2>Best regards,</FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2>Marco</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Da:</B> qgis-developer-bounces@lists.osgeo.org per conto di PikoBoZ<BR><B>Inviato:</B> mar 13/05/2008 11.10<BR><B>A:</B> qgis-developer@lists.osgeo.org<BR><B>Oggetto:</B> [Qgis-developer] problem with ogr2ogr<BR></FONT><BR></DIV>
<DIV><BR>
<P><FONT size=2>Hi list !<BR><BR>Got a problem with an ogr2ogr call from a python plugin.<BR>I developped this plugin on v 0.9.1 and then on v.0.9.1rc2. In those<BR>versions, there was the gdal/ogr .exe at Quantum GIS root directory, and the<BR>foolowing lin like this was working:<BR><BR>myogr2ogr = 'ogr2ogr -a_srs "' + str(myproj4) + '" -t_srs EPSG:4326<BR>-overwrite -f "KML" "' + str(mydestpath) + '" "'+ str(mysource) +'" '<BR>res=os.popen(myogr2ogr).readlines()<BR><BR>iN NEW RELEASE 0.10, the exe are no longer at QGIS root dir<BR>so, i wonder how i can call ogr2ogr utility from my plugin.<BR><BR>The idea is to allow user to use ogr2ogr without having to install FWTools<BR><BR>Another question, is it possible that my plugin on older releases was<BR>calling the fwtools ogr2ogr.exe that was in my windows path ? (and not the<BR>QGIS one ?)<BR><BR>Has anybody got an idea on how i could call ogr2ogr the simpler way from<BR>python, to make the plugin work on any QGIS install&nbsp; ?<BR><BR>Thank by advance<BR><BR>PikO<BR><BR><BR><BR><BR><BR><BR><BR>--<BR>View this message in context: <A href="http://www.nabble.com/problem-with-ogr2ogr-tp17204278p17204278.html">http://www.nabble.com/problem-with-ogr2ogr-tp17204278p17204278.html</A><BR>Sent from the qgis-developer mailing list archive at Nabble.com.<BR><BR>_______________________________________________<BR>Qgis-developer mailing list<BR>Qgis-developer@lists.osgeo.org<BR><A href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</A><BR></FONT></P></DIV></BODY></HTML>