[Qgis-developer] Map swipe tool in QGIS

Sören Gebbert soerengebbert at googlemail.com
Fri Dec 5 09:57:16 PST 2014


Dear Nathan,
thank you very much for the link. I have started playing around a bit
with your code. In general it works fine. I removed the cause of an
exception by simply adding:

job.waitForFinished()

in updatebackmap(), since sometimes the job object was not valid in
the updatemap() function.

I have a question regarding the background color of the map overlay
(othermap). I tried to set the background to transparent, but my
attempt failed using this code:

alpha = QColor(255,255,255,0)
settings.setBackgroundColor(alpha)

So my question is:

Is my approach wrong or is transparency not support by QgsMapSettings?

I have attached you code including my tiny changes.

Best regards
Soeren

2014-10-06 15:03 GMT+02:00 Nathan Woodrow <madmanwoo at gmail.com>:
> Hey Soeren,
>
> The code that I was playing with is here.
> https://gist.github.com/NathanW2/dc1b665cbce627ce0350#file-sipe-py
>
> hopefully I will find some time soon to build the plugin correctly.
>
> - Nathan
>
> On Sun, Oct 5, 2014 at 8:37 PM, Sören Gebbert <soerengebbert at googlemail.com>
> wrote:
>>
>> Dear Nathan,
>> have you found some time to work on the map swipe QGIS plugin?
>> I would be happy to help developing the plugin or testing it, if you like?
>> Do you have a public source code repository, so that i can start to
>> study your code?
>>
>>
>> Best regards
>> Soeren
>>
>> 2014-07-31 11:28 GMT+02:00 Nathan Woodrow <madmanwoo at gmail.com>:
>> > Hey Soeren,
>> >
>> > Nothing yet.  I might have some time next week for the plugin.
>> >
>> > - Nathan
>> >
>> >
>> > On Thu, Jul 31, 2014 at 7:26 PM, Sören Gebbert
>> > <soerengebbert at googlemail.com> wrote:
>> >>
>> >> Hi Nathan,
>> >> that is exactly what i am looking for. Do you have any release date or
>> >> is the plugin already available?
>> >>
>> >> Many thanks and best regards
>> >> Soeren
>> >>
>> >> 2014-07-31 10:37 GMT+02:00 Nathan Woodrow <madmanwoo at gmail.com>:
>> >> > No something like this
>> >> >
>> >> > https://twitter.com/madmanwoo/status/478866023345426433
>> >> >
>> >> > On Jul 31, 2014 6:32 PM, "Paolo Cavallini" <cavallini at faunalia.it>
>> >> > wrote:
>> >> >>
>> >> >> On 2014-07-31 10:16, Sören Gebbert wrote:
>> >> >>>
>> >> >>> Dear list,
>> >> >>> i would like to know if it is possible to implement a plugin in
>> >> >>> QGIS
>> >> >>> to overlay two map layer for interactive comparison, like the Map
>> >> >>> Swipe tool in GRASS GIS[1,2].
>> >> >>>
>> >> >>> If it is possible, what would be the best approach to implement it?
>> >> >>
>> >> >>
>> >> >> Hi.
>> >> >> You mean this?
>> >> >> http://plugins.qgis.org/plugins/DockableMirrorMap/
>> >> >> All the best.
>> >> >> --
>> >> >> Paolo Cavallini - Faunalia
>> >> >> www.faunalia.eu
>> >> >> Full contact details at www.faunalia.eu/pc
>> >> >> Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario
>> >> >> _______________________________________________
>> >> >> Qgis-developer mailing list
>> >> >> Qgis-developer at lists.osgeo.org
>> >> >> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>> >> >
>> >> >
>> >> > _______________________________________________
>> >> > Qgis-developer mailing list
>> >> > Qgis-developer at lists.osgeo.org
>> >> > http://lists.osgeo.org/mailman/listinfo/qgis-developer
>> >
>> >
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sipe.py
Type: text/x-python
Size: 2192 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20141205/72b25d1a/attachment-0001.py>


More information about the Qgis-developer mailing list