1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
<h2>DESCRIPTION</h2>
<p>
<em>r.object.geometry</em> calculates form statistics of raster objects
in the <b>input</b> map and writes it to the <b>output</b> text file
(or standard output if no output filename or '-' is given),
with fields separated by the chosen <b>separator</b>. Objects are defined
as clumps of adjacent cells with the same category value (e.g. output of
<em><a href="r.clump.html">r.clump</a></em> or
<em><a href="i.segment.html">i.segment</a></em>).
<p>
By default, values are in pixels. If values in meters is desired, the user
can set the <b>-m</b> flag. If the current working region is in lat-long or
has non-square pixels, using meters is recommended.
<p>
Statistics currently calculated are exactly the same as in
<em><a href="v.to.db.html">v.to.db</a></em> (except for compact_square and
mean coordinates):
<ul>
<li>area</li>
<li>perimeter</li>
<li>compact_square (compactness compared to a square:
<code>compact_square = 4 * sqrt(area) / perimeter</code>)</li>
<li>compact_circle (compactness compared to a circle:
<code>compact_circle = perimeter / ( 2 * sqrt(PI * area) )</code>)</li>
<li>fractal dimension ( <code>fd = 2 * ( log(perimeter) / log(area + 0.001) )</code> )</li>
<li>mean x coordinate of object (in map units)</li>
<li>mean y coordinate of object (in map units)</li>
</ul>
<h2>EXAMPLE</h2>
<div class="code"><pre>
g.region raster=soilsID
r.object.geometry input=soilsID output=soils_geom.txt
</pre></div>
<h2>SEE ALSO</h2>
<em>
<a href="i.segment.html">i.segment</a>,
<a href="r.clump.html">r.clump</a>,
<a href="v.to.db.html">v.to.db</a>
</em>
<h2>AUTHORS</h2>
Moritz Lennert<br>
Markus Metz (diagonal clump tracing)
|