[GRASS-dev] GUI for v.in.ogr

Hi,

I don't know if this behavior is intended or not, I just
wanted to inform:
Using the GUI and selecting File -> Import vector data
-> Common Import Formats (v.in.ogr) provides a different
window compared to typing v.in.ogr into the command console...
(in GRASS 6.4.3SVN).

/Johannes

On Thu, Jul 19, 2012 at 3:05 PM, Johannes Radinger <JRadinger@gmx.at> wrote:

Hi,

I don't know if this behavior is intended or not, I just
wanted to inform:
Using the GUI and selecting File -> Import vector data
-> Common Import Formats (v.in.ogr) provides a different
window compared to typing v.in.ogr into the command console...
(in GRASS 6.4.3SVN).

That's intentional:
- the window above has been developed with multi-file support in mind
- the module's v.in.ogr window is autogenerated from the module

Would you like to see this changed?

Markus

Hi,

> Hi,
>
> I don't know if this behavior is intended or not, I just
> wanted to inform:
> Using the GUI and selecting File -> Import vector data
> -> Common Import Formats (v.in.ogr) provides a different
> window compared to typing v.in.ogr into the command console...
> (in GRASS 6.4.3SVN).

That's intentional:
- the window above has been developed with multi-file support in mind
- the module's v.in.ogr window is autogenerated from the module

Would you like to see this changed?

I was just a little confused as I wasn't aware that there are two different types of windows...Maybe just the "(v.in.ogr)" in the line "Common Import Formats" is misleading and suggesting getting the autogenerated window of the v.in.ogr module.

/Johannes

Markus

On Fri, Jul 20, 2012 at 11:22 AM, Johannes Radinger <JRadinger@gmx.at> wrote:

Hi,

> Hi,
>
> I don't know if this behavior is intended or not, I just
> wanted to inform:
> Using the GUI and selecting File -> Import vector data
> -> Common Import Formats (v.in.ogr)

...

I was just a little confused as I wasn't aware that there are two different types of windows...Maybe just the "(v.in.ogr)" in the line "Common Import Formats" is misleading and suggesting getting the autogenerated window of the v.in.ogr module.

I agree but it is auto-generated in the menu. I don't know how this could
be selectively suppressed.

Markus

On Fri, Jul 20, 2012 at 2:20 PM, Markus Neteler <neteler@osgeo.org> wrote:

On Fri, Jul 20, 2012 at 11:22 AM, Johannes Radinger <JRadinger@gmx.at> wrote:

Hi,

> Hi,
>
> I don't know if this behavior is intended or not, I just
> wanted to inform:
> Using the GUI and selecting File -> Import vector data
> -> Common Import Formats (v.in.ogr)

...

I was just a little confused as I wasn't aware that there are two different types of windows...Maybe just the "(v.in.ogr)" in the line "Common Import Formats" is misleading and suggesting getting the autogenerated window of the v.in.ogr module.

I agree but it is auto-generated in the menu. I don't know how this could
be selectively suppressed.

In the menu this can be selectively suppressed/changed by creating a
dedicated handler, here OnImportOgrLayers instead of OnMenuCmd. There
are a number of modules where the menu will call a custom GUI
different from the autogenerated GUI, e.g. g.mapsets, r.mapcalc,
i.group, v.clean.

Markus M