Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#2563 closed enhancement (invalid)

r.grow.distance: define max distance

Reported by: mlennert Owned by: grass-dev@…
Priority: normal Milestone: 7.2.0
Component: Raster Version: svn-trunk
Keywords: r.grow.distance maximum distance Cc:
CPU: Unspecified Platform: Unspecified

Description

It would be nice if r.grow.distance allowed to define a maximum distance. The module could then stop calculating once this maximum distance is attained (e.g. similar to r.cost's max_cost option). This should probably accelerate the module if only short distances are needed from the starting points.

Change History (3)

in reply to:  description ; comment:1 by glynn, 9 years ago

Replying to mlennert:

It would be nice if r.grow.distance allowed to define a maximum distance. The module could then stop calculating once this maximum distance is attained (e.g. similar to r.cost's max_cost option). This should probably accelerate the module if only short distances are needed from the starting points.

It wouldn't have the slightest effect upon performance. r.grow.distance doesn't operate in order of increasing distance. It operates row-by-row in two passes, from top-to-bottom then bottom-to-top, recording the distance to the closest point seen so far.

in reply to:  1 comment:2 by mlennert, 9 years ago

Resolution: invalid
Status: newclosed

Replying to glynn:

Replying to mlennert:

It would be nice if r.grow.distance allowed to define a maximum distance. The module could then stop calculating once this maximum distance is attained (e.g. similar to r.cost's max_cost option). This should probably accelerate the module if only short distances are needed from the starting points.

It wouldn't have the slightest effect upon performance. r.grow.distance doesn't operate in order of increasing distance. It operates row-by-row in two passes, from top-to-bottom then bottom-to-top, recording the distance to the closest point seen so far.

Ok, so the only way to limit the distance is to determine the smallest region that would include the max distance.

Closing this as invalid.

comment:3 by neteler, 8 years ago

Milestone: 7.1.07.2.0

Milestone renamed

Note: See TracTickets for help on using tickets.