[gdal-dev] Can I manually LoadLibrary(gdal16.dll) instead of putting GDAL's bin dir in the PATH?

Frank Warmerdam warmerdam at pobox.com
Tue Dec 23 09:46:18 EST 2008


Jason Roberts wrote:
> So, in essence, I am wondering: to have the GDAL and OGR classes work 
> properly, can I just load gdal16.dll explicitly before trying the Python 
> bindings, rather than adding the GDAL bin directory to the PATH?
> 
>  
> 
>  From testing, it looks like it works, but I wanted to check with you to 
> be sure. I know this is kludgy but I am sadly accustomed to developing 
> such workarounds when dealing with ArcGIS...

Jason,

I do not know of any reason the LoadLibrary() approach would not work, and
based on your experiments it seems to be.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the gdal-dev mailing list