[GRASS-dev] Re: [GRASS GIS] #125: quote around char attributes in ascii files may generate problems with v.in.ascii

GRASS GIS trac at osgeo.org
Tue Apr 15 21:47:58 EDT 2008


#125: quote around char attributes in ascii files may generate problems with
v.in.ascii
--------------------------+-------------------------------------------------
  Reporter:  ct529        |       Owner:  grass-dev at lists.osgeo.org                                       
      Type:  enhancement  |      Status:  new                                                             
  Priority:  minor        |   Milestone:  6.4.0                                                           
 Component:  default      |     Version:  6.2.3                                                           
Resolution:               |    Keywords:  quotes, inverted commas, v.in.ascii, text file, csv file, import
--------------------------+-------------------------------------------------
Changes (by hamish):

  * priority:  major => minor
  * type:  defect => enhancement
  * milestone:  6.3.0 => 6.4.0

Comment:

 Using a comma as the delimiter is problematic as text phrases often
 contain them, eg "Spearfish, SD".

 Stripping the quotes should not be the default mode because a text string
 could include " as a valid last char.

 so if this is to happen, it should be done as an optional flag.

 Alternatively we could add advice to the v.in.ascii help page explaining
 the problem and asking the user to export using a less common delimiter,
 like "|". (not always possible if the data came from somewhere else or
 lacking software)


 Hamish

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/125#comment:1>
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/


More information about the grass-dev mailing list