[GRASS-dev] [bug #4899] (grass) v.in.ogr in tcltk: open datasource dialog does not allow to select directoy

this bug's URL: http://intevation.de/rt/webrt?serial_num=4899
-------------------------------------------------------------------------

Subject: v.in.ogr in tcltk: open datasource dialog does not allow to select directoy

Platform: GNU/Linux/x86
grass obtained from: CVS
grass binary for platform: Compiled from Sources
GRASS Version: cvs_head_20060724

I know this has been mentioned before (quite a while ago), but it is still annoying: when using v.in.ogr in its tcltk dialog you cannot chose a directory as a data source, e.g. when importing a shapefile.

I know I can just select the file and then erase the file name from the path, but if this could be easily solved that would be great.

Moritz

-------------------------------------------- Managed by Request Tracker

I thought about mentioning this too. There is no parser for choosing a
directory. However, there is a TclTk dialog for opening a directory, so
potentially this could be added to the parser. But...

...to import Shapefiles and MapInfo MIF files, you need to specify a
directory as the data source and the file as the layer. But to import a
multilayered DGN file, you specify a file as the data source and the
internal layer as a layer to import.

In both cases, OGR is looking for a data source. But in some cases it treats
a directory as a data source and in others it treats a file as a data
source. I kind of understand--conceptually--why.

IMHO, it would make more sense to simply have OGR always look for files and
simply ignore the layer option for entities like shapefiles and MIF files
that don't have internal layers, rather than trying to make them fit with
multilayered files like DGN. But this should go to the GDAL list I guess.

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

From: Request Tracker <grass-bugs@intevation.de>
Reply-To: Request Tracker <grass-bugs@intevation.de>
Date: Mon, 24 Jul 2006 18:18:33 +0200 (CEST)
To: <grass-dev@grass.itc.it>
Subject: [GRASS-dev] [bug #4899] (grass) v.in.ogr in tcltk: open datasource
dialog does not allow to select directoy

this bug's URL: http://intevation.de/rt/webrt?serial_num=4899
-------------------------------------------------------------------------

Subject: v.in.ogr in tcltk: open datasource dialog does not allow to select
directoy

Platform: GNU/Linux/x86
grass obtained from: CVS
grass binary for platform: Compiled from Sources
GRASS Version: cvs_head_20060724

I know this has been mentioned before (quite a while ago), but it is still
annoying: when using v.in.ogr in its tcltk dialog you cannot chose a directory
as a data source, e.g. when importing a shapefile.

I know I can just select the file and then erase the file name from the path,
but if this could be easily solved that would be great.

Moritz

-------------------------------------------- Managed by Request Tracker