[GRASS-user] new wxGUI feature: Map Swipe

Hi Anna

This looks like a very useful tool, and it works perfectly (running grass 7 on Ubuntu 12.04), thanks!

If I may make a feature request. Would it be very difficult to implement an option where rather then splitting the area between the two maps, the same area is shown for both maps (i.e., mirrored maps). In that option, moving one map would move the other map too. This makes it easier to see changes between two maps in detail. In case my explanation isn’t clear, a nice example is the MIrrorMap plug-in for QGIS.

Cheers,

Paulo

Hi,

On Fri, Aug 31, 2012 at 11:07 AM, Paulo van Breugel
<p.vanbreugel@gmail.com> wrote:

Hi Anna

This looks like a very useful tool, and it works perfectly (running grass 7
on Ubuntu 12.04), thanks!

If I may make a feature request. Would it be very difficult to implement an
option where rather then splitting the area between the two maps, the same
area is shown for both maps (i.e., mirrored maps). In that option, moving
one map would move the other map too. This makes it easier to see changes
between two maps in detail. In case my explanation isn't clear, a nice
example is the MIrrorMap plug-in for QGIS.

Seems clear to me. I added it to map swipe wiki page, you can edit it.
I remember someone on mailing list was asking about similar
functionality - synchronize display region extent of more Map Displays
- could it be what you mean?

Thanks for your interest,
Anna

Cheers,

Paulo

On 31/08/12 11:27, Anna Kratochvílová wrote:

Hi,

On Fri, Aug 31, 2012 at 11:07 AM, Paulo van Breugel
<p.vanbreugel@gmail.com> wrote:

Hi Anna

This looks like a very useful tool, and it works perfectly (running grass 7
on Ubuntu 12.04), thanks!

If I may make a feature request. Would it be very difficult to implement an
option where rather then splitting the area between the two maps, the same
area is shown for both maps (i.e., mirrored maps). In that option, moving
one map would move the other map too. This makes it easier to see changes
between two maps in detail. In case my explanation isn't clear, a nice
example is the MIrrorMap plug-in for QGIS.

Seems clear to me. I added it to map swipe wiki page, you can edit it.
I remember someone on mailing list was asking about similar
functionality - synchronize display region extent of more Map Displays
- could it be what you mean?

http://trac.osgeo.org/grass/ticket/1669

I'm not sure that this should be part of the swipe tool. I'd rather see this as a general feature of Map Displays, i.e. the option to linked any number of Map Displays so that when you pan / zoom in one the other(s) adjust automagically. Then again, I'm only the one asking, not doing ... :wink:

Moritz

Synchronized display sums it up nicely :slight_smile:

On 08/31/2012 11:27 AM, Anna Kratochvílová wrote:

Hi,

On Fri, Aug 31, 2012 at 11:07 AM, Paulo van Breugel
<p.vanbreugel@gmail.com> wrote:

Hi Anna

This looks like a very useful tool, and it works perfectly (running grass 7
on Ubuntu 12.04), thanks!

If I may make a feature request. Would it be very difficult to implement an
option where rather then splitting the area between the two maps, the same
area is shown for both maps (i.e., mirrored maps). In that option, moving
one map would move the other map too. This makes it easier to see changes
between two maps in detail. In case my explanation isn't clear, a nice
example is the MIrrorMap plug-in for QGIS.

Seems clear to me. I added it to map swipe wiki page, you can edit it.
I remember someone on mailing list was asking about similar
functionality - synchronize display region extent of more Map Displays
- could it be what you mean?

Thanks for your interest,
Anna

Cheers,

Paulo

I am also just asking... contributing code is unfortunately way out of my league.

I am somewhat indifferent to whether synchronized display of multiple maps would be a general feature of map display or part of the swipe tool. I can imagine that it would be easier to make it initially part of a separate tool, but I am no developer so I could be completely wrong.

Cheers

Paulo

On 08/31/2012 11:56 AM, Moritz Lennert wrote:

On 31/08/12 11:27, Anna Kratochvílová wrote:

Hi,

On Fri, Aug 31, 2012 at 11:07 AM, Paulo van Breugel
<p.vanbreugel@gmail.com> wrote:

Hi Anna

This looks like a very useful tool, and it works perfectly (running grass 7
on Ubuntu 12.04), thanks!

If I may make a feature request. Would it be very difficult to implement an
option where rather then splitting the area between the two maps, the same
area is shown for both maps (i.e., mirrored maps). In that option, moving
one map would move the other map too. This makes it easier to see changes
between two maps in detail. In case my explanation isn't clear, a nice
example is the MIrrorMap plug-in for QGIS.

Seems clear to me. I added it to map swipe wiki page, you can edit it.
I remember someone on mailing list was asking about similar
functionality - synchronize display region extent of more Map Displays
- could it be what you mean?

http://trac.osgeo.org/grass/ticket/1669

I'm not sure that this should be part of the swipe tool. I'd rather see this as a general feature of Map Displays, i.e. the option to linked any number of Map Displays so that when you pan / zoom in one the other(s) adjust automagically. Then again, I'm only the one asking, not doing ... :wink:

Moritz

On Fri, Aug 31, 2012 at 12:55 PM, Paulo van Breugel
<p.vanbreugel@gmail.com> wrote:

I am also just asking... contributing code is unfortunately way out of my
league.

I am somewhat indifferent to whether synchronized display of multiple maps
would be a general feature of map display or part of the swipe tool. I can
imagine that it would be easier to make it initially part of a separate
tool, but I am no developer so I could be completely wrong.

Maybe it would be easier to develop a separate tool for this because
otherwise it would probably need some refactoring. Map Swipe was meant
for a different purpose and adding this new functionality would cause
some problems, for example what should it do with the slider?. I would
prefer to put this functionality to Map Displays because it seems
natural to me to use it there.

Anna

Cheers

Paulo

On 08/31/2012 11:56 AM, Moritz Lennert wrote:

On 31/08/12 11:27, Anna Kratochvílová wrote:

Hi,

On Fri, Aug 31, 2012 at 11:07 AM, Paulo van Breugel
<p.vanbreugel@gmail.com> wrote:

Hi Anna

This looks like a very useful tool, and it works perfectly (running grass 7
on Ubuntu 12.04), thanks!

If I may make a feature request. Would it be very difficult to implement an
option where rather then splitting the area between the two maps, the same
area is shown for both maps (i.e., mirrored maps). In that option, moving
one map would move the other map too. This makes it easier to see changes
between two maps in detail. In case my explanation isn't clear, a nice
example is the MIrrorMap plug-in for QGIS.

Seems clear to me. I added it to map swipe wiki page, you can edit it.
I remember someone on mailing list was asking about similar
functionality - synchronize display region extent of more Map Displays
- could it be what you mean?

http://trac.osgeo.org/grass/ticket/1669

I'm not sure that this should be part of the swipe tool. I'd rather see this
as a general feature of Map Displays, i.e. the option to linked any number
of Map Displays so that when you pan / zoom in one the other(s) adjust
automagically. Then again, I'm only the one asking, not doing ... :wink:

Moritz

Hi Paulo,

On Fri, Aug 31, 2012 at 11:07 AM, Paulo van Breugel
<p.vanbreugel@gmail.com> wrote:

Hi Anna

This looks like a very useful tool, and it works perfectly (running grass 7
on Ubuntu 12.04), thanks!

If I may make a feature request. Would it be very difficult to implement an
option where rather then splitting the area between the two maps, the same
area is shown for both maps (i.e., mirrored maps). In that option, moving
one map would move the other map too. This makes it easier to see changes
between two maps in detail. In case my explanation isn't clear, a nice
example is the MIrrorMap plug-in for QGIS.

I added the 'mirror' option to the map swipe tool (r54232). It was
much easier than to implement it for map displays.
Also, don't forget that map swipe can be launched as a module g.gui.mapswipe

Best,
Anna

Cheers,

Paulo

Cool, thanks. I am going to try this out this weekend

Btw, I didn’t know about running tools as a module. I have seen it being mentioned on the mailing list, but wasn’t sure what it was about. Nice.

···

On Fri, Dec 7, 2012 at 11:05 AM, Anna Kratochvílová <kratochanna@gmail.com> wrote:

Hi Paulo,

On Fri, Aug 31, 2012 at 11:07 AM, Paulo van Breugel
<p.vanbreugel@gmail.com> wrote:

Hi Anna

This looks like a very useful tool, and it works perfectly (running grass 7
on Ubuntu 12.04), thanks!

If I may make a feature request. Would it be very difficult to implement an
option where rather then splitting the area between the two maps, the same
area is shown for both maps (i.e., mirrored maps). In that option, moving
one map would move the other map too. This makes it easier to see changes
between two maps in detail. In case my explanation isn’t clear, a nice
example is the MIrrorMap plug-in for QGIS.

I added the ‘mirror’ option to the map swipe tool (r54232). It was
much easier than to implement it for map displays.
Also, don’t forget that map swipe can be launched as a module g.gui.mapswipe

Best,
Anna

Cheers,

Paulo

Paulo,

On Fri, Dec 7, 2012 at 5:30 PM, Paulo van Breugel
<p.vanbreugel@gmail.com> wrote:

Cool, thanks. I am going to try this out this weekend

Btw, I didn't know about running tools as a module. I have seen it being
mentioned on the mailing list, but wasn't sure what it was about. Nice.

in recent GRASS 7 there are at time:
- g.gui
- g.gui.animation
- g.gui.gmodeler
- g.gui.mapswipe
- g.gui.rlisetup

which you can launch from command line.

Markus

On 07/12/12 11:05, Anna Kratochvílová wrote:

I added the 'mirror' option to the map swipe tool (r54232). It was
much easier than to implement it for map displays.

Just tested it. Nice !

However, IIUC, it is not the same thing as zooming to the same view in two maps, as here you adjust the maps automatically so that one "fits" right next to the other, i.e. that there is a continuation from one map to the other. But I cannot center on the same spot in both maps, or ?

Moritz

Hi,

2012/12/7 Markus Neteler <neteler@osgeo.org>:

in recent GRASS 7 there are at time:
- g.gui
- g.gui.animation
- g.gui.gmodeler
- g.gui.mapswipe
- g.gui.rlisetup

which you can launch from command line.

small note: there is still one unsolved issue, wx.App is started in
the main thread of the module. So `g.gui.*` module waits for the GUI
termination.

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Hi,

On 10 December 2012 10:51, Martin Landa <landa.martin@gmail.com> wrote:

Hi,

2012/12/7 Markus Neteler <neteler@osgeo.org>:

in recent GRASS 7 there are at time:
- g.gui
- g.gui.animation
- g.gui.gmodeler
- g.gui.mapswipe
- g.gui.rlisetup

which you can launch from command line.

small note: there is still one unsolved issue, wx.App is started in
the main thread of the module. So `g.gui.*` module waits for the GUI
termination.

Standard modules launched from command line have the same behavior.
They block command line.

I thought that the current way is the right one. All (standard)
applications launched in *nix command line behave like this. I thought
g.gui (not g.gui.*) us an exception to the rule (e.g, gnome-open or
firefox don't block command line, too).

Vaclav

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Hi,

2012/12/10 Vaclav Petras <wenzeslaus@gmail.com>:

small note: there is still one unsolved issue, wx.App is started in
the main thread of the module. So `g.gui.*` module waits for the GUI
termination.

Standard modules launched from command line have the same behavior.
They block command line.

I thought that the current way is the right one. All (standard)
applications launched in *nix command line behave like this. I thought
g.gui (not g.gui.*) us an exception to the rule (e.g, gnome-open or
firefox don't block command line, too).

right, `g.gui` or `g.manual` are the exceptions. I think that other
`g.gui.*` should behave in the same way, so don't block the command
line.

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

On Mon, Dec 10, 2012 at 9:02 AM, Moritz Lennert
<mlennert@club.worldonline.be> wrote:

On 07/12/12 11:05, Anna Kratochvílová wrote:

I added the 'mirror' option to the map swipe tool (r54232). It was
much easier than to implement it for map displays.

Just tested it. Nice !

However, IIUC, it is not the same thing as zooming to the same view in two
maps, as here you adjust the maps automatically so that one "fits" right
next to the other, i.e. that there is a continuation from one map to the
other. But I cannot center on the same spot in both maps, or ?

I am not sure if you are talking about the 'swipe' mode (the original
one) or the 'mirror' mode (the new one).
Please see the screenshots on wiki page, I added one with the mirror mode.

http://grasswiki.osgeo.org/wiki/WxGUI_Map_Swipe#Disaster_analysis

The new mode is not tested much so if it is not working for you,
report me the problems.

Thanks for your testing,
Anna

Moritz

On 10/12/12 15:40, Anna Kratochvílová wrote:

On Mon, Dec 10, 2012 at 9:02 AM, Moritz Lennert
<mlennert@club.worldonline.be> wrote:

On 07/12/12 11:05, Anna Kratochvílová wrote:

I added the 'mirror' option to the map swipe tool (r54232). It was
much easier than to implement it for map displays.

Just tested it. Nice !

However, IIUC, it is not the same thing as zooming to the same view in two
maps, as here you adjust the maps automatically so that one "fits" right
next to the other, i.e. that there is a continuation from one map to the
other. But I cannot center on the same spot in both maps, or ?

I am not sure if you are talking about the 'swipe' mode (the original
one) or the 'mirror' mode (the new one).
Please see the screenshots on wiki page, I added one with the mirror mode.

http://grasswiki.osgeo.org/wiki/WxGUI_Map_Swipe#Disaster_analysis

The new mode is not tested much so if it is not working for you,
report me the problems.

I guess I must not have updated the code correctly. A new svn up and make gives me the dropdown list I didn't see before. Now I get mirror mode and it works as expected, thanks !

Maybe we should rename this to something that shows that it is a general tool for comparing two maps ?

Moritz

On Tue, Dec 11, 2012 at 9:18 AM, Moritz Lennert
<mlennert@club.worldonline.be> wrote:

On 10/12/12 15:40, Anna Kratochvílová wrote:

On Mon, Dec 10, 2012 at 9:02 AM, Moritz Lennert
<mlennert@club.worldonline.be> wrote:

On 07/12/12 11:05, Anna Kratochvílová wrote:

I added the 'mirror' option to the map swipe tool (r54232). It was
much easier than to implement it for map displays.

Just tested it. Nice !

However, IIUC, it is not the same thing as zooming to the same view in
two
maps, as here you adjust the maps automatically so that one "fits" right
next to the other, i.e. that there is a continuation from one map to the
other. But I cannot center on the same spot in both maps, or ?

I am not sure if you are talking about the 'swipe' mode (the original
one) or the 'mirror' mode (the new one).
Please see the screenshots on wiki page, I added one with the mirror mode.

http://grasswiki.osgeo.org/wiki/WxGUI_Map_Swipe#Disaster_analysis

The new mode is not tested much so if it is not working for you,
report me the problems.

I guess I must not have updated the code correctly. A new svn up and make
gives me the dropdown list I didn't see before. Now I get mirror mode and it
works as expected, thanks !

Maybe we should rename this to something that shows that it is a general
tool for comparing two maps ?

I already got used to that name but surely we can discuss it. Still I
consider the 'swipe' functionality more important and interesting (and
also more difficult to implement).

Anna

Moritz

On 11/12/12 09:55, Anna Kratochvílová wrote:

On Tue, Dec 11, 2012 at 9:18 AM, Moritz Lennert

Maybe we should rename this to something that shows that it is a general
tool for comparing two maps ?

I already got used to that name but surely we can discuss it. Still I
consider the 'swipe' functionality more important and interesting (and
also more difficult to implement).

I clearly appreciate the work you put in this, but I think naming should aim the use by users not the difficulty for developers to implement the functionality :wink:

I don't want to launch a long discussion on this, and you're the developer, but your great work has already got me dreaming about other functionalities that might be nice to have in there:

- a query tool that when you click on a spot in one of the maps gives you the info for both

- allow to display vector maps, not only raster (including one of each)

- a button that launches Michael's new histogram tool to directly show the histograms of the two maps

- etc

Well, hey, it's Christmas, soon ! :wink:

Moritz

On Tue, Dec 11, 2012 at 10:15 AM, Moritz Lennert
<mlennert@club.worldonline.be> wrote:

On 11/12/12 09:55, Anna Kratochvílová wrote:

On Tue, Dec 11, 2012 at 9:18 AM, Moritz Lennert

Maybe we should rename this to something that shows that it is a general

tool for comparing two maps ?

I already got used to that name but surely we can discuss it. Still I
consider the 'swipe' functionality more important and interesting (and
also more difficult to implement).

I clearly appreciate the work you put in this, but I think naming should aim
the use by users not the difficulty for developers to implement the
functionality :wink:

Of course, that's why i put it into brackets.

I don't want to launch a long discussion on this, and you're the developer,
but your great work has already got me dreaming about other functionalities
that might be nice to have in there:

- a query tool that when you click on a spot in one of the maps gives you
the info for both

I was also thinking about this.

- allow to display vector maps, not only raster (including one of each)

This is already on the wish list on wiki.

- a button that launches Michael's new histogram tool to directly show the
histograms of the two maps

- etc

You can add those on the wiki:
http://grasswiki.osgeo.org/wiki/WxGUI_Map_Swipe

Well, hey, it's Christmas, soon ! :wink:

Hm, don't be disappointed if these presents won't come on time :slight_smile:

Anna

Moritz

2012/12/10 Anna Kratochvílová <kratochanna@gmail.com>:

I added the 'mirror' option to the map swipe tool (r54232). It was
much easier than to implement it for map displays.

mirror mode would be absolutely useful for the georectifier...

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

On Thu, Dec 13, 2012 at 3:43 PM, Martin Landa <landa.martin@gmail.com> wrote:

2012/12/10 Anna Kratochvílová <kratochanna@gmail.com>:

I added the 'mirror' option to the map swipe tool (r54232). It was
much easier than to implement it for map displays.

mirror mode would be absolutely useful for the georectifier...

it's more complicated there because it's needed to reproject the
region I think. Anyway, georectifier needs refactoring first...

Anna

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa