[Qgis-developer] Usefull methods
Barry Rowlingson
b.rowlingson at lancaster.ac.uk
Wed Dec 10 15:10:16 EST 2008
2008/12/10 Martin Dobias <wonder.sk at gmail.com>:
> It would be much better to put these utility functions/classes
> directly to QGIS libs and wrapped in PyQGIS. There are several reasons
> for this:
> 1. no need to install/update more plugins (and btw. with current
> implementation it's not possible to interact between plugins)
Really? I'm pretty sure I have a plugin that imports from another
plugin... It's just a module.
> 2. also QGIS C++ code or 3rd party C++ devs could use this functionality
The problem here is I reckon there are 10 python developers for every
one C++ developer. These things will get done in Python (exhibit A:
OP), but not done in C++.
> Barry is right, there might be more layers with the same name. You can
> also simply change layer's name with QgsMapLayer::setLayerName
> function. But another unique way of identifying layers (apart from
> object itself) is by layer ID - returned by QgsMapLayer::getLayerID()
> - these text strings serve as identifiers also in map layer registry.
Woo! So I was wrong as well :)
> As I've stated above, I would be happier if such common functionality
> would be in libs...
Yes it would be nicer, and making you happier is a good thing. But do
you have time to do it?
> May I suggest you to put ideas for new functionality e.g. to wiki?
Along with all the other suggestions I've had? I'll see if I have time!
Thanks
Barry
More information about the Qgis-developer
mailing list