File: r.object.geometry.html

package info (click to toggle)
grass 8.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 277,040 kB
  • sloc: ansic: 460,798; python: 227,732; cpp: 42,026; sh: 11,262; makefile: 7,007; xml: 3,637; sql: 968; lex: 520; javascript: 484; yacc: 450; asm: 387; perl: 157; sed: 25; objc: 6; ruby: 4
file content (52 lines) | stat: -rw-r--r-- 1,679 bytes parent folder | download | duplicates (2)
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)