[GRASS-dev] Re: [GRASS GIS] #1301: wingrass: db.in.ogr fails to load .csv file

GRASS GIS trac at osgeo.org
Tue Mar 8 23:52:56 EST 2011


#1301: wingrass: db.in.ogr fails to load .csv file
------------------------+---------------------------------------------------
 Reporter:  morrisxs09  |       Owner:  grass-dev@…              
     Type:  defect      |      Status:  new                      
 Priority:  normal      |   Milestone:  6.4.1                    
Component:  Database    |     Version:  svn-releasebranch64      
 Keywords:  wingrass    |    Platform:  MSWindows XP             
      Cpu:  x86-32      |  
------------------------+---------------------------------------------------
Changes (by hamish):

  * keywords:  => wingrass


Comment:

 "\" is used as the quoting character, this is often used to deal with path
 names with spaces, instead of breaking the path into two command line args
 (otherwise it would not know where dsn= ended and the next option [in this
 case one called output=] began). to get a literal "\" you either need to
 quote it (with itself) like "\\" or put the whole thing in "double
 quotes".
 for example: `dir=C:\\Program\ Files\\` or `dir="C:\Program Files\"

 So the computer sees "D:\Data" with a literal "D", and it becomes
 translated to "D:Data".

 Solution: always "quote" filenames, or use the "/" workaround.
 {{{
  db.in.ogr dsn="D:\Data\ProjData\GRASS_db\dmp_lg.csv" output=test
 }}}


 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/1301#comment:1>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list