Rechercher une page de manuel

Chercher une autre page de manuel:

Langue: en

Version: 258513 (debian - 07/07/09)

Section: 1 (Commandes utilisateur)

NAME - Surface generation program from rasterized contours.



SYNOPSIS help [-fs] input=string output=string [--overwrite] [--verbose] [--quiet]



Unused; retained for compatibility purposes, will be removed in future

Invoke slow, but memory frugal operation (generally not needed, will be removed in future)

Allow output files to overwrite existing files

Verbose module output

Quiet module output



Name of existing raster map containing contours

Output elevation raster map

DESCRIPTION creates a raster elevation map from a rasterized contour map. Elevation values are determined using procedures similar to a manual methods. To determine the elevation of a point on a contour map, an individual might interpolate its value from those of the two nearest contour lines (uphill and downhill). works in a similar way. Initially, a vector map of the contour lines is made with the elevation of each line as an attribute. When the program is run on the vector map, continuous "lines" of rasters containing the contour line values will be the input for For each cell in the input map, either the cell is a contour line cell (which is given that value), or a flood fill is generated from that spot until the fill comes to two unique values. So the algorithm linearly interpolates between contour lines. The flood fill is not allowed to cross over the rasterized contour lines, thus ensuring that an uphill and downhill contour value will be the two values chosen. interpolates from the uphill and downhill values by the true distance.



Name of an existing raster map that contains a set of initial category values (i.e., some cells contain known elevation values (denoting contours) while the rest contain NULL values or zeros (0)).

Name to be assigned to new output raster map that represents a smooth (e.g., elevation) surface generated from the known category values in the input raster map layer.

NOTES works well under the following circumstances: 1) the contour lines extend to the the edge of the current region, 2) the program is run at the same resolution as that of the input map, 3) there are no disjointed contour lines, and 4) no spot elevation data BETWEEN contour lines exist. Spot elevations at the tops of hills and the bottoms of depressions, on the other hand, improve the output greatly. Violating these constraints will cause non-intuitive anomalies to appear in the output map. Run r.slope.aspect on results to locate potential anomalies.

The running of is very sensitive to the resolution of rasterized vector map. If multiple contour lines go through the same raster, slight anomalies may occur. The speed of is dependent on how far "apart" the contour lines are from each other (as measured in raster cells). Since a flood fill algorithm is used, the program's running time will grow exponentially with the distance between contour lines.

BUGS has not been fully updated for NULL support and still considers a value of "0" to be NULL. Thus any contour lines at 0 elevation (e.g. the coastline) will be ignored. In such cases converting any 0 values in the input map to -1 with r.mapcalc may be a suitable work-around.

Currently will only produce CELL (integer) map output. If you would like a finer grade output map (i.e. floating point) it is recommended to multiply the input map by 1000 (for example) using r.mapcalc, then divide the resultant output map by 1000.0, again with r.mapcalc.

Volunteers are sought to remedy both these issues.


r.mapcalc, r.slope.aspect,,, v.digit,,,


Chuck Ehlschlaeger, U.S. Army Construction Engineering Research Laboratory

Last changed: $Date: 2008-05-16 21:09:06 +0200 (Fri, 16 May 2008) $

Full index

© 2003-2009 GRASS Development Team

S A S Beau parleur pris dans la nasse scandinave
-- Zalmanski, Alain