Hi all, <br><br><div class="gmail_quote"><div><div class="h5">On Sun, May 16, 2010 at 10:59 PM, Paolo Cavallini <span dir="ltr"><<a href="mailto:cavallini@faunalia.it" target="_blank">cavallini@faunalia.it</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
On Sun, 16 May 2010 15:07:40 -0500, William Kyngesburye<br>
<div><div><<a href="mailto:woklist@kyngchaos.com" target="_blank">woklist@kyngchaos.com</a>> wrote:<br>
> On May 16, 2010, at 2:41 PM, Paolo Cavallini wrote:<br>
><br>
>><br>
>> On Sun, 16 May 2010 13:38:04 -0500, William Kyngesburye<br>
>> <<a href="mailto:woklist@kyngchaos.com" target="_blank">woklist@kyngchaos.com</a>> wrote:<br>
>>> I didn't request it directly (just a general request of plugin<br>
>> developers),<br>
>>> but did you add a configuration option to set the path to the GDAL<br>
>>> programs? Applications (ie QGIS) on OS X don't get anything from the<br>
>> shell<br>
>>> environment, like the PATH, and so won't find the GDAL programs in the<br>
>> GDAL<br>
>>> framework (and on older systems for those that compile a non-framework<br>
>>> GDAL, /usr/local/bin is not in the default PATH).<br>
>>><br>
>>> There is a hidden mechanism to add environment variables to<br>
>>> applications,<br>
>>> but most OSX users won't know about it, and there is no built-in way to<br>
>>> configure it (just a 3rd-party pref pane).<br>
>><br>
>> Hi William.<br>
>> I recently realized this, during one of our courses. I would be happy of<br>
>> fixing this, but I haven't a clue on how to do so. If you can send us a<br>
>> patch (or suggest us a method), we'll be glad of applying it.<br>
>> All the best.<br>
><br>
> Just a general idea on the programming side. I'd say, by default, do<br>
> nothing (as it is). For the user to set it, use a folder selection<br>
dialog<br>
> to select the folder. Add the var (PATH) + value to the environment<br>
(make<br>
> sure to add to PATH if already set). I don't know if it's something that<br>
> you would want to set once when Qgis starts (could interfere with other<br>
> plugins in a complex environment?) or each time one of the plugin<br>
commands<br>
> are used (and unset when done).<br>
><br>
> Can plugins have preferences that can be configured in the Qgis<br>
preferences<br>
> dialog or do they have to roll their own (you'd have to figure that out<br>
> then)?<br>
<br>
</div></div>Do not know: Giuseppe, any idea?<br></blockquote></div></div><div>I'm not sure I understood. <br>
<br>GdalTools is not the only tool which uses GDAL libs. So I think it could <br>
be a more general problem. <br>
In this case it's QGis app that have to resolve this issue.<br>
<br>
Cheers. <br></div></div><br>-- <br>Giuseppe Sucameli<br>