[GRASS-dev] [GRASS GIS] #2310: r.in.xyz: zcol should not be compulsory when method=n

GRASS GIS trac at osgeo.org
Fri May 23 08:33:39 PDT 2014


#2310: r.in.xyz: zcol should not be compulsory when method=n
-------------------------+--------------------------------------------------
 Reporter:  mlennert     |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  normal       |   Milestone:                           
Component:  Raster       |     Version:  svn-trunk                
 Keywords:               |    Platform:  Unspecified              
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------
 In r.in.xyz, zcol is not necessary when method=n since all r.in.xyz does
 is count the points. However, by default the module defines z=3, which
 means that max_col becomes 3 and thus, for a simple file with only x and y
 coordinates, max_col > ntokens (line 679 of main.c) and the modules fails
 with

 {{{
 ERROR: Not enough data columns.
 }}}

 As it seems impossible to unset z, the only solution is to add a third,
 bogus, column to the input data.

 The code seems pretty much designed with the idea that a zcol is present
 and it does not seem super-trivial enough for me do just change that.

 I consider this a bug as it does seem counter-intuitive to require a zcol
 when a method such as n is available.

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/2310>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list