[GRASS-dev] Re: [GRASS GIS] #198: v.in.ascii: column scanning is borked

GRASS GIS trac at osgeo.org
Wed Aug 31 09:15:41 EDT 2011


#198: v.in.ascii: column scanning is borked
-----------------------+----------------------------------------------------
  Reporter:  hamish    |       Owner:  grass-dev@…              
      Type:  defect    |      Status:  closed                   
  Priority:  critical  |   Milestone:  6.4.2                    
 Component:  Vector    |     Version:  svn-develbranch6         
Resolution:  invalid   |    Keywords:  v.in.ascii               
  Platform:  All       |         Cpu:  All                      
-----------------------+----------------------------------------------------

Comment(by hamish):

 Replying to [comment:10 mmetz]:
 > Attached is the las2txt output for srs.laz.
 >
 > I am pretty sure this problem is caused by las2txt which does
 > not check if a given attribute exists. If it does not exist,
 > some weird value is written.

 correct. columns 6 and 7 are not empty.


 as viewed in `less`:

 {{{
 289814.15|4320978.61|170.76|499450.80599405|260|^@|^@|6|0|2|Ground|0|0|0|0|0|0
 289814.64|4320978.84|170.76|499450.80600805|280|^@|^@|6|0|2|Ground|0|0|0|0|0|0
 289815.12|4320979.06|170.75|499450.80602205|280|^@|^@|6|0|2|Ground|0|0|0|0|0|0
 289815.60|4320979.28|170.74|499450.80603605|280|^@|^@|6|0|2|Ground|0|0|0|0|0|0
 289816.08|4320979.50|170.68|499450.80605005|260|^@|^@|6|0|2|Ground|0|0|0|0|0|0
 289816.56|4320979.71|170.66|499450.80606405|240|^@|^@|6|0|2|Ground|0|0|0|0|0|0
 289817.03|4320979.92|170.63|499450.80607806|240|^@|^@|6|0|2|Ground|0|0|0|0|0|0
 289817.53|4320980.16|170.62|499450.80609206|280|^@|^@|6|0|2|Ground|0|0|0|0|0|0
 289818.01|4320980.38|170.61|499450.80610606|280|^@|^@|6|0|2|Ground|0|0|0|0|0|0
 289818.50|4320980.59|170.58|499450.80612006|260|^@|^@|6|0|2|Ground|0|0|0|0|0|0
 }}}

 `^@` means the null char.

 I think it is reasonable for G_getl2() to stop on null terminators, and
 there's nothing more to do here but file a bug with `las2txt`.


 Hamish

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



More information about the grass-dev mailing list