[GRASS-dev] [GRASS GIS] #2692: v.in.ascii does not handle text in qoutes

GRASS GIS trac at osgeo.org
Wed Jun 17 08:01:08 PDT 2015


#2692: v.in.ascii does not handle text in qoutes
-------------------------+-------------------------------------------------
  Reporter:  wenzeslaus  |      Owner:  grass-dev@…
      Type:  defect      |     Status:  new
  Priority:  normal      |  Milestone:  7.0.1
 Component:  Default     |    Version:  svn-trunk
Resolution:              |   Keywords:  CSV, doublequote, singlequote, text
       CPU:              |  delimiter
  Unspecified            |   Platform:  Unspecified
-------------------------+-------------------------------------------------

Comment (by glynn):

 Replying to [comment:3 glynn]:

 > For that, an explicit state machine is likely to be more legible than
 ad-hoc logic.

 Please test attachment:tokenise.diff

 An external library may be worth using for improved fault-tolerance (CSV
 is a rather loose "standard", to say the least). But any such dependency
 should be
 a. on specific modules (e.g. v.in.ascii), not lib/gis (i.e. G_tokenize),
 and
 b. an optional alternative to G_tokenize(), i.e. modules should still
 compile and work if the library isn't available.

 Python is far too heavyweight a dependency for such a task.

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



More information about the grass-dev mailing list