<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV><DIV>On Jan 3, 2007, at 8:24 AM, Ivan Lucena wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV>William,</DIV><DIV><BR></DIV><DIV>I suggest placing GDALRegister_IDRISI first in the GDALAllRegister() and</DIV><DIV>I think that will be safe because this format is file-extension</DIV><DIV>dependent, and checks for it:</DIV><DIV><BR class="khtml-block-placeholder"></DIV> </BLOCKQUOTE>Makes sense, but won't work in my situation. To make my Xcode project more configurable for formats that require optional external libraries (on OS X), I do these formats as plugins. I know Frank has told me that this is an unsupported use of plugins, and partly for this very reason - format loading order.<BR></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>For a quick immediate fix for the bug, this sounds like a reasonable workaround. I can adjust my Xcode project somehow. For a 'normal' configure-make-install build on OSX it wouldn't be a problem.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Frank, when I was thinking about this, and my excessive use of plugins, I wondered if GDALAllRegister() could be changed a bit: do some of the plugin checking and loading there directly instead of at the start in AutoLoadDrivers(). Then, whether it's a plugin or builtin, formats could still be loaded in a particular order. Something like:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>#ifdef FRMT_netcdf</DIV><DIV> GDALRegister_GMT();</DIV><DIV> GDALRegister_netCDF();</DIV><DIV>#else</DIV><DIV> // check for existence of plugin version of it</DIV><DIV> // load it if found</DIV><DIV>#endif</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Just a thought.</DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>-----</DIV><DIV>William Kyngesburye <<A href="mailto:kyngchaos@kyngchaos.com">kyngchaos@kyngchaos.com</A>></DIV><DIV><A href="http://www.kyngchaos.com">http://www.kyngchaos.com</A>/</DIV><DIV><BR></DIV><DIV>[Trillian] What are you supposed to do WITH a maniacally depressed robot?</DIV><DIV><BR></DIV><DIV>[Marvin] You think you have problems? What are you supposed to do if you ARE a maniacally depressed robot? No, don't try and answer, I'm 50,000 times more intelligent than you and even I don't know the answer...</DIV><DIV><BR></DIV><DIV>- HitchHiker's Guide to the Galaxy</DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR></BODY></HTML>