Homepage > Man Pages > Category > General Commands

Homepage > Man Pages > Name > R# r.grow.distance

## man page of r.grow.distance

### r.grow.distance: Generates a raster map layer of distance to features in input layer.

Homepage > Man Pages > Name > R

## NAME

r.grow.distance- Generates a raster map layer of distance to features in input layer.## KEYWORDS

raster## SYNOPSIS

r.grow.distance r.grow.distance help r.grow.distance input=name[distance=name] [value=name] [metric=string] [--overwrite] [--verbose] [--quiet]Flags: --overwriteAllow output files to overwrite existing files--verboseVerbose module output--quietQuiet module outputParameters: input=nameName of input raster mapdistance=nameName for distance output mapvalue=nameName for value output mapmetric=stringMetric Options:euclidean,squared,maximum,manhattanDefault:euclidean## DESCRIPTION

r.grow.distancegenerates raster maps representing the distance to the nearest non-null cell in the input map and/or the value of the nearest non-null cell.## NOTES

The user has the option of specifying four different metrics which control the geometry in which grown cells are created, (controlled by themetricparameter):Euclidean,Squared,Manhattan, andMaximum. TheEuclidean distanceorEuclidean metricis the "ordinary" distance between two points that one would measure with a ruler, which can be proven by repeated application of the Pythagorean theorem. The formula is given by: </div> Cells grown using this metric would form isolines of distance that are circular from a given point, with the distance given by theradius. TheSquaredmetric is theEuclideandistance squared, i.e. it simply omits the square-root calculation. This may be faster, and is sufficient if only relative values are required. TheManhattan metric, orTaxicab geometry, is a form of geometry in which the usual metric of Euclidean geometry is replaced by a new metric in which the distance between two points is the sum of the (absolute) differences of their coordinates. The name alludes to the grid layout of most streets on the island of Manhattan, which causes the shortest path a car could take between two points in the city to have length equal to the points' distance in taxicab geometry. The formula is given by: </div> where cells grown using this metric would form isolines of distance that are rhombus-shaped from a given point. TheMaximum metricis given by the formula </div> where the isolines of distance from a point are squares.EXAMPLE

Spearfish sample dataset r.grow.distance input=roads distance=dist_from_roads## SEE ALSO

r.grow r.buffer r.cost r.patch Wikipedia Entry: Euclidean Metric Wikipedia Entry: Manhattan Metric## AUTHORS

Glynn Clements Last changed: $Date: 2008-11-20 11:59:22 +0100 (Thu, 20 Nov 2008) $ Full index (C) 2003-2010 GRASS Development Team R.GROW.DISTANCE(1)

Copyright © 2011–2018 by topics-of-interest.com . All rights reserved. Hosted by all-inkl.

Contact · Imprint · Privacy

Page generated in 201.44ms.

wippsaege.name | generiere.de | Weitere HTML Artikel!