[GRASS-dev] Re: [GRASS GIS] #799: Add -o option to muliple import of GDAL data

GRASS GIS trac at osgeo.org
Tue Nov 3 06:53:48 EST 2009

#799: Add -o option to muliple import of GDAL data
  Reporter:  trochtaj     |       Owner:  martinl      
      Type:  enhancement  |      Status:  assigned     
  Priority:  normal       |   Milestone:  6.4.0        
 Component:  wxGUI        |     Version:  unspecified  
Resolution:               |    Keywords:  import, multi
  Platform:  Unspecified  |         Cpu:  Unspecified  
Comment (by mmetz):

 Replying to [comment:5 martinl]:
 > Replying to [comment:4 mmetz]:
 > > Replying to [comment:1 martinl]:
 > > > Please try r39669 (devbr6). Not sure if to backported it into
 relbr64 (it's not bugfix). Probably in GRASS 6.4 we can just set {{{-o}}}
 as default also for {{{v.in.ogr}}}.
 > >
 > > Just for clarification, the -o flag means "Override dataset projection
 (use location's projection)", same like in r.in.gdal. Thus your suggestion
 to set -o as default means override dataset projection by default?
 > No, I am not speaking about CLI, but just about wxGUI dialog for multi-
 import (gdialogs.py).
 > Anyway I would to suggest to add '-o' to v.external (to be consistent
 with r.external).

 Hmm, I think this is somewhat a matter of taste, but IMHO overriding the
 dataset projection by default may be a bit dangerous. Having that option
 for v.external would be a good idea.
 > > The new wxGUI dialog is not consistent with regard to OGR layers and
 OGR datasources, for e.g. *.gpx and *.kml files, datasources are listed as
 layers, although these datasources hold layers themselves. With so many
 different supported OGR formats, I would strongly opt to at least stick to
 the terminology used by OGR in regard to what is a datasource and what is
 a layer to avoid user confusion.
 > Right, I am just not getting point in which ways is wxGUI dialog wrong.

 File -> Import vector map -> Multiple vector data import using OGR

 There it reads "List of OGR layers", below that "Layer" and "Layer name".
 What is listed there can just as well be OGR datasources not layers, and
 within these OGR datasources are layers not listed in the wxGUI dialog. It
 seems that this dialog is written for shapefiles, not sure how to use that
 with e.g. kml, gpx, postgresql if the idea is to have a separate output
 vector map for each layer.

 Markus M

Ticket URL: <https://trac.osgeo.org/grass/ticket/799#comment:7>
GRASS GIS <http://grass.osgeo.org>

More information about the grass-dev mailing list