[Qgis-developer] MCELite: An experimental tool for multi-criteria evaluation (MCE)

JP Glutting jpglutting at gmail.com
Sat Jan 8 09:47:58 EST 2011

Hi Paolo,

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.

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

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.

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?

Thanks for the feedback!

On Sat, Jan 8, 2011 at 8:40 AM, Paolo Cavallini <cavallini at faunalia.it>wrote:

> Il giorno ven, 07/01/2011 alle 17.43 +0100, JP Glutting ha scritto:
> > Hello All,
> >
> >
> > I just wanted to let you know that I have uploaded my tool, MCELite,
> > to the PyQGIS repository. I had to try a few times to get it uploaded,
> > but it seems to work when downloaded from the repository.
> >
> >
> > MCELite takes raster files representing decision criteria and analyzes
> > them using three types of multi-criteria evaluation (MCE): Boolean
> > overlay, weighted linear combination (WLC) or ordered weighted
> > averaging (OWA). It also does sensitivity analysis of the results of
> > an analysis. It hasn't been extensively tested, so it is marked as
> > experimental, but it does run on Windows, OS X and Linux. The package
> > includes documentation and soem sample data data sets and
> > configuration files (it reads configuration files in addition to
> > having interactive input).
> >
> >
> > Because I wrote it for a study project, I didn't use any existing code
> > (it turns out it wouldn't have been a problem, but I wanted to be
> > safe) and I rolled my own Raster object to do the overlay instead of
> > using rastercalc or something like that. I can still rewrite the back
> > end, but it would be a lot of work.
> >
> >
> > The big thing missing from the tool is any kind of fuzzy set
> > membership analysis. I couldn't find any plugins for QGIS, so you need
> > to create the input rasters with another tool, if you want to do any
> > kind of interesting analysis.
> >
> >
> > Anyway, feel free to try it out, and let me know when it breaks. I am
> > sure it still has tons of bugs.
> Tried, got an error:
> =======================================================================
> Traceback (most recent call last):
>  File "/home/paolo/.qgis/python/plugins/mcelite/MCELiteDialog.py", line
> 755, in accept
>    self.runAnalysis(snd)
>  File "/home/paolo/.qgis/python/plugins/mcelite/MCELiteDialog.py", line
> 780, in runAnalysis
>    self.qm.runQuery(self.progress)
>  File
> "/home/paolo/.qgis/python/plugins/mcelite/mcelite/QueryManager.py", line
> 700, in runQuery
>    self.writeMCEConfig()
>  File
> "/home/paolo/.qgis/python/plugins/mcelite/mcelite/QueryManager.py", line
> 572, in writeMCEConfig
>    fHandle = open(filename, 'w')
> IOError: [Errno 2] No such file or directory:
> '/Users/jpg/pyGIS/qgismcelite/examples/bool_osx_example_configuration_Bool.txt'
> Versione Python:
> 2.6.6 (r266:84292, Dec 26 2010, 22:48:11)
> [GCC 4.4.5]
> Versione di QGIS:
> 1.7.0-Trunk Trunk, 14993M
> =======================================================================
> Thanks for including the documentation. It would be useful if you could
> add an help/about button to read it directly form the plugin menu,
> better if in html.
> All the best.
> --
> http://www.faunalia.it/pc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20110108/3784b2a2/attachment.html

More information about the Qgis-developer mailing list