<div><div>Hi Paolo,</div></div><div><br></div><div>I see what happened. You were using the configuration files included in the distribution, and it was trying to write to a directory that only exists on my computer (because the full path names are used in the config files - I haven't figured out how to do this cross-platform with relative paths). It checks to see if there is a value in there, but it didn't check to see if the directory existed. Fixed that. I also made it check all input files to make sure they exist as well. </div>
<div><br></div><div>To make the plugin work, you are going to have to enter a new filename that can be written in your computer. I should probably leave the results file out of the configuration file all together (but it saved me time in development).</div>
<div><br></div><div>There is still a minor bug where the interface does not reset the factor dropdown menu to the number of correct number of loaded factors when reading a Boolean configuration file (the others work properly). This should work, but it doesn't seem to be causing a problem, although it is irritating. I will try to fix this.</div>
<div><br></div><div>Do I need to increment the version number every time I upload a new package, or is the date enough to push the new code out to users?</div><div><br></div>Thanks for the feedback!<br>
JP<br><br><div class="gmail_quote">On Sat, Jan 8, 2011 at 8:40 AM, Paolo Cavallini <span dir="ltr"><<a href="mailto:cavallini@faunalia.it">cavallini@faunalia.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Il giorno ven, 07/01/2011 alle 17.43 +0100, JP Glutting ha scritto:<br>
<div><div></div><div class="h5">> Hello All,<br>
><br>
><br>
> I just wanted to let you know that I have uploaded my tool, MCELite,<br>
> to the PyQGIS repository. I had to try a few times to get it uploaded,<br>
> but it seems to work when downloaded from the repository.<br>
><br>
><br>
> MCELite takes raster files representing decision criteria and analyzes<br>
> them using three types of multi-criteria evaluation (MCE): Boolean<br>
> overlay, weighted linear combination (WLC) or ordered weighted<br>
> averaging (OWA). It also does sensitivity analysis of the results of<br>
> an analysis. It hasn't been extensively tested, so it is marked as<br>
> experimental, but it does run on Windows, OS X and Linux. The package<br>
> includes documentation and soem sample data data sets and<br>
> configuration files (it reads configuration files in addition to<br>
> having interactive input).<br>
><br>
><br>
> Because I wrote it for a study project, I didn't use any existing code<br>
> (it turns out it wouldn't have been a problem, but I wanted to be<br>
> safe) and I rolled my own Raster object to do the overlay instead of<br>
> using rastercalc or something like that. I can still rewrite the back<br>
> end, but it would be a lot of work.<br>
><br>
><br>
> The big thing missing from the tool is any kind of fuzzy set<br>
> membership analysis. I couldn't find any plugins for QGIS, so you need<br>
> to create the input rasters with another tool, if you want to do any<br>
> kind of interesting analysis.<br>
><br>
><br>
> Anyway, feel free to try it out, and let me know when it breaks. I am<br>
> sure it still has tons of bugs.<br>
<br>
</div></div>Tried, got an error:<br>
=======================================================================<br>
Traceback (most recent call last):<br>
File "/home/paolo/.qgis/python/plugins/mcelite/MCELiteDialog.py", line<br>
755, in accept<br>
self.runAnalysis(snd)<br>
File "/home/paolo/.qgis/python/plugins/mcelite/MCELiteDialog.py", line<br>
780, in runAnalysis<br>
self.qm.runQuery(self.progress)<br>
File<br>
"/home/paolo/.qgis/python/plugins/mcelite/mcelite/QueryManager.py", line<br>
700, in runQuery<br>
self.writeMCEConfig()<br>
File<br>
"/home/paolo/.qgis/python/plugins/mcelite/mcelite/QueryManager.py", line<br>
572, in writeMCEConfig<br>
fHandle = open(filename, 'w')<br>
IOError: [Errno 2] No such file or directory:<br>
'/Users/jpg/pyGIS/qgismcelite/examples/bool_osx_example_configuration_Bool.txt'<br>
<br>
Versione Python:<br>
2.6.6 (r266:84292, Dec 26 2010, 22:48:11)<br>
[GCC 4.4.5]<br>
<br>
<br>
Versione di QGIS:<br>
1.7.0-Trunk Trunk, 14993M<br>
=======================================================================<br>
<br>
Thanks for including the documentation. It would be useful if you could<br>
add an help/about button to read it directly form the plugin menu,<br>
better if in html.<br>
All the best.<br>
<font color="#888888">--<br>
<a href="http://www.faunalia.it/pc" target="_blank">http://www.faunalia.it/pc</a><br>
<br>
</font></blockquote></div><br>