GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
r.object.geometry(1) GRASS GIS User's Manual r.object.geometry(1)

r.object.geometry - Calculates geometry parameters for raster objects.

raster, statistics, reclass, clumps

r.object.geometry
r.object.geometry --help
r.object.geometry [-m] input=name [output=name] [separator=character] [--overwrite] [--help] [--verbose] [--quiet] [--ui]


Use meters as units instead of cells

Allow output files to overwrite existing files

Print usage summary

Verbose module output

Quiet module output

Force launching GUI dialog


Name of input raster map

Name for output file

Field separator
Special characters: pipe, comma, space, tab, newline
Default: pipe

r.object.geometry calculates form statistics of raster objects in the input map and writes it to the output text file (or standard output if no output filename or ’-’ is given), with fields separated by the chosen separator. Objects are defined as clumps of adjacent cells with the same category value (e.g. output of r.clump or i.segment).

By default, values are in pixels. If values in meters is desired, the user can set the -m flag. If the current working region is in lat-long or has non-square pixels, using meters is recommended.

Statistics currently calculated are exactly the same as in v.to.db (except for compact_square and mean coordinates):

  • area
  • perimeter
  • compact_square (compactness compared to a square: compact_square = 4 * sqrt(area) / perimeter)
  • compact_circle (compactness compared to a circle: compact_circle = perimeter / ( 2 * sqrt(PI * area) ))
  • fractal dimension ( fd = 2 * ( log(perimeter) / log(area + 0.001) ) )
  • mean x coordinate of object (in map units)
  • mean y coordinate of object (in map units)

g.region raster=soilsID
r.object.geometry input=soilsID output=soils_geom.txt

i.segment, r.clump, v.to.db

Moritz Lennert
Markus Metz (diagonal clump tracing)

Available at: r.object.geometry source code (history)

Latest change: Tuesday Dec 17 20:17:20 2024 in commit: d962e90c026708a4815ea2b9f46c0e84c17de22d

Main index | Raster index | Topics index | Keywords index | Graphical index | Full index

© 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual

GRASS 8.4.1

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.