| 117 | [[BR]][[BR]] |
| 118 | * GRASS |
| 119 | * r.grow.distance or GDAL tools\ Proximity (Raster Distance) in QGIS |
| 120 | * Concepts: |
| 121 | * '''r.grow.distance''' metric=euclidean (default):[[BR]] |
| 122 | generates 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. |
| 123 | * '''gdal_proximity''' generates a raster proximity map indicating the distance from the center of each pixel to the center of the nearest target pixel in the source raster. |
| 124 | * Function:[[BR]] |
| 125 | '''r.grow.distance''' ['''-m'''] '''input'''=name ['''distance'''=name] ['''value'''=name] ['''metric'''=string] [--'''overwrite'''] [--'''verbose'''] [--'''quiet'''] |
| 126 | * input: Raster dataset |
| 127 | * Source cell locations are represented with non-null cell value |
| 128 | * distance: Output Raster dataset |
| 129 | * Identifies distances for each cell to the nearest source cell(s) |
| 130 | * metric: |
| 131 | * User specified four different metrics which control the geometry in which grown cells are created |
| 132 | * '''Euclidean''' (by default), Squared, Manhattan, and Maximum[[BR]] |
| 133 | '''gdal_proximity.py''' srcfile dstfile [-srcband n] [-dstband n] [-of format][-co name=value]* [-ot Byte/Int16/Int32/Float32/etc][-values n,n,n] [-distunits PIXEL/GEO] [-maxdist n] [-nodata n][-fixed-buf-val n] |
| 134 | * srcfile: Raster file, identifies target pixels |
| 135 | * dstfile: Output Raster file of proximity (distance) |
| 136 | * -values: [[BR]] |
| 137 | A list of target pixel values in the source image to be considered target pixels. If not specified, all non-zero pixels will be considered target pixels. |
| 138 | * -mxdist:[[BR]] |
| 139 | The maximum distance to be generated. All pixels beyond this distance will be assigned the nodata value. |
| 140 | * Algorithm: |
| 141 | * d(dx,dy) = sqrt(dx^2 + dy^2) |
| 142 | * Cells grown would form isolines of distance that are circular from a given point, with the distance given by the radius. |
| 143 | * Reference: [[BR]] |
| 144 | [http://grass.osgeo.org/manuals/html70_user/r.grow.distance.html][[BR]] |
| 145 | [http://www.gdal.org/gdal_proximity.html] |