Changes between Version 47 and Version 48 of PostGIS_Raster_SoC_Idea_2012/Distance_Analysis_Tools
- Timestamp:
- 06/18/12 22:39:53 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PostGIS_Raster_SoC_Idea_2012/Distance_Analysis_Tools
v47 v48 140 140 The maximum distance to be generated. All pixels beyond this distance will be assigned the nodata value. 141 141 * '''Algorithm:''' 142 * d(dx,dy) = sqrt(dx^2 + dy^2)142 * d(dx,dy) = sqrt(dx^2^ + dy^2^) 143 143 * Cells grown would form isolines of distance that are circular from a given point, with the distance given by the radius. 144 144 * '''Reference:''' [[BR]] … … 366 366 b. Utilize ST_SetValue(raster rast, geometry pt, double newvalue) function to designate source pixels in the resulting raster where vector source point(s) intersect(s) with the new raster.We want to assign “0” as new pixel value to pixels as source pixel(point) since the Euclidean distance from source to itself is zero. 367 367 c. Calculate Euclidean distance from the center of source pixel(s) to each pixel in the raster:[[BR]] 368 d(dx,dy) = sqrt(dx^2 + dy^2)[[BR]]368 d(dx,dy) = sqrt(dx^2^ + dy^2^)[[BR]] 369 369 Unit is pixel/cell 370 370 d. Set pixel value to the resulted distance[[BR]] … … 474 474 Generate one single raster (rectan) in which pixel values represent the Euclidean distance from the center of the pixels to the center of the source point. 475 475 * Proposed Algorithm: 476 * Calculate Euclidean distance using the coordinates of the center of pixel and the center of the source point (d(dx,dy) = sqrt(dx^2 + dy^2)). If distance exceed max_distance specified, NoData value is used instead.476 * Calculate Euclidean distance using the coordinates of the center of pixel and the center of the source point (d(dx,dy) = sqrt(dx^2^ + dy^2^)). If distance exceed max_distance specified, NoData value is used instead. 477 477 * Create a single raster with distance as pixel value (ST_RasterFromText()?) using dimensions and georeferencing information specified 478 478