[Qgis-developer] Copy and paste layers: sort of...

Gabriele Garuglieri garu57 at gmail.com
Wed Sep 28 10:07:00 EDT 2011


Hi all,
i wrote a small patch for importproject plugin (
http://code.google.com/p/bsrplugins/issues/detail?id=31) that unexpectedly
has the nice side effect of working like a copy and paste of layers.
That is you can import layers from the very same project you are working
with, with and effect equivalent to copying and pasting them.

At the moment i used it only with Postgis data source, that's what i'm
working with, and it didn't show yet any adverse effect, but i'd like that
someone more knowledgeable than me could examine it, since i'm going to need
it a lot for my projects. I don't know how it would behave with different
layer types.

If you find any problem please don't shot on the pianist. I had never seen
before neither python nor Qt nor Qgis api so i had absolutely no clue about
where i was going to end while writing it.
It was a trial and error process while trying to squeeze the needed info
from Qt and Qgis api doc as fast as possible, and by one of those incredible
chances for which you would need an infinite number of monkeys in front of
an infinite number of keyboards, with just one monkey it succeeded (at least
for my own scope).

Regards,
Gabriele
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20110928/96a59ad8/attachment.html


More information about the Qgis-developer mailing list