[GRASS-dev] Re: [GRASS GIS] #111: r.los fails with high values for max_dis parameter

GRASS GIS trac at osgeo.org
Fri Jan 1 07:56:57 EST 2010


#111: r.los fails with high values for max_dis parameter
---------------------------+------------------------------------------------
  Reporter:  gsancho       |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect        |      Status:  new                      
  Priority:  major         |   Milestone:  6.4.0                    
 Component:  Raster        |     Version:  svn-develbranch6         
Resolution:                |    Keywords:  wingrass r.los           
  Platform:  MSWindows XP  |         Cpu:  x86-32                   
---------------------------+------------------------------------------------
Comment (by hamish):

 I would note that your starting point is 150 rows (+/- 1) from the
 northern edge of the map, which is the y it blows up on.

 {{{
 north:      4834913.78536118
 nsres:      24.99947005

 coordinate=1676734,4831167

 ( 4834913.78536118 - 4831167 ) / 24.99947005
 ans =     149.874591488794
 }}}


 setting the starting coord at the center of the map (dist to edge >
 max_dist) allows it to run to completion.


 so it is some just tipping over the edge effect, ie integer truncation or
 rounding error ... ???


 Hamish

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


More information about the grass-dev mailing list