Details Ticket 4899


Comment | Reply | Take | Resolve


Serial Number 4899
Subject v.in.ogr in tcltk: open datasource dialog does not allow to select directoy
Area grass6
Queue grass
Requestors mlennert@club.worldonline.be
Owner none
Status open
Last User Contact Tue Jul 25 06:37:42 2006 (2 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Tue Jul 25 06:37:42 2006 (2 yr ago)
Created Mon Jul 24 18:18:33 2006 (2 yr ago)

Transaction History Ticket 4899


Mon, Jul 24 2006 18:18:33    Request created by guest  
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
Tue, Jul 25 2006 06:37:42    Mail sent by michael.barton@asu.edu  
Return-Path <michael.barton@asu.edu>
Delivered-To grass-bugs@lists.intevation.de
User-Agent Microsoft-Entourage/11.2.5.060620
Date Mon, 24 Jul 2006 21:37:27 -0700
Subject Re: [GRASS-dev] [bug #4899] (grass) v.in.ogr in tcltk: open datasource dialog does not allow to select directoy
From Michael Barton <michael.barton@asu.edu>
To Paolo Cavallini via RT <grass-bugs@intevation.de>, <grass-dev@grass.itc.it>
Message-ID <C0EAEE17.CAC9%michael.barton@asu.edu>
Thread-Topic [GRASS-dev] [bug #4899] (grass) v.in.ogr in tcltk: open datasource dialog does not allow to select directoy
Thread-Index AcavpAf6RmmwLhuXEduqZgAKlXAweg==
In-Reply-To <20060724161833.D4D661005DF@lists.intevation.de>
Mime-version 1.0
Content-type text/plain; charset="US-ASCII"
Content-transfer-encoding 7bit
X-Virus-Scanned by amavisd-new
X-Virus-Scanned by amavisd-new at intevation.de
X-Spam-Status No, hits=-3.652 tagged_above=-999 required=3 tests=[BAYES_00=-5, RCVD_NUMERIC_HELO=1.348]
X-Spam-Level
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
> 
> 


Comment | Reply | Take | Resolve

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request