[GRASS5] 5.7: v.in.ogr gui: cannot chose OGR datasource directory by browsing

Hello,

In the gui windows for v.in.ogr, I don't seem to be able to chose a
directory for the OGR datasource name when using the browse button. It
seems to be a browse dialogue for opening a file, and finding not a
directory name.

When I enter the directory manually everything works perfectly fine.

Moritz

On Wed, Aug 18, 2004 at 11:04:51AM +0200, Moritz Lennert wrote:

Hello,

In the gui windows for v.in.ogr, I don't seem to be able to chose a
directory for the OGR datasource name when using the browse button. It
seems to be a browse dialogue for opening a file, and finding not a
directory name.

When I enter the directory manually everything works perfectly fine.

I selected this variant as I am not aware of any combined
file/directory selector. Of course an improvement is welcome.

Markus

On Wednesday 18 August 2004 11:27, Markus Neteler wrote:

On Wed, Aug 18, 2004 at 11:04:51AM +0200, Moritz Lennert wrote:
> Hello,
>
> In the gui windows for v.in.ogr, I don't seem to be able to chose a
> directory for the OGR datasource name when using the browse button. It
> seems to be a browse dialogue for opening a file, and finding not a
> directory name.
>
> When I enter the directory manually everything works perfectly fine.

I selected this variant as I am not aware of any combined
file/directory selector. Of course an improvement is welcome.

DSN is not always a file or directory, so I think that it shoud not use
dsn_opt->gisprompt = "file,file,file";

Radim

On Wed, Aug 18, 2004 at 11:55:58AM +0200, Radim Blazek wrote:

On Wednesday 18 August 2004 11:27, Markus Neteler wrote:
> On Wed, Aug 18, 2004 at 11:04:51AM +0200, Moritz Lennert wrote:
> > Hello,
> >
> > In the gui windows for v.in.ogr, I don't seem to be able to chose a
> > directory for the OGR datasource name when using the browse button. It
> > seems to be a browse dialogue for opening a file, and finding not a
> > directory name.
> >
> > When I enter the directory manually everything works perfectly fine.
>
> I selected this variant as I am not aware of any combined
> file/directory selector. Of course an improvement is welcome.

DSN is not always a file or directory, so I think that it shoud not use
dsn_opt->gisprompt = "file,file,file";

But does it harm?
The inconvenience of not having a button is IMHO higher than ignoring the
button for PostGIS.

Markus

I've noticed this too. AFAICT, only browse buttons for files, rasters, old
vectors, and new vectors have been defined yet. We could use one for
directories and G3D files too.

What I do is select a file in the desired directory, cut the file name, and
paste it into the layer field. A bit klunky, but saves some typing.

Michael

On 8/18/04 2:04 AM, "Moritz Lennert" <mlennert@club.worldonline.be> wrote:

Hello,

In the gui windows for v.in.ogr, I don't seem to be able to chose a
directory for the OGR datasource name when using the browse button. It
seems to be a browse dialogue for opening a file, and finding not a
directory name.

When I enter the directory manually everything works perfectly fine.

Moritz

______________________________
Michael Barton, Professor & Curator
School of Human Origins, Cultures, & Societies
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

I agree with Markus. A button to autopaste most of the information is much
better than having to type all of it.

Michael

On 8/18/04 2:59 AM, "Markus Neteler" <neteler@itc.it> wrote:

On Wed, Aug 18, 2004 at 11:55:58AM +0200, Radim Blazek wrote:

On Wednesday 18 August 2004 11:27, Markus Neteler wrote:

On Wed, Aug 18, 2004 at 11:04:51AM +0200, Moritz Lennert wrote:

Hello,

In the gui windows for v.in.ogr, I don't seem to be able to chose a
directory for the OGR datasource name when using the browse button. It
seems to be a browse dialogue for opening a file, and finding not a
directory name.

When I enter the directory manually everything works perfectly fine.

I selected this variant as I am not aware of any combined
file/directory selector. Of course an improvement is welcome.

DSN is not always a file or directory, so I think that it shoud not use
dsn_opt->gisprompt = "file,file,file";

But does it harm?
The inconvenience of not having a button is IMHO higher than ignoring the
button for PostGIS.

Markus

______________________________
Michael Barton, Professor & Curator
School of Human Origins, Cultures, & Societies
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton